This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes xml htttp request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "xml htttp request" Watch "xml htttp request" New topic

xml htttp request


Joined: Jun 17, 2005
Posts: 1

I want to track the link clicks. I have done a sample.

When the link is clicked I am calling a php - NoteLink.php which puts an entry into my db regarding the clicked link.

it looks like a wonder. When I click once, I could not see any entry. But when I click fast continously 3 or 4 times, I could see the entries in the db.

Can you guess why this happens? :roll:



Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
"ArulJose Jose

There aren't may rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Eric Pascarello
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You most liekly need to return false with the onclick:

<a href="#" onclick="intimateClick('1');return false;">hello</a>

I agree. Here's the link:
subject: xml htttp request
It's not a secret anymore!