search for: link_description

Displaying 3 results from an estimated 3 matches for "link_description".

2006 Jul 21
1
RJS Failing
...ighlight, "link-#{new_link.id}" page.replace_html ''new_link_error'', '''' page[''link_url''].value = ''http://'' page[''link_name''].value = '''' page[''link_description''].value = '''' else # not saved, present error messages page.replace_html ''new_link_error'', error_messages_for(new_link) page.visual_effect :appear, ''new_link_error'', :duration => 0.5 page.visual_effect :h...
2006 Jul 16
6
How to access element attributes using RJS?
For example, in the following block: page.select(''.foo'').each do |element| ... end How would I access, just for example, the id attribute of each element in the collection? I''ve randomly tried element.id and element.attributes[''id''], but neither of those has worked. I''ve also been unsuccessful in finding any documentation on this, but it
2006 Jul 18
6
RJS - Insert at top of table?
...nks-list'', :partial => ''link'', :object => @link page.visual_effect :highlight, "link-#{@link.id}" page[''link_url''].value = ''http://'' page[''link_name''].value = '''' page[''link_description''].value = '''' else # not saved, so send back the error messages and new form end ...My question is, how can I insert the new link partial (a table row) below the row containing the <th>''s in my view? As is, the new link row is inserted before the table he...