|
-
May 6th, 2004, 09:58 AM
#1
Thread Starter
Frenzied Member
Hide select box [Nevermind]
I have the following:
Code:
<A HREF="#" onClick="cal1good.select(document.dform.Last_Known,'anchor2','MM/dd/yyyy'); return false;" NAME="anchor2" ID="anchor2">select</A>
that calls a dropdown calendar. That works fine, however, when it opens, it falls down over another select box and the select box is on top.
Can I hide the second one temporarily so that the calendar shows as it's supposed to?
Last edited by ober0330; May 6th, 2004 at 12:06 PM.
-
May 6th, 2004, 10:21 AM
#2
Thread Starter
Frenzied Member
Ok, I've been able to make it hide, but now I can't get it to come back once the user has selected a date:
Code:
<input type="text" name="Date_Found" size="12" maxlength="10"> <A HREF="#" onClick="toggleT('h'); cal1df.select(document.dform.Date_Found,'anchor1','MM/dd/yyyy'); return false;" NAME="anchor1" ID="anchor1">select</A>
I figured I could just call the toggle function again after the return, but that doesn't work:
Code:
<input type="text" name="Date_Found" size="12" maxlength="10"> <A HREF="#" onClick="toggleT('h'); cal1df.select(document.dform.Date_Found,'anchor1','MM/dd/yyyy'); return false;toggleT('s');" NAME="anchor1" ID="anchor1">select</A>
Oh, and here's the toggle function:
Code:
function toggleT(_h) {
if (document.all) { // is IE
if (_h=='s') eval("document.all.divt1.style.visibility='visible';");
if (_h=='h') eval("document.all.divt1.style.visibility='hidden';");
} else { // is NS?
if (_h=='s') eval("document.layers['"divt1"'].visibility='show';");
if (_h=='h') eval("document.layers['"divt1"'].visibility='hide';");
}
}
Can anyone tell me how to make it visible again after the user selects a date from the javascript calendar?
-
May 6th, 2004, 12:06 PM
#3
Thread Starter
Frenzied Member
Nevermind. I'm repositioning the elements so that the DIV does not open over a select box.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|