| View previous topic :: View next topic |
| Author |
Message |
froomzer
Joined: 23 May 2006 Posts: 148
|
How can i access data on a iframe ?
i need access the data in a iframe that is a remote url |
| |
|
|
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| If that was possible then you could point (for example) the iframe at your visitor's bank website and read lots of information about their account. Cross domain scripting is a no-no. |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| montanarry so this is 100% impossible ? |
| |
|
|
jomanda
Joined: 19 May 2006 Posts: 70 Location: Germany
|
froomzer, there is no such thing as 100% ...
but it is something you just DO NOT WANT to happen  |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| What if i want to access data on remote iframe in MY page ? |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
With client side JavaScript runing at the standard security level when both sites are on the WWW baring browser bugs - it is impossible.
Do it server side. |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
Server side is not ok,
The content i want access, is affected per ip
So if i alter it server side, is not the same as the user side content would be |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| froomzer, Its your site. Add some means to override the ip in the request. |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| The iframe results are based per ip |
| |
|
|
|