#prototype
9 posts tagged prototype. Clear filter
-
Rails 3 disable_with Does Not Work with Ajax Remote Form_for
It appears that the :disable\with option on the submit\tag form helper method does not behave as expected with remote forms. I'm not sure if this is a bug or not. But the fix is pretty straight...
-
Execute Javascript When Using Link_to_function To Include a Partial in Rails
If you use the link\to\function to replace content in a div with content from a partial, any javascript that you include in the partial will not be executed. It is instead included, but will do...
-
Onchange Event Fired from Select Field in Rails Form
In the view there is a regular Rails form and a javascript function that will be triggered when the country select field is changed. The javascript function will make an ajax request to the...
-
Accessing Links in Nested TD Cells with Prototype
There must be a better way to do the following with PrototypeJS. I want to loop over nested links inside of table td cells and apply a class to the row that the link is in when the link is clicked....
-
Double Click Event Using Prototype Javascript Framework
Super simple to get double click "desktop" like functionality out of Prototype! For some reason, googling it doesn't yield many useful results....
-
Rails Prototype JS and TinyMCE Autosave
TinyMCE is a nice little WYSIWYG for text processing online. It uses iFrames and Javascript callbacks to manipulate textarea form fields. Using it with Rails can be somewhat problematic if you want...
-
Using jQuery and Prototype Javascript Together with jQuery.noConflict();
To use the jQuery javascript framework in a Rails application, that also uses the Prototype framework for the same application, you'll need to reassign the $() function for jQuery to another...
-
Using Prototype to Access Form Data
Prototype has a powerful API for accessing and manipulating the Document Object Model, A.K.A the DOM. The following code will let you interact with a simple web form. Suppose we have a form that...
-
Parse for Links with Prototype JS
Parsing for links with the Prototype javascript library is easy. Here is the pattern for finding links And to implement it you can loop through your containers that might contain links