|Subject:||Writing to iframe issue with Internet Explorer|
|Posted by:||saraiva (pimentelsarai…@gmail.com)|
|Date:||Sun, 30 Mar 2008|
My web site application has to write syncronosly to an iframe. It puts
in an iframe the directions came from google maps api. This is not an
error from google maps api.
i want the directions to be written in the iframe and in IE the
directions are overwritten, so the user can only read the last one....
In Firefox this works great, the directions are well written in the
iframe and the user is able to read them all, but in Safari and IE
they can't because the directions are all overwritten one by the
My code to write to the iframe is this:
var testFrame = document.getElementById("step");
var doc = testFrame.contentDocument;
if (doc == undefined || doc == null)
doc = testFrame.contentWindow.document;
doc.write("<span style='color:#000000; font-size:12px; font:Arial,
Helvetica, sans-serif;'>" + val + "</span>\r
I only close the iframe writing after i have written all the content i
want on the iframe.....
hope you can help