Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. Posted in: Widget Central

Reading from hidden iFrame broken in Leopard?

Author Message
wiley



Joined: 31 Oct 2007
Posts: 1

Posted: Wed Oct 31, 2007 - 11:42 am    Post subject: Reading from hidden iFrame broken in Leopard? Reply with quote

Hi:
I've got a widget that does a web page "scrape" by loading a HTML document in a hidden iFrame, then taking extracting parts I want using the DOM.

However, the method seems to be broken in Leopard, which is entirely new to me...

After doing an AJAX request, the code looks like:

var thisText = req.responseText;

...

var frame = document.getElementById("HTMLData"); // the iframe
frame.document.write(thisText);
frame.document.close();
var doc = frame.contentDocument;

...DOM stuff, etc...

Any workarounds or suggestions?

Chris
View user's profile Send private message Send e-mail Widgets
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

 
Powered by phpBB © 2001, 2002 phpBB Group