Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I want to display a calendar control in an iframe but I dont want to get the server involved. The calendar is displayed in the iframe without the server being involved but the problem comes when the user selects a date. At that time I handle the day render event, close the iframe in which the calendar was displayed and display the day selected in a text box on the main frame. How can I do this without the server being involved
Posted

If you want to take care of this on the client then I'd scrap the idea about using the ASP.NET calendar. Instead, I would play around with creating the calendar using JavaScript such that each day is rendered as a hyperlink. However, the hyperlink would be dead except to trigger a click event that calls a function which populates your text box.

 

I don't have the code to accomplish this but I'd start by learning to create the JavaScript calendar. Then play around with the document.write string to generate the hyperlink.

 

Here is a URL that lists all kinds of JavaScript calendars to get you started.

 

http://www.jsmadeeasy.com/javascripts/Calendars/list_test.asp

 

Good luck and let me know if you accomplish it.

Tate

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...