[Proto-Scripty] $$ utility method returns href value instead of anchor tag reference

2009-03-20 Thread tkane2000
How come the $$() function returns the value of the href when selecting an anchor tag instead of the tag itself? ...I've had mixed results for this btwn FF and IE6, but it's consistant in the code below. Anyone know what I'm doing wrong here or if there's a workaround? div id=gallery

[Proto-Scripty] Re: $$ utility method returns href value instead of anchor tag reference

2009-03-20 Thread tkane2000
...@googlemail.com wrote: Almost certainly you are seeing the results of a toString() method kicking in for the objects (or similar). Try ... alert(links[0]: + links[0].id + ':' + links[0].href); Richard Quadling. 2009/3/20 tkane2000 tkthomp...@gmail.com: How come the $$() function

[Proto-Scripty] Re: $$ utility method returns href value instead of anchor tag reference

2009-03-23 Thread tkane2000
://news.bbc.co.uk/ * * * * HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Mar 20, 5:01 pm, tkane2000 tkthomp...@gmail.com wrote: hmm, well, links[0] is returning a string, not the a object, so those will both return null

[Proto-Scripty] Overwrite onClick in IE

2009-03-23 Thread tkane2000
...long story as to why I need to do this, but I have a set of links that already have onClick event handlers set and I need to overwrite them. If I could just get them to return false and do nothing else, I could use the observe method to the the rest. Below is an example of what I mean: The