Forum Moderators: open
Unfortunately all I seem to be able to get is the URL that's being generated, which isn't much help since I already know it(!)
I can post some code if it helps to explain the problem.
Thanks.
You have an array of URL strings. You direct your IFRAME to a URL picked at random from the array. You then want to find particular pieces of text in in the sourcecode of the document you have loaded into the IFRAME.
1. You know that...
You can only access the document in the IFRAME if it's from the same domain as your page
2. How do you know when the IFRAME has loaded so that you can access it without error?
3. Do you need wide support, or will IE be enough for your current project?
4. Do you need/want to access documents outside your domain?
That's right, you understood my ramblings exactly! In answer to your questions,
1) No, I didn't know that, can it be got round?
2) I am using onload to make sure, which only = true when the page is fully loaded.
3) This is a personal project, so whatever browser works is what I'll use. I'm using IE at the moment because it allows for my sloppy coding! :P
4) Yes, the domain is Google's, and just http (not secure or a weird protocol or anything).
Thanks.
1. Information that you enter into forms.
2. See where you go surfing.
...and send it back to them.
However, the good news is that you can get at the document straight from the server. You need to use an XMLHTTPrequest. I'll be stickying you some useful code shortly.
I know what this is for!
Better share it with everyone else, so you can all see what I'm talking about...
[webmasterworld.com...] (Post #19)
I'll be stickying you some useful code shortly.
Thanks Bernard Marx, it'll be much appreciated.