|
Element.findElement - confusion: msg#00117lang.ruby.rails.spinoffs
Hello I'm kind of confused on how to use Element.findElement. I've something like this: if (Event.findElement(event,'A')) { var elm = Event.findElement(event,'A'); alert(elm.nodeName); } else { alert('no link'); } var elm = Event.findElement(event,'A'); alert(elm.nodeName); returns #document! since the Event.findElement is not a 'A' tag, why does it still goes through if condition and not the else stuff? how could I do this so it would handle this properly. thank you in advance for your help. _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Looking to develop for scriptaculous: 00117, Andrew Kaspick |
|---|---|
| Next by Date: | 3rd party controls: 00117, Dylan Greene |
| Previous by Thread: | New Core Effecti: 00117, Jerod Venema |
| Next by Thread: | 3rd party controls: 00117, Dylan Greene |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |