Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 (v3.4) BUG+FIX: pop_datepicker.asp
 Forum Locked  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 5

GauravBhabu
Advanced Member

4288 Posts

Posted - 19 August 2002 :  15:43:40  Show Profile
You are right Richard, It should be strForumTimeAdjust. I will correct in the code posted above.
Go to Top of Page

seven
Senior Member

USA
1037 Posts

Posted - 19 August 2002 :  16:31:00  Show Profile  Visit seven's Homepage
Yes, it works fine now... Thanks!


sidenote:
When you copy code from the forum into your design tool, sometimes it comes out jumbled (all on 1 line, etc...)
What if there was an option to display code in a text box?


quote:
Originally posted by GauravBhabu

airilm, have you used the code posted by me?


Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 August 2002 :  16:42:16  Show Profile
quote:
Originally posted by airilm

sidenote:
When you copy code from the forum into your design tool, sometimes it comes out jumbled (all on 1 line, etc...)
What if there was an option to display code in a text box?
do a "Reply w/Quote" and then copy everything between the [code] [/code] tags
Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 19 August 2002 :  16:43:11  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
Where's the 29 and holding option on this age thing?
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 19 August 2002 :  16:45:07  Show Profile
To keep the formatting, click on Reply with quote and then copy the code from textarea and paste into your file. The formatting will not be lost.


I am further optimizing the code and will post or send it to Admins by email.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 August 2002 :  16:51:54  Show Profile
in case you were wondering, the code came from here:

http://www.morningz.com/mz/crystal/quick/calendar/calendar.asp
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 19 August 2002 :  19:08:26  Show Profile
Here is further simplified and optimized code. One Minor Problem, however will have no effect on processing.

<EDIT>Remove Code. Look here for solution.

CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)

Edited by - GauravBhabu on 20 August 2002 22:16:50
Go to Top of Page

bax
Junior Member

141 Posts

Posted - 19 August 2002 :  21:33:04  Show Profile
Did this code get integrated into the 3.4 public release? It's not a terribly big deal to me, as I believe our server conforms, however, I want to make sure this will work if we ever move to another server.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 19 August 2002 :  21:45:35  Show Profile
This bug will be fixed in v3.4.01
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 August 2002 :  00:38:15  Show Profile
GauravBhabu,

this:

if datediff("m", strNextMonthDate, strCurrentDate) <> 0 then


needs to be changed to:

if datediff("m", strNextMonthDate, strCurrentDate) >= 0 then


you can test this by starting at August 2002. You should not have the arrows to goto September.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 20 August 2002 :  00:50:38  Show Profile
quote:
One Minor Problem, however will have no effect on processing


I know Richard, that is what I referred as a Minor Problem. I will work on it, as using >= 0 was having some other implications.

I was optimizing the Jumpto box for Groups. I posted some suggestions for Group Categories feature at links below:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=33085

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=33103
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 August 2002 :  00:50:46  Show Profile
GauravBhabu,

the code you posted here

is almost identical to the original I had before we started seeing date problems (during testing). That is when I started putting in all of those tests for the date format, and ended up with what was in the v3.4 release. We tested it on a US server and on a UK server, before leaving it in the release. We were just going to scrap it and use dropdown boxes to pick the Year, Month & Date in.

Really, the only thing I see different is this:

		if IsDate(Request("day") & "-" & MonthName(Request("month")) & "-" & Request("year")) Then
dDate = cDate(Request("day") & "-" & MonthName(Request("month")) & "-" & Request("year"))
else

Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 20 August 2002 :  00:51:42  Show Profile  Visit Nathan's Homepage
It would probably be wise to allow future dates.

That would leave the feature open for other uses, such as, say, an events calendar among other things.

Nathan Bales
CoreBoard | Active Users Download
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 August 2002 :  00:53:32  Show Profile
quote:
Originally posted by GauravBhabu

quote:
One Minor Problem, however will have no effect on processing


I know Richard, that is what I referred as a Minor Problem. I will work on it, as using >= 0 was having some other implications.

I was optimizing the Jumpto box for Groups. I posted some suggestions for Group Categories feature at links below:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=33085

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=33103



I really don't want to go changing the coding for a feature that has no problems as is. Kal Corp is really the one who should be consulted on whether or not these changes will still give the original result.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 20 August 2002 :  01:00:11  Show Profile
quote:
Originally posted by RichardKinser

GauravBhabu,

the code you posted here

is almost identical to the original I had before we started seeing date problems (during testing). That is when I started putting in all of those tests for the date format, and ended up with what was in the v3.4 release. We tested it on a US server and on a UK server, before leaving it in the release. We were just going to scrap it and use dropdown boxes to pick the Year, Month & Date in.



There was a processing fault, while using the technique, which was suggested by Ruirib in other context. There is nothing wrong with that technique, but that is suitable for converting the strings to date.




quote:
Originally posted by RichardKinser
Really, the only thing I see different is this:

		if IsDate(Request("day") & "-" & MonthName(Request("month")) & "-" & Request("year")) Then
dDate = cDate(Request("day") & "-" & MonthName(Request("month")) & "-" & Request("year"))
else





That is what makes the whole lot of difference.


CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
Go to Top of Page
Page: of 5 Previous Topic Topic Next Topic  
Previous Page | Next Page
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07