Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Frames acces problem
01-01-2004, 10:16 PM #1
- Join Date
- Jan 2004
- Thanked 0 Times in 0 Posts
Frames acces problem
This is a description of the problem I'm having.
Any help will be highly appreciated :
Using only JScript,
I'm trying to get some info from an external page (for example http://www.codingforums.com/ ) and parse information from that page into my page.
What I did was :
Create a Frameset that contains both pages - the external one, and my page (frame1.htm). Place a button on my page, that starts a function (called : getData()). This function tries to acces the other frame (the one with the external page loaded in it; the code is : **parent.right_frame.document** ), and read some of that data.
The problem :
After all this, the browser (IE6) reports the following error :
That's it. I can't acces an "external" frame or rather a frame that holds an external page (not on my server)...
Help me please. This is a very important task for me. 10x in advance
01-01-2004, 10:50 PM #2
you cannot script cross-domain it is a security violation, and part of the built in security of the browser. If you want to access what is on a page from another domain you either have to do it server side, or save the page offline and work on it on your own computer.