I'm trying to write a function to place in a loop
I want to pass a date through the function to return a true or false value
This is what I have so far..
------------------------
Do until rst.EoF
dte = rst("Date")
IF TSExists(Dte) = "True" THEN
Do this
ELSE
Do this
END IF...
Is it possible to dynamically change the background of a table cell when you click on a hyperlink within that cell, without refreshing the page?
Cheers
J
I've gone back to
<a href="#?<%=thisdate %>" onclick="fillBox(this.href); return false;">
and changed to
function fillBox(str) {
var targ = document.forms['formname'].elements['textfieldname'];
targ.value = str;
}
Now the whole URL is appearing in the text box
I had to change the value in your example as the calender is dynamically created
from
onclick="fillBox('01/01/04'); return false;">
to
onclick="fillBox('<%=thisdate %>'); return false;">
but the value was lost
Just hit a problem.
When I move back and forward to other months, I carry forward the year and month in a querystring value.
calender.asp?M=12&Y=2004
"M=12&Y=2004" is now forming part of the link in "#?"
Any ideas how to stop that happening, or is that an ASP thing.
Works fine.
I've changed:
<a href="page.asp?06/01/2004" onclick="fillBox(this.href);">Click Me</a>
to
<a href="#?06/01/2004" onclick="fillBox(this.href);">06</a>
The input box fills OK, and the link remains inactive.
Thanks
J
You have a good point regarding the link taking you to another page.
That doesn't have to happen. All I need is the date value from the calender to the input box
Not sure if this is the right place to ask this question.
I've got a calender on a webpage, each date on the calender is a hyperlink with the date value in the link. (e.g. a href="page.asp?06/01/05">
When I click the date on the calender, how can I dynamically populate an input box on the same...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.