search for: targetdiv

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

Did you mean: targetdir
2008 May 08
2
DOM builder and HTML events
Hey guys, My team is have an issue using the Prototype DOM builder. For some reason, the onchange event isn''t being registered for an input box. $(''targetDiv'').update(new Element(''input'',{type:''text'', id:''blah'', onchange:''alert();''})); When we insert via the .innerHTML parameter, it works just fine. Any thoughts? Thanks guys -Mike --~--~---------~--~----~------------~-...
2010 Sep 26
1
Rails 3 basic Get JSON with jQuery and output on the page flow question
...with this hopefully basic JSON type question.... I have a model Books in my app, which belong_to users. What''d I''d like to learn how to do, is use jQuery to get a JSON object of the books that the user owns (current_user). And then use jQuery to list the results out on a div (id=targetdiv). Where I''m not certain, is this something Rails 3 does out of the box? Because I see the respond .js, but I think JSON is what is needed by jQuery, right? Thanks for helping me learn this! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails...