Ask a Question related to ASP Database, Design and Development.
-
bender #1
calendar in ASP
Someone posted a very nice calendar on a page sharing ASP code.
[url]http://www.asp101.com/articles/jacob/calendar/default.asp[/url]
In it is the following line:
MyCalendar.OnDayClick = "javascript:alert('You clicked on this date:
$date')"
Any idea how I can change this click event to go to another page, with
$date as a variable?
Thanks; I tried contacting the author of the page, but the e-mail name
posted is no good.
thanks,
Larry
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."
bender Guest
-
calendar
How do you place a calendar in forms? -
2006 calendar needed for photo calendar
I want to start work on a 2006 calendar featuring my own photographs. In Photoshop there used to be a calendar-creating feature that worked well,... -
asp calendar
Can some of you point me to some website with good asp calendars. I did a search on the google but didn't find a whole lot . Thanks -
Calendar 9.0
There are several calendars with the code to do that on my website: http://www.datastrat.com/Download/XCalendar2K.zip and... -
calendar asp
Hello Everyone, I have a calendar http://thehihat.com/calendar/default.asp?month=6&year=2003 What I need to do is be able to add a graphic to the... -
Roland Hall #2
Re: calendar in ASP
"bender" wrote:
: Someone posted a very nice calendar on a page sharing ASP code.
:
: [url]http://www.asp101.com/articles/jacob/calendar/default.asp[/url]
:
: In it is the following line:
:
: MyCalendar.OnDayClick = "javascript:alert('You clicked on this date:
: $date')"
:
: Any idea how I can change this click event to go to another page, with
: $date as a variable?
MyCalendar.OnDayClick = "/anotherpage.asp?d=$date"
You can see it here:
[url]http://kiddanger.com/lab/calendarexample.asp[/url]
HTH...
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - [url]http://www.microsoft.com/technet/scriptcenter/[/url]
WSH 5.6 Documentation - [url]http://msdn.microsoft.com/downloads/list/webdev.asp[/url]
MSDN Library - [url]http://msdn.microsoft.com/library/default.asp[/url]
Roland Hall Guest
-
Aaron Bertrand [MVP] #3
Re: calendar in ASP
> MyCalendar.OnDayClick = "/anotherpage.asp?d=$date"
Well, wouldn't you need something like:
MyCalendar.OnDayClick = "window.location.href='/anotherpage.asp?d=$date';"
?
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
"Roland Hall" <nobody@nowhere> wrote in message
news:ehrdh#S#DHA.4084@tk2msftngp13.phx.gbl...[url]http://msdn.microsoft.com/downloads/list/webdev.asp[/url]> "bender" wrote:
> : Someone posted a very nice calendar on a page sharing ASP code.
> :
> : [url]http://www.asp101.com/articles/jacob/calendar/default.asp[/url]
> :
> : In it is the following line:
> :
> : MyCalendar.OnDayClick = "javascript:alert('You clicked on this date:
> : $date')"
> :
> : Any idea how I can change this click event to go to another page, with
> : $date as a variable?
>
> MyCalendar.OnDayClick = "/anotherpage.asp?d=$date"
>
> You can see it here:
> [url]http://kiddanger.com/lab/calendarexample.asp[/url]
>
> HTH...
>
> --
> Roland Hall
> /* This information is distributed in the hope that it will be useful, but
> without any warranty; without even the implied warranty of merchantability
> or fitness for a particular purpose. */
> Technet Script Center - [url]http://www.microsoft.com/technet/scriptcenter/[/url]
> WSH 5.6 Documentation -> MSDN Library - [url]http://msdn.microsoft.com/library/default.asp[/url]
>
>
Aaron Bertrand [MVP] Guest
-
Jeff Cochran #4
Re: calendar in ASP
On Sat, 21 Feb 2004 23:14:25 -0800, bender <larry@netgeexdotcom>
wrote:
Something like:>Someone posted a very nice calendar on a page sharing ASP code.
>
>[url]http://www.asp101.com/articles/jacob/calendar/default.asp[/url]
>
> In it is the following line:
>
>MyCalendar.OnDayClick = "javascript:alert('You clicked on this date:
>$date')"
>
>Any idea how I can change this click event to go to another page, with
>$date as a variable?
MyCalendar.OnDayClick =
"window.open('http://www.sample.com/anotherpage.asp?=MyDate$date',Another
Page)"
See the syntax:
[url]http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html[/url]
Follow up in a Javascript group for other options. Naturally, the
anotherpage.asp will need to deal with accepting the value for MyDate
that you passed.
Jeff
Jeff Cochran Guest



Reply With Quote

