Displaying 6 results from an estimated 6 matches for "tablerow".
2006 May 12
7
RJS and page.select collection size
I need to implement a conditional in my RJS template which looks
something like:
if (page.select(''row1'').first != null)
page << "new TableRow.MoveAfter(''row1'', ''newrow'');"
else
page << "new TableRow.MoveAfter(''row2'', ''newrow'');"
end
Now, dumb question.. My ''if'' doesnt work, how should I properly check if
the returned...
2007 Jun 19
5
TentSteak 0.2.0
...Enjoy!
----
CHANGES:
* HTML Forms
* Added new form field helpers: input_text, input_password,
input_submit, input_hidden, and input_checkbox.
* Renamed:
* file_field => input_file
* select_field => select_menu
* HTML Tables
* Added support for regexp''s in tablerow option :rowclass
* New support for editable table columns
* Renamed auto_table option :database_columns to :methods
* auto_table used to expand row objects into cell arrays;
now defers expansion to tablerow(:methods)
* auto_table fixed to better handle non-AR row objects
* Can p...
2006 Aug 08
3
Updating a tr with RJS
I''m having a strange display issue when trying to update a tablerow
using RJS.
This is the code in the RJS template:
page.replace_html "item_#{@item.id}", :partial => ''item_display''
So the existing <tr> has an id like item_1. When the update actions
completes, it renders this template and effectively replaces the tr with
i...
2006 Jul 11
0
malformed utf-8 character error
...tionView::TemplateError (malformed UTF-8 character) on line #6 of app/views/personel/edit.rjs:
3:
4: if @successful
5: page.hide element_row_id(@view_options)
6: page.insert_html :bottom, scaffold_tbody_id(@options), :partial => ''new_edit''
7: page << "new TableRow.MoveAfter(''#{element_row_id(@view_options)}'', ''#{element_row_id(@options)}'');"
8: page.show element_row_id(@options)
9: page << "Form.focusFirstElement(''#{element_form_id(@options)}'');"
D:/EErisken/Downloads/...
2006 Feb 25
31
Ajax Scaffold Generator for Rails Released
I just released a whole new version of the Ajax Scaffold Generator (for Ruby
on Rails). The generator creates a scaffold page like the typical rails one,
except adding, editing and deleting are all done inline. The generated
scaffold is valid XHTML strict and fully styled right out of the box.
Check out the demo:
http://ajaxscaffold.height1percent.com/
And the how-to:
2006 Jul 12
7
Does anyone work with iso-8859-1 database ?
hello,
Our database is in is-8859-1, and I want to update some text fields
without success due to some accentuate characters ?? ect ...
In my html page (where the charset is iso-8859-19) my textarea
display the accentuate characters well and when the user post the form
... I thought that I just need to save it .... without success since
ruby map one byte for one character ...
So I