Displaying 3 results from an estimated 3 matches for "link_url".
Did you mean:
link_prl
2006 Jul 21
1
RJS Failing
...tml :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 error messages
page.replace_html ''new_link_error...
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?
...true %></td>
</tr>
<% end %>
</table>
and the create.rjs file:
if @saved
page.insert_html :top, ''links-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 n...