Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Load from Popup

Status
Not open for further replies.

demireal

Programmer
Joined
Jul 7, 2006
Messages
2
Location
US
I have web page where i am using javascript calendar popup, and on text box, once i clicked on calendar image, javascript calendar popup will open and user will select the date and the date will be shown up in the text box, problem is i want to refresh the main page, once the text box get the date value from the javascript calendar popup.

please help!!

Demi
 
Find the method in the calendar that sets the value of the textbox on return, and call "window.opener.location.reload(true);" in it.

Of course, it's pretty pointless to set the value then refresh the page, as the value will then be lost... but I'm not here to sanity check your logic ;-)

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 

Thanks! Value is returning on click.
I tried in this but did'nt work.

Please tell me where exactly i can use this window.opener.location.reload(true);

<A HREF="#" onClick="cal1x.select(document.forms[0].date1x,'anchor1x','MM/dd/yyyy'); return false;" NAME="anchor1x" ID="anchor1x"><img border="0" src="images/calendar.jpg"></a>

Demi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top