- see footer for list info -<
I have a javascript popup calendar.

It is opened using:

<a href="javascript:show_calendar('SailHelpBookingForm.CourseDateFrom_1');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;">
  <img src="includes/popupCalendar/cal.gif" width=16 height=16 border=0 />
</a>

The variables SailHelpBookingForm and CourseDateFrom_1 refer to the form name and the name of the form input the instance of the calendar relates to.

In the calendar window, the date is selected and window closed using:

<a href="javascript:window.opener.document.SailHelpBookingForm.CourseDateTo_1.value='<cfoutput>#retcal#</cfoutput>'; window.close();" onmouseover="javascript:toggleDisplay('c<cfoutput>#x#</cfoutput>')" onmouseout="javascript:toggleDisplay('c<cfoutput>#x#</cfoutput>')"><cfoutput>#x#</cfoutput></a>

I need to dynamically change the values for the formname and form input name in this link (javascript:window.opener.document.SailHelpBookingForm.CourseDateTo_1) depending on the variables I set in the first link that opened the calendar window.

How do I do it?

Thanks, Damien
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to