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!

Pop up email form

Status
Not open for further replies.

guitardave78

Programmer
Sep 5, 2001
1,294
GB
What would be the best way to dynamically produce a form. (I dont want a full browser window just a floating div)
Would it be best to have a container on the page and then innerHTML the text boxes etc or would using createelement be preferable.

The form needs to be cross browser (including mac) and also will have javascript running to validate the form.

Any suggestions would be great :)

}...the bane of my life!
 
While innerHTML is not a W3 standard property (AFAIK), most modern browsers (includiing various Mac browsers) support it. It's also a lot faster than using DOM methods to create many elements... so for that reason, I'd go for that way.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Another alternative is to not create the page on the fly.
Just create the email form in an absolutely positioned div with it's display set to hidden. When you want the form to show just toggle it's display property.


At my age I still learn something new every day, but I forget two others.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top