In looking into this further, I'm not sure it's an iframe issue, but a
appendChild() issue. Essentially, the "doc" I'm trying to grab is
added somewhere else with an appendChild() call. Does appendChild()
work correctly with Mobile Safari?
On Nov 12, 8:06 am, sbonar <[EMAIL PROTECTED]> wrote:
> The following snippet of javascript works great in every brower but
> mobile safari. Does anyone have a suggestion on what I can do?
> Basically, "doc" comes back undefined.
>
> function checkIframeLoad()
> {
> iframeCheckCount++;
> if (iframeCheckCount > iframe_timeout) {
> alert ("%[up.if.1:The action can not complete because the
> network
> connection seems to be down]%");
> location.reload (true);
> return;
> }
> if (typeof(iframeCallback) == "function") {
> try {
> var doc = eval('window.frames.myframe_'+iframeNumber
> +'.window.document');
> var data = getDataFromXML (doc);
>
> if (typeof(data)=="string" && data.length > 0) {
> iframeCallback (doc);
> return;
> }
> }
> catch (err) {
> }
> window.setTimeout ('checkIframeLoad();',100);
> }
>
> }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---