Writing to iframe issue with Internet Explorer
- From: saraiva <pimentelsaraiva@xxxxxxxxx>
- Date: Sun, 30 Mar 2008 17:46:31 -0700 (PDT)
Hello.
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
others....
My code to write to the iframe is this:
function iframeWrite(val)
{
var testFrame = document.getElementById("step");
var doc = testFrame.contentDocument;
if (doc == undefined || doc == null)
doc = testFrame.contentWindow.document;
doc.open();
doc.write("<span style='color:#000000; font-size:12px; font:Arial,
Helvetica, sans-serif;'>" + val + "</span>\r\n");
}
I only close the iframe writing after i have written all the content i
want on the iframe.....
best regards,
hope you can help
.
- Follow-Ups:
- Re: Writing to iframe issue with Internet Explorer
- From: VK
- Re: Writing to iframe issue with Internet Explorer
- From: Thomas 'PointedEars' Lahn
- Re: Writing to iframe issue with Internet Explorer
- Prev by Date: Re: Strange problems with JSON and Safari
- Next by Date: Re: Putting DIV wrapper around all code in body
- Previous by thread: IE and Enter (multi-Input form)
- Next by thread: Re: Writing to iframe issue with Internet Explorer
- Index(es):
Relevant Pages
|