Prototype: 2 questions (elements'' attributes, dumping methods)

Alx
Tue, 17 Jul 2007 12:26:40 -0000

hello again)

1) i just wanted to know is it possible to get element''s attributes in
hash or array?
for example something like this:
<span style="color:red;" id="myEl"
onclick="alert(1)">
..
$(''myEl'').attibutes().length // == 3

2) is there any analogues of php functions var_dump() and print_r()
for Objects/Hashes and Arrays?


thank you and sorry for bad english)

Alx.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---