homepage Welcome to WebmasterWorld Guest from 54.167.10.244
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Navigation issues with iframe
User remains at bottom of page after submitting iframed form...
Canton




msg:576930
 5:13 pm on Mar 17, 2006 (gmt 0)

Hello all - hope this isn't too rudimentary a question, but I've done some searching here and via the engines and can't find the solution to my problem.

My situation is this - I have to pull a multi-part form into my site using an iframe. The form contains 4-6 steps, depending on the path the user takes through the form.

However, during the form submission process, for example - at the point of the "submit" button, the form is submitted and the user taken to a confirmation page. However, because the user had to scroll down on my site/page (in the main browser) to get to the form's "submit" button, they are left with empty white space after submitting (i.e. - they're at the bottom of my page, but the content they should see, pulled in via the iframe, is at the top of the page and they can't see it without scrolling up).

Naturally, this leads to a choppy form submission process and is generally not user-friendly.

I know I could have the iframe itself scroll so that it always fits on the screen and no scrolling within the main browser window would be necessary...however, I'd like the iframe to be entirely transparent, i.e. - no borders or scroll bars.

Is there a way to remedy this situation that is not overly complicated?

Thanks,
Canton

 

kaled




msg:576931
 5:38 pm on Mar 17, 2006 (gmt 0)

If I understand you correctly, you may need to use javascript.

When necessary, call item.focus() on an item such as a link below the <iframe>. You may also need to call item.scrollIntoView()

With some experimentation, it may be possible to add a #namedAnchor value to the form's action. If you can make it work, this would be preferable.

Kaled.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved