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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to