|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Document position within an iframe
I'm loading an offsite page into an iframe. This page contains a form submit button, which is the only peice of the page that needs to be seen. My first idea was to make my iframe the size of the button, and force the button to load at the top left corner of the document with css, I quickly discovered that this is impossible due to DOM security measures. Is there a way I can make my iframe the size of this button, and then force the iframe to load the document at a particular position (top left of iframe == top left of button)
If not, does anyone have any suggestions on how I can accomplish this task? |
|
#2
|
|||
|
|||
|
I'm using onload="this.scrollby(x,y);" but I think i'm still having dom sec issues.
|
|
#3
|
|||
|
|||
|
Most browsers won't let you open a new window
less than about 100 pixels,on or off your own domain, just as you can't open one positioned outside of the viewing screen. Doesn't matter if it's in an iframe, - you opened a new window object in the same scope as your page. It's only my opinion, but I think you should either let the user know the form is offsite or use your own forms. There are good reasons for the same domain policy, which protects web users from predators of all kinds. Including the kind that misdirect and spoof same-origin status. |
|
#4
|
|||
|
|||
|
hey buddy
dont go for iframe, do little bit diffrent. first check the form action of that page which u want to use in iframe. do it by view source if the page is not yours, and then put a simple button on your page , then copy the action of that form in to your form or you can also redirection. i think it will help you, if u dont understand it so ask me again |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Document position within an iframe |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|