[Rails] Re: Re: Re: Calling a Javascript method from a view
radhames brito wrote:
> looks like you are not using any javascript library but are calling a
> prototype method or something
>
> var img = document.getElementById("dicom_image");
getElementById is core JavaScript, not a Prototype extension. If you're
going to spread misinformation like this, please do us all a favor and
stop posting.
>
> var width = img.clientWidth;
> var height = img.clientHeight;
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
Sent from my iPhone
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home