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));

This displays the url string of the link, which is exactly what I need
to work with. However, when I try:
Event.element(el).match(//);

I get a javascript error "selector.match is not a function". I also
note that prototype has an extension to Element named match as well.
Am I accidentally using prototypes when I want the native javascript
function? Or does Event.element() return a string to alert but
something else otherwise? Is there any way to get the string displayed
in the alert into a form I _can_ use .match(//) on?

Confused again,
Sean


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to