I need to change an empty sibling frame's location. Since that's asynchronous (or can I change this?), I instead need to assign the source code of a webpage retrieved by an XMLHTTPREQUEST to the entire document. Since DOCUMENT.ALL isn't well supported, what is?
I tried DOCUMENT.WRITE(), but it adds an extra history index!
I also tried asssigning to a <DIV>, but aren't two nested <HTML> elements a bad thing?
"I need to change an empty sibling frame's location...."
Your first sentence, which I answered. Thanks for the rude reply when I was trying to help.
"...changing a frame's SRC or LOCATION is asynchronous..."
That makes absolutely no sense what so ever. A location can not be asynchronous. It sounds like you are confused about what you want and how to go about doing it and are blaming others for your inability to express your self clearly and concisely.
If you are using "XMLHTTPREQUEST" to retrieve the source code of a web page. Then either you are page scraping to steal someone's source code, which resides on another server, OR you don't know how to assign a page to a hidden iframe and grab the innerHTML of that.
Last edited by slaughters; 08-19-2008 at 09:43 PM.
forces me to wait in a loop, which hasn't worked for me.
I will check back here occasionally to see if anyone has deciphered my posts and were able to help me, but for now, I'm moving on, as this history problem shouldn't drive too many users away from my search engine.
Thank you all!
P.S. slaughters, I prefer not to use iframes because they aren't well-supported.
P.S. slaughters, I prefer not to use iframes because they aren't well-supported....
That is totally wrong. As far as I am aware iframes are well supported in every major browser.
I expect your issue is that you want to scrape the information from the source of web pages that do not reside on your server. Iframes will display external pages, but you are blocked from getting their innerHTML unless they are on the same server.
Once again. It's real hard to understand what you want help with. You change your statements with each post and the things you do say make no sense ("DOCUMENT.WRITE()" changes the history list ?).
This is why no one is able to help you. This is why this is my last post to this thread.
I don't design in XHTML, so I may be wrong, but from quick googling it looks like the iframe tag works in XHTML transitional, but not XHTML 1.0 Strict. In Strict you are supposed to use the object tag with a mime type of "text/html"
(Q: is the object tag actually supported in HTML 4.01 Transitional or Strict ?)
Thanks to "rnd me" for posing an interesting enough query that I broke my promise about coming back to this thread.