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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making a poup calendar inline

Status
Not open for further replies.

aleci

Programmer
May 22, 2001
40
GB
Hi,

Im hoping this will prove simple to a JavaScript programmer however it is giving us a real headache:

We have a gift website and on the checkout page is a link to a popup calendar so users can easily enter a delivery date for their gift(s).

The link to the calendar is on the page "Checkout.cfm" and the calendar is at "calendar.cfm":

Checkout.cfm
---------------------------------------------

<!--- date field---->
<cfinput type="text" name="delivery_date#POSITION#" size="15" >

<!--- link for calendar---->
<a href="##" onClick="window.open('calendar.cfm?POSITION=#POSITION#', 'Calendar')">
Choose date
</a>


Calendar.cfm
---------------------------------------------

On the calendar page this is how the selected date is returned to the date field:

<a href="javascript:window.opener.document.checkoutform.delivery_date<cfoutput>#POSITION#</cfoutput>.value='<cfoutput>#FullDate#</cfoutput>'; window.close();">

(Position is a numeric variable 1,2,3 etc depending on how many gifts are in the shopping basket.)

THE PROBLEM:

We are not happy with the popup so we would like to make this calendar inline (on the same page as the link).

Without knowing any JavaScript this is proving difficult to our programmer.

Any help would be greatly appreciated.

Alex

 
Thanks for responding guys.
Ill definately look into these options.

Alex

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top