[Javascript] Safari iframe bug
Roger Roelofs
rer at datacompusa.com
Wed Jun 2 21:38:29 CDT 2004
I may have discovered a Safari bug. I am looking for confirmation (or
lack thereof). It is not strictly a javascript issue, but I'm sure any
workaround will be.
The short version is that if you have a form on the main page target an
iframe, Safari opens a new window, as though the iframe didn't exist).
Is this issue known? Is there a workaround? I've seen the article at
O'Reilly / Apple about turning the form inputs into a query string, but
was hoping to save that technique as a last resort because I try to
reserve javascript for the nice extras rather than core functionality.
The code is something like this...
<form name="StatusUpdate1" method="POST" action="statusupdate.php"
target="DataFrame">
<input type="text" value="" name="Comment" onchange="checkAndSubmit()
/>
... other inputs ...
<input type="submit" value="Update Status" />
</form>
<form name="StatusUpdate2" method="POST" action="statusupdate.php"
target="DataFrame">
<input type="text" value="" name="Comment" onchange="checkAndSubmit()
/>
... other inputs ...
<input type="submit" value="Update Status" />
</form>
...
<iframe name="DataFrame" id="DataFrame" src="mt.html">
<p>Upgrade please...</p>
</iframe>
-----------
Thanks!
More information about the Javascript
mailing list