Topic awaiting preservation: Accessing the Contents of an iFrame (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: USA |
posted 12-17-2004 06:06
I am trying to access the HTML of a page loaded into an iframe. However, I am not familiar enough with the DOM to get it to work right... is it possible? code: <html>
|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 12-17-2004 06:31
For security purposes, you can't access frames across domains, I'd assume this counts for system frames like about:blank. |
Paranoid (IV) Inmate From: USA |
posted 12-19-2004 01:50
Yes, you're right; if I treat it as a frame instead of an object, I can modify it's attributes. code: <html>
|
Bipolar (III) Inmate From: f(x) |
posted 12-19-2004 04:54
I've been able to get source from remote websites via frames, take a look at my question about it. |
Paranoid (IV) Inmate From: USA |
posted 12-19-2004 06:09
That is helpful for a lot of things, but I'm running into the exact same security problems as before. But I somehow missed that last time, thanks! *bookmarked* code: <html>
|
Paranoid (IV) Inmate From: USA |
posted 12-19-2004 07:03
Okay, I solved it (still only for Mozilla, but this is acceptable for me, it's for my own fun). The way is to request special privileges from the user. code: <html>
|