Help - Search - Members - Calendar
Full Version: Opening Link
HTMLHelp Forums > Programming > Client-side Scripting
Daniel J Cooper
Hi.
Hope this is in the right place.

I am trying to code a page so that when someone clicks on an image is calls a url but doesn't change the page.
Someone told me I should be able to do with with AJAX but I am unsure and don't know how to code it.

Anyone able to help me?

Thanks a load

Daniel

Christian J
QUOTE(Daniel J Cooper @ Dec 3 2008, 10:51 PM) *

I am trying to code a page so that when someone clicks on an image is calls a url but doesn't change the page.

Come again? unsure.gif Do you mean you want only part of the page to change?
Daniel J Cooper
QUOTE(Christian J @ Dec 3 2008, 11:05 PM) *

QUOTE(Daniel J Cooper @ Dec 3 2008, 10:51 PM) *

I am trying to code a page so that when someone clicks on an image is calls a url but doesn't change the page.

Come again? unsure.gif Do you mean you want only part of the page to change?



Hi. I want to be able to click on a button/link and it call a url ( http://api.nabaztag.com/vl/FR/api.jsp?toke...55&action=7 ). I dont want to send the user to this url. If possible I want to be able to display the response from the url ie Yes or No with out forwarding the user to this url.

Hope this makes more sense.

Thanks
Daniel
Darin McGrew
What you're talking about requires client-side programming, most likely in JavaScript. I'm moving this thread accordingly.
Brian Chandler
Not necessarily in order...

QUOTE
Hope this makes more sense.


Not really, no. You didn't answer Christian's question.

Do you mean you want only part of the page to change?

QUOTE
Hi. I want to be able to click on a button/link and it call a url ( http://api.nabaztag.com/vl/FR/api.jsp?toke...55&action=7 ). I dont want to send the user to this url. If possible I want to be able to display the response from the url ie Yes or No with out forwarding the user to this url.


If you want to insert an image (or similar) you can do this with Javascript, using so-called "AJAX Technology". If not, perhaps you can explain the motivation for wanting to break the basic one-address-one-page model of the Web.


This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.