displaying a page at a specified position

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mantrid

    displaying a page at a specified position

    hello

    i have a form about half way down a web page, which posts criteria for the
    WHERE part of an sql which then returns the results at the bottom of the
    page.
    Trouble is when the page reloads it goes to the top of the page again so the
    results are not visible and the user is sometimes unaware that anything has
    happened.
    I could get a message to display at the top to tell user to scroll to
    bottom but i would prefer the page to display at the start of the records(in
    a html table) . does anyone know how to do this?

    thanks
    ian


  • flamer die.spam@hotmail.com

    #2
    Re: displaying a page at a specified position


    mantrid wrote:
    hello
    >
    i have a form about half way down a web page, which posts criteria for the
    WHERE part of an sql which then returns the results at the bottom of the
    page.
    Trouble is when the page reloads it goes to the top of the page again so the
    results are not visible and the user is sometimes unaware that anything has
    happened.
    I could get a message to display at the top to tell user to scroll to
    bottom but i would prefer the page to display at the start of the records(in
    a html table) . does anyone know how to do this?
    >
    thanks
    ian
    make an anchor line above the text <a name="bottom"></a>. Then when you
    specify the page in which to reload use href="#bottom" or full path
    href="blah.com/page.php#bottom "

    Flamer.

    Comment

    • Rudi Menter

      #3
      Re: displaying a page at a specified position

      mantrid:
      does anyone know how to do this?
      Maybe you check for the sql LIMIT statement in the query
      e.g. when you prefer to display the result records from
      333 to 444 you write '... LIMIT 333, 111'

      hth
      --

      Comment

      • John Dunlop

        #4
        Re: displaying a page at a specified position

        mantrid:
        i have a form about half way down a web page, which posts criteria for the
        WHERE part of an sql which then returns the results at the bottom of the
        page.
        Trouble is when the page reloads it goes to the top of the page again so the
        results are not visible and the user is sometimes unaware that anything has
        happened.
        I assume that you are redirecting from the processing page (the page
        pointed to by your form's action attribute) back to the page the form
        is on using a Location header. You can add a fragment to the URL
        specified in the Location header (this violates HTTP/1.1 but it is
        mentioned in the errata) so that when the user-agent redirects, it
        redirects to the anchored position.

        --
        Jock

        Comment

        • mantrid

          #5
          Re: displaying a page at a specified position

          thanks all
          using an anchor seems the best way
          ian

          "mantrid" <ian.dandav@vir gin.netwrote in message
          news:t%64h.9216 $fz1.6862@newsf e4-win.ntli.net...
          hello
          >
          i have a form about half way down a web page, which posts criteria for the
          WHERE part of an sql which then returns the results at the bottom of the
          page.
          Trouble is when the page reloads it goes to the top of the page again so
          the
          results are not visible and the user is sometimes unaware that anything
          has
          happened.
          I could get a message to display at the top to tell user to scroll to
          bottom but i would prefer the page to display at the start of the
          records(in
          a html table) . does anyone know how to do this?
          >
          thanks
          ian
          >
          >

          Comment

          Working...