/    Sign up×
Community /Pin to ProfileBookmark

Calendars again…

ok I finally figured out what exactly I want to do.

[url]http://javascript.internet.com/calendars/popup-date-picker.html[/url]

I want to put this ^^^ in my webpage, but when you pick a date, instead of just putting the date in the textbox, I also want it to take you to a certain page. Is that do-able?

to post a comment
JavaScript

11 Comments(s)

Copy linkTweet thisAlerts:
@ExuroSep 02.2004 — Yes, and actually that would be quite simple. You'd just replace the part of the script that writes to the text box with some code to change the location of the page. If you want any further help however, you're going to need to supply more information on how you will be using the date info to choose what page to navigate to.
Copy linkTweet thisAlerts:
@hooloovoo24authorSep 05.2004 — ok let's see if I can make this make sense. There is a page I have that contains a list of coming committee meetings. And I want the date picker to take the person to that page with an anchor at the selected date. Is that what you meant?
Copy linkTweet thisAlerts:
@ExuroSep 06.2004 — So this means there will be a page for each date? How will these pages be named? The names will probably have something to do with the date right? Or perhapse you'll be getting the data from a database, in which case you could probably just pass the date in through the query string... Anyway, it would be good to know how the page names will work as far as where the user is being sent to. For example, would the page for September 5th be named something like "5sept2004.html"?
Copy linkTweet thisAlerts:
@hooloovoo24authorSep 07.2004 — Well, actually, ideally there would be just one page, with anchors on that page for each date. So the September 20th link would look like this:

meetingschedule.html#920
Copy linkTweet thisAlerts:
@ExuroSep 07.2004 — Okay, I've attached a working sample of my solution. In my version the links would jump to anchors with IDs in the format "mm-dd", otherwise how would you tell the difference between November 1st and January 11th? So for September 20th it would be "9-20". Anyway, I hope this works for you!

[upl-file uuid=f6efc628-cd35-4415-9324-7afec328b7b0 size=5kB]date-picker.zip[/upl-file]
Copy linkTweet thisAlerts:
@hooloovoo24authorSep 07.2004 — sorry, but I'm not able to open one of your files "date-picker.js" error in line 8 character 1, the error is "'navigator' is undefined" don't know what that's about but I can't open it unless you fix it, I guess, and repost the file.
Copy linkTweet thisAlerts:
@hooloovoo24authorSep 07.2004 — nvm I'm just an idiot.
Copy linkTweet thisAlerts:
@hooloovoo24authorSep 07.2004 — OK I hate to be an even bigger idiot than before, but...you just can't mess with genetics. So, here's my question to you, oh gracious and wise one, how exactly to I go about putting this into my page?
Copy linkTweet thisAlerts:
@ExuroSep 07.2004 — Just make a page in the same directory as [FONT=courier new]date-picker.js[/FONT] and [FONT=courier new]meetingschedule.html[/FONT], and then place these two lines of code somwhere in that new page:
<script type="text/javascript" src="date-picker.js"></script>

<a href="meetingschedule.html" onclick="return show_calendar('calform.datebox');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">Text or a picture or something</a>

That make sense?
Copy linkTweet thisAlerts:
@hooloovoo24authorSep 09.2004 — yeah, I figured that out about 5 minutes after I posted that. Thanks anyway though.
Copy linkTweet thisAlerts:
@hooloovoo24authorSep 09.2004 — exuro, you are my hero.
×

Success!

Help @hooloovoo24 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...