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

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 August 2002 :  00:42:46  Show Profile
I'm getting a problem where dDate is looking like this:

8/20/2002 7:00:00PM

Happens on this site (you can check it, I updated the file on this site), and on one other site I have tested it on. On the PC I am on right now, this does not happen.

This happens when the Request("date") is empty, so dDate is being defined like this:

	dDate = DateAdd("yyyy", -13, strForumTimeAdjust)

Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 21 August 2002 :  03:10:07  Show Profile
What is the error you are getting? I did not get any error?
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 August 2002 :  03:14:36  Show Profile
no error, but if the DOB is empty when you click on the button, there isn't a default date highlighted on the calendar. Plus in the querystring for the next and previous links, it has both the date and the time.

I tried splitting the date string before displaying it so it only had the date in it, but it still would not bring up the default date when the DOB was empty.

And I tried using FormatDate(dDate,2) as well, but it still won't show the default date highlighted. For some reason dDate is not equal to dCell
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 21 August 2002 :  03:26:39  Show Profile
Add this statement in red just below the statement you mentioned as shown below:

dDate = DateAdd("yyyy", -13, strForumTimeAdjust)
dDate = DateValue(dDate)

This should take care of the time part.

I will check about the default date not being shown.

<EDIT>(I will be away for few hours, I will post an update when I come back)

Edited by - GauravBhabu on 21 August 2002 03:40:42
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 August 2002 :  04:57:08  Show Profile
Adding that line fixed the default date problem. I don't see any problems with it on the servers I have checked it on.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 21 August 2002 :  06:45:52  Show Profile
Great! I don't think there will be any problem now.
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 21 August 2002 :  06:58:55  Show Profile  Visit Azaniah's Homepage
for those of us that are stupid (ie me)..

Could you paste the correct code? unless it's in here somewhere already...

Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 August 2002 :  07:06:02  Show Profile
these will be included in v3.4.01 (as long as no other problems popup)

http://kinser.121hosts.net/files/pop_datepicker.zip
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 21 August 2002 :  07:06:41  Show Profile  Visit Azaniah's Homepage
Thanks Richard

Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 August 2002 :  07:08:18  Show Profile
we need to thank GauravBhabu for fixing the date problems.
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 21 August 2002 :  07:11:30  Show Profile  Visit Azaniah's Homepage
I think we should buy GauravBhadu a coffee/beer at least. Heck they have fixed a bundle of stuff. Either they (and several other people) never sleep or I need to take something to speed me up - I get there in the end.. but.. ya know..

I'll shut up now..

Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 21 August 2002 :  07:22:24  Show Profile
Look here

Richard, I hope you have included the changed inc_datepicker.js also in the zip.

quote:
we need to thank GauravBhabu for fixing the date problems.


Any time. I am glad everyone can use it now.

quote:
I think we should buy GauravBhadu a coffee/beer at least. Heck they have fixed a bundle of stuff. Either they (and several other people) never sleep or I need to take something to speed me up - I get there in the end.. but.. ya know..


Beer, Never. However, Getting there is key...so you know...

I love dates. There are several varaities, whatever way you think.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 August 2002 :  07:25:57  Show Profile
quote:
Originally posted by GauravBhabu

Richard, I hope you have included the changed inc_datepicker.js also in the zip.
Yes, I did.
Go to Top of Page

HarshReality
Junior Member

USA
128 Posts

Posted - 21 August 2002 :  10:06:07  Show Profile  Visit HarshReality's Homepage  Send HarshReality an AOL message  Send HarshReality an ICQ Message  Send HarshReality a Yahoo! Message
Ok help me out here, am I misunderstanding this functioning?
(Using files from Richards Zip)

"GO" is to change the month/Year view.
"Clear DOB" is setting it to the current date.

and to enter a date into the field in the database you simply (after selecting month and year and clicking GO) click on the appropriate date. Thus entering month year and day selected into the DB as your DOB.

The question I have is this, ALL links in the cal. no matter what month I select are coming up javascript:returnDate('19890825'); and entering it in by default. So it seems changing the month etc. has no effect on the date entered to the DB.

Or have I missed an addition somewhere outside of the 2 files richard posted above??


Anti Social Personality
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 August 2002 :  10:11:34  Show Profile
Clear DOB is for in case someone wants to remove their DOB. Go will change the month/year after you have changed it in the dropdowns. to select a date to enter as your DOB, just click on that date on the calendar.
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.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07