[Rails] Re: Re: Re: Re: Calling a Javascript method from a view
radhames brito wrote:
> If you are learning and want to learn how to do everything nice and
> efficiently learn how to use a javascript library, if you are in a hurry
> and dont have time to learn keep doing it the way you have. The code i
> gave
> you is for when you are not using any library.
>
> with jquery it would have been as easy as this
>
>
> $("#dicom_image").width();
> $("#dicom_image").height();
At least for the way I'm following right now. Why am I not getting the
value of the width and height returned in my view?
In other words: How can I call the getHeight() and getWidth() Javascript
functions in my view here?
<canvas id="draw" height="?????" width="?????" >
</canvas>
Thanks.
--
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