Displaying 2 results from an estimated 2 matches for "new_link_error".
2006 Jul 21
1
RJS Failing
...1 && page[''no-links'']
page.insert_html :after, "category-#{new_link.category_id}",
:partial => ''link'', :object => new_link
page.visual_effect :highlight, "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 err...
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