Yeah, Andreas is right, same thing I'm using, it works, but not until everything on the page loads, and I tried to test everything through trial & error, and still nothing. I've even tested the javascript files inclusion position inside the HTML page (e.g. putting prototype.js first in the queue, and so on). No hope until the page's content loads completely.
I've tried the binding version of Andres, and it doesn't help either. If I'll find a solution to these, I'll check back, and post it. Cheers. Vladimir Ghetau http://www.Vladimirated.com On Nov 14, 12:54 pm, "Andreas Franke" <[EMAIL PROTECTED]> wrote: > Is this what you are searching for? > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> > <script type="text/javascript" src="/MyPath2Prototype/prototype.js"> > </script> > <script> > Event.observe( window,'load', function(){ > > Event.observe($("myelement"),"mousedown", function(element){ > > alert("foo1 says: "+element); > > }) > > } > > ); > > }); > > </script> > </head> > > <body id="mybody"> > <div id="myelement">Raum für den Inhalt von id "element_id"</div> > </body> > </html> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
