Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-11-2012, 01:53 PM   PM User | #1
zeemperor
New Coder

 
Join Date: Oct 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
zeemperor is an unknown quantity at this point
iframed form doesn't show alerts on IE

hi,


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 ?
zeemperor is offline   Reply With Quote
Old 12-11-2012, 11:44 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,567
Thanks: 62
Thanked 4,058 Times in 4,027 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Show us your code.

Because here is a demonstration to the contrary:

*** FILE: demo.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>
*** FILE: iframe.html ****
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>
It works just fine in MSIE.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:13 PM.


Advertisement
Log in to turn off these ads.