frequently ask ? : Computers : Programming : Languages : JavaScript : Frames

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

12 of 21 people (57%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How can I submit a form to an ILAYER?

Aug 25th, 2001 10:03
Tony Crosby, Sonali Roy,


You can not submit a form to an ilayer using post or like you normally 
would (Browser taking you from the page), as well as a div layer, but 
you can use onclick in the submit button to initiate a javascript which 
will carry out any actions and have the results generated and slipped 
into the ilayer on the fly which would look a lot like an iframe.
 The other way would be to submit the form to a small Iframe which is 
not visible and in the iframe when the document is finished loading it 
would print javascript to replace the contents of the ilayer or div 
layer with the generated output.
 I do this with perl & javascript all the time, same goes for c, 
python, php and pretty much any other cgi language.
 Tony