+ Reply to Thread
Results 1 to 3 of 3

Thread: good_url not positioned at top of page

  1. #1
    Join Date
    Sep 2007
    Posts
    15

    Default good_url not positioned at top of page

    I am using form mail in an iframe context.
    Problem is when the subsequent good_url page is opened it opens at the position of the form mail submit button i.e. scrolled down beyond my confirmation message text, this means that the user has to page up to see it!

    What is the best way to get it to open at good_url so that it displays from the top of the page?

    I've tried adding a bookmark (or anchor) e.g. #top to the form entry for good_url and within the relevant page but this is ignored, or doesn't deliver the effect.

    https://www.newleaf.uk.com/contact.htm

    Another curiosity is, why does the scroll down behaviour happen with good_url but doesn't happen with bad_url? (strikes me that this is a misnoma in this example, good doesn't work, bad does work...).

    By the way don't be mislead with the use of java script scrollTo - I put that in after the initial problem to see if it would help - it doesn't.
    Last edited by webjoy; 11-Feb-2008 at 09:46 PM.

  2. #2
    Join Date
    Sep 2007
    Posts
    15

    Default Re: good_url not positioned at top of page

    Found a solution after 6 hours on net patrol...

    http://www.webmasterworld.com/forum21/10675.htm

    in a nut shell, here is the solution...

    The iframe page needs:

    <script language="javascript">
    function scrollToTop() {
    scroll(0,0);
    }
    </script>

    The iframe call should include:

    <iframe onload="scrollToTop()"

    and it works!

    Thanks to someone going by the alias of lasvegas - thanks lasvegas!

  3. #3
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: good_url not positioned at top of page

    Hi,

    Yes, the behaviour of browsers with iframes can be quite frustrating!

    I once had did a 2 year project and I think 12 months of it was trying to get the iframes to do the right things.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. good_url
    By Allen in forum FormMail Subscription Support
    Replies: 2
    Last Post: 22-Feb-2005, 11:25 PM
  2. good_url problem
    By darren777 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 20-Jan-2005, 10:47 AM
  3. good_url problem
    By iankx in forum FormMail Subscription Support
    Replies: 3
    Last Post: 18-May-2004, 05:46 AM
  4. good_url
    By aloneranger in forum FormMail Subscription Support
    Replies: 5
    Last Post: 21-Jan-2004, 07:30 PM
  5. GOOD_URL COMMAND IN FORMMAIL.PHP
    By Paul Ovens in forum FormMail Subscription Support
    Replies: 3
    Last Post: 19-Jan-2004, 05:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts