What I'm trying to do is place information into a nornal <a> link, which will be sent along with an onclick ajax call. I know how to do this when the information is from an <input> tag just fine. But in this case I would like the information, like an id, to be contained somewhere in the <a> tag itself.
The reasoning behind this is I would like to build a jquery tree, and when a link inside is clicked, an ajax function is called that then "knows" which link was clicked and will act accordingly. I've tried sending the <a> tag along by adding its id to the arguments of the ajax call, but its value in request.vars ends up being undefined. I theoreticaly could have a hidden field with each element containing the id but this seems messy. Is there a better way? The reason I'm not just straight out callng controller functions is this tree will be generated from a user made xml file. It's then used to find content in another user made file, so it has nothing to with calling certain functions. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---