Gilant wrote: > A have an observer watch for a click on a link. Inside the triggered > function, I want to extract a piece of information from the URL. > Currently I am able to do: > alert(Event.element(el)); > ... > I think you're looking for location.href.match(...); it matches against the current url string. Event.element() returns an element object.
- Ken Snyder --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
