search for: krjs

Displaying 6 results from an estimated 6 matches for "krjs".

Did you mean: kris
2007 Oct 05
7
Trouble with text_field_tag
I am trying to implement a basic login page: login.rhtml 1 <fieldset> 2 <% form_tag do %> 3 <label for="name">Name:</label> 4 <%= text_field_tag :name, params[:name] %> 5 <label for="password">Password:</label> 6 <%= password_field_tag :password, params[:password] %> 7 <%= submit_tag
2006 Jun 14
0
krjs plugin: a different way of doing RJS
Hi guys, Just wrote a simple plugin, krjs<http://plugins.radrails.org/directory/show/70>, that introduces kind of a VB-event-style of writing RJS apps. You introduce Ajax behaviors into your application by defining event handlers ( e.g. on_form_submit, on_password_change) in your controllers instead of explicitly doing remote_form_t...
2006 Jul 07
3
dynamically updating a listbox from another listbox
Hi, I would like to be able to dynamically (without reloading the page) change the values from one listbox when a user select items from another listbox. I have a model ''Sector'' which has_many ''levels'' (and of cours, ''Level'' beyong_to ''sector''). I want to show the user two listboxes with the sectors and levels. But
2006 Jul 17
3
Best practices - field initialization based on display rules
All, I have a form with the following field interaction rules. Given checkbox A, text field B text field C If checkbox A is checked then make text field C equal to the value of text field B and disable field C. If checkbox A is unchecked then enable field C. In order to display a form where I''m manipulating an already existing object, I have something like this in my RHTML template
2006 Jun 20
1
Extending RJS
Is it possible to extend RJS and create another object, like ''page''? I''m trying to create a customized RJS for my own javascript library. Thanks in advance -- Posted via http://www.ruby-forum.com/.
2007 Mar 06
1
Smart forms in Rails?
I am working on a project that needs a "Smart Form" type of system. That is, we need to have a Form Template system that chooses what elements of the form are displayed based on how the user answers other elements of the form. Does that make sense? Can anyone point me in the right direction? -- Posted via http://www.ruby-forum.com/.