Href (link) staying on the same page

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

    #1

    Href (link) staying on the same page

    I would like to have a link that when clicked, sends info to an ASP page to process, but does not submit the entire page. This way, the user will
    click on a link and will not be taken to another page, but precessing will occur.
    This is mainly for a 'Rating' Application.
    Amazon.com does this and I want to know how they do it. Here is the link to the amazon page (you may need to be logged in)
    http://www.amazon.com/exec/obidos/tg...480771-6490552.

    Any ideas besides a hidden frame or popping up a window to do the processing?

    Thanks,
    Ariel
  • Randy Webb

    #2
    Re: Href (link) staying on the same page

    A.S. wrote:[color=blue]
    > I would like to have a link that when clicked, sends info to an ASP page
    > to process, but does not submit the entire page. This way, the user will
    > click on a link and will not be taken to another page, but precessing
    > will occur.
    > This is mainly for a 'Rating' Application.
    > Amazon.com does this and I want to know how they do it. Here is the link
    > to the amazon page (you may need to be logged in)
    > http://www.amazon.com/exec/obidos/tg...480771-6490552.
    >
    >
    > Any ideas besides a hidden frame or popping up a window to do the
    > processing?
    >
    > Thanks,
    > Ariel[/color]

    Set the src property of an img tag to point to your server side script.
    The browser will request the file, thus sending the data to the server
    where it can be processed.

    --
    Randy
    Chance Favors The Prepared Mind
    comp.lang.javas cript FAQ - http://jibbering.com/faq/

    Comment

    • Silvio Bierman

      #3
      Re: Href (link) staying on the same page


      "A.S." <xweb10@lycos.N OSPAM.com> wrote in message
      news:r_7_b.3876 $yZ1.1877@newsr ead2.news.pas.e arthlink.net...[color=blue]
      > I would like to have a link that when clicked, sends info to an ASP page[/color]
      to process, but does not submit the entire page. This way, the user will[color=blue]
      > click on a link and will not be taken to another page, but precessing will[/color]
      occur.[color=blue]
      > This is mainly for a 'Rating' Application.
      > Amazon.com does this and I want to know how they do it. Here is the link[/color]
      to the amazon page (you may need to be logged in)[color=blue]
      >[/color]
      http://www.amazon.com/exec/obidos/tg...480771-6490552.[color=blue]
      >
      > Any ideas besides a hidden frame or popping up a window to do the[/color]
      processing?[color=blue]
      >
      > Thanks,
      > Ariel[/color]

      You could use the same url as the current page but that will force a reload
      or you could Google for XMLHTTP.

      Silvio Bierman


      Comment

      • Silvio Bierman

        #4
        Re: Href (link) staying on the same page


        "Randy Webb" <hikksnotathome @aol.com> wrote in message
        news:FuOdnfZTi4 v63qTdRVn-ug@comcast.com. ..[color=blue]
        > A.S. wrote:[color=green]
        > > I would like to have a link that when clicked, sends info to an ASP page
        > > to process, but does not submit the entire page. This way, the user will
        > > click on a link and will not be taken to another page, but precessing
        > > will occur.
        > > This is mainly for a 'Rating' Application.
        > > Amazon.com does this and I want to know how they do it. Here is the link
        > > to the amazon page (you may need to be logged in)
        > >[/color][/color]
        http://www.amazon.com/exec/obidos/tg...480771-6490552.[color=blue][color=green]
        > >
        > >
        > > Any ideas besides a hidden frame or popping up a window to do the
        > > processing?
        > >
        > > Thanks,
        > > Ariel[/color]
        >
        > Set the src property of an img tag to point to your server side script.
        > The browser will request the file, thus sending the data to the server
        > where it can be processed.
        >
        > --
        > Randy
        > Chance Favors The Prepared Mind
        > comp.lang.javas cript FAQ - http://jibbering.com/faq/
        >[/color]

        Randy,

        That is a nice little trick that never crossed my mind, thanks.

        Silvio Bierman


        Comment

        Working...