[Rails] Re: Re: Re: Re: Calling a Javascript method from a view

2010-09-20 Thread Marnen Laibow-Koser
Abder-Rahman Ali wrote: Marnen Laibow-Koser wrote: radhames brito wrote: @Marnen Laibow-Koser getHeight() and getWidth() are prototype methods. ...which were not involved in the post you responded to as far as I can see. Read before you accuse me I did. Best, --  Marnen

[Rails] Re: Re: Re: Re: Calling a Javascript method from a view

2010-09-20 Thread Abder-Rahman Ali
No need to be sorry @Marnen, that's fine. -- 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,

Re: [Rails] Re: Re: Re: Re: Calling a Javascript method from a view

2010-09-20 Thread radhames brito
@marnen i comment via gmail, so i forget about the quoting, also , note that im not a native english speaker and some times my ideas dont come across the way i wanted them to. : / -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Re: Re: Re: Re: Calling a Javascript method from a view

2010-09-19 Thread Abder-Rahman Ali
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.

Re: [Rails] Re: Re: Re: Re: Calling a Javascript method from a view

2010-09-19 Thread radhames brito
because without library is var width = document.getElementById('dicom_image').clientWidth; or var image = document.getElementById('dicom_image'); var width = image.clientWidth; but you are calling image.width; On Sun, Sep 19, 2010 at 9:30 AM, Abder-Rahman Ali li...@ruby-forum.comwrote:

[Rails] Re: Re: Re: Re: Calling a Javascript method from a view

2010-09-19 Thread Marnen Laibow-Koser
radhames brito wrote: @Marnen Laibow-Koser getHeight() and getWidth() are prototype methods. ...which were not involved in the post you responded to as far as I can see. Read before you accuse me I did. Best, --  Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org Sent from

[Rails] Re: Re: Re: Re: Calling a Javascript method from a view

2010-09-19 Thread Abder-Rahman Ali
Marnen Laibow-Koser wrote: radhames brito wrote: @Marnen Laibow-Koser getHeight() and getWidth() are prototype methods. ...which were not involved in the post you responded to as far as I can see. Read before you accuse me I did. Best, --  Marnen Laibow-Koser

Re: [Rails] Re: Re: Re: Re: Calling a Javascript method from a view

2010-09-19 Thread radhames brito
@Marnen Laibow-Koser from Abder-Rahman Ali getWidth() is involved. If you check my question, you will see the following: i rest my case your honor. -- 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