search for: toggle_1901

Displaying 2 results from an estimated 2 matches for "toggle_1901".

2005 Oct 18
0
RE: Error: "onclick() is not a function"
...rchard-Hays Sent: Tuesday, October 18, 2005 8:50 AM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails-spinoffs] Error: "onclick() is not a function" So I tried the "onclick()" suggestion and an error was thrown that reported: Error: $("toggle_1901").onclick is not a function window.onload($("toggle_1901").onclick()); is the code and there is an <a href></a> that has "toggle_1901" as the id. Have you guys tried to trigger an even this way before? Jamie On Oct 17, 2005, at 11:38 PM, Jamie Orchard-...
2005 Oct 17
11
a better question
I''m trying to call a click() event on an <a href> that has an Observable registered for it. Something like: <a href="#" id="toggle_1929">show</a> ... Event.observe("toggle_1929", ''click'', function(event){ Element.toggle ("group_1929"); return false; }); ... $("toggle_1929").click(); //this throws