JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 19th, 2006, 01:21 PM
asdf asdf is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 3 asdf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 44 sec
Reputation Power: 0
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?

Reply With Quote
  #2  
Old April 19th, 2006, 01:56 PM
asdf asdf is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 3 asdf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 44 sec
Reputation Power: 0
I'm using onload="this.scrollby(x,y);" but I think i'm still having dom sec issues.

Reply With Quote
  #3  
Old May 20th, 2006, 01:52 PM
mrhoo mrhoo is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 4 mrhoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 17 m 4 sec
Reputation Power: 0
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.

Reply With Quote
  #4  
Old May 21st, 2006, 11:43 PM
ravs ravs is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Location: gurgaon, haryana, india
Posts: 60 ravs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 44 m 29 sec
Reputation Power: 3
Send a message via Yahoo to ravs
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Document position within an iframe


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway