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

create a div and iframe dynamically-functionality gets lost

Status
Not open for further replies.

Sava028

Programmer
Joined
Oct 8, 2005
Messages
1
Location
US
I have webpage with drop down lists, so I use a div and Iframe to display my calendar (user control, code in Javascript).
when I place the html code directly on the page I can click on the calendar, open mode, and change the months.

When I use "Page.RegisterStartupScript("Startup", String)
" and the script says "document.write ..."
I can't do that anymore, the calendar control collapses as soon as I click and won't change the months, it will change the date in my connceted textbox, but that's it.
I have no idea what causes this effect and really need to fix it.
I am brand new to javascript and the code for the control is copy paste work.
Any help is much appreciated



 
I am brand new to javascript and the code for the control is copy paste work.
Then my best advice to you is to contact the person you "copy pasted" the code from and ask them for assistance. You are attempting to implement someone else's code - but it's not working... they are best people to support their own code.

Maybe, as a beginner, you would be better off learning javascript from the many online tutorials and books rather than leaping in and attempting this kind of approach.

I'm not trying to be antagonistic (and I'm certainly not trying to put you off of my favourite scripting language) - just pointing out that if you actually want to learn javascript, your current approach (copy paste implementation with no understanding of the code) is not going to teach you anything (other than frustration).

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top