On Dec 26, 5:43 pm, "Harry Porto Schroeter" <harry.po...@gmail.com>
wrote:
> Hi,
>
> i have this group of links with the same classname, i want to make a click
> behavior so when clicked it executes a function and in that function i want
> to use as parameters the query string from the href attribute on the links
> but i don't want the links to be executed with the browser going to the href
> address and these  links were written on the page from a previous
> ajax.update
>
> how i do that?

document.observe('click', function(e, el) {
  if (el = e.findElement('.myClassName')) {
    e.stop();
    alert(e.element().href);
  }
})

>
> thanks!

--
kangax
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to