By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,608 Members | 1,925 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,608 IT Pros & Developers. It's quick & easy.

Href (link) staying on the same page

P: n/a
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
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
A.S. wrote:
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


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.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #2

P: n/a

"A.S." <xw****@lycos.NOSPAM.com> wrote in message
news:r_*****************@newsread2.news.pas.earthl ink.net...
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


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

Silvio Bierman
Jul 20 '05 #3

P: n/a

"Randy Webb" <hi************@aol.com> wrote in message
news:Fu********************@comcast.com...
A.S. wrote:
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


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.javascript FAQ - http://jibbering.com/faq/


Randy,

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

Silvio Bierman
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.