-1

I have a page with a list of users. Every time i click on a username a div will be loaded via ajax, and this div will contain the user details plus another ajax link that will be used to display a floating div that will contain a form to send a message to the user.
The first time i load the user everything will be going just fine, and when i click on the "send a private message to the user" link just one request will be triggered.
If i load then another user (or the same user) when i click on the "send a message" link two request will be triggered, and then 3, and then 4 and so on. Please, i'm a new poster and posting on mobile cos its urgent so the code wont be easy to post. But i hope the problem has been well explained. Please people help!

Votes + Comments
a correct answer has been given to you - you need to say "THANK YOU!" and mark your thread as "Solved!"
3
Contributors
4
Replies
17
Views
4 Years
Discussion Span
Last Post by Troy III
0

hai Olyboy16,

in my point of view, its vaery hard to explain by seeing the explanation.

it will be easy to expert of here atleast by seeing the example or the code for giving a proper solution to your problem

lets see if any expert of here can try to give a solution to your problem

so please wait some more time for the experts valuable response

happy coding

Edited by radhakrishna.p: giving clarity on the solution

0

K thanks man. Its cos of the mobile i'm using, if i was wif my PC, i woulda posted the code

0

that's because you are using addeventlistener method assignment on that container instead of a simple onclick or onsubmit function assignments.

The true solution though, is not doing that dynamically.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.