Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
12-11-2012, 02:53 PM #1
- Join Date
- Oct 2011
- Thanked 0 Times in 0 Posts
iframed form doesn't show alerts on IE
i have a form which onsubmit , it alerts the user with form errors.
the form is placed inside an iframe.
the alerts appear well on FF and chrome, but not on IE.
how can i fix this ?
12-12-2012, 12:44 AM #2
Show us your code.
Because here is a demonstration to the contrary:
*** FILE: demo.html ****
*** FILE: iframe.html ****Code:<html> <body> This is the main page. <br/><br/> <iframe src="iframe.html" style="width: 100%; height: 300px;"></iframe> <br/><br/> More main page </body> </html>
It works just fine in MSIE.Code:<html> <body> This is iframe.html. <form onsubmit="alert('form submitted'); return false;"> <input type="submit" value="Click here to submit the form"/> </form> </body> </html>
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.