The clone position method and setting style properties on an element have nothing to do with each -other. Could you:
use firebug to place break points in your code to see the values of your variables before / on / after using these methods! if these are all right, provide a minimal-case code snippet that represents the problem not expect other people to do all the job for you..
> if these are all right, provide a minimal-case code snippet that represents the problem > not expect other people to do all the job for you..
I was merely looking for verification on the behavior of the two methods in code, and wondering if anyone else had experienced similar. Man I hate forum bashing.
Ok.Yes, I have made mistakes in my code that caused Prototype methods not to work. Prototype methods do not work on unextended elements - if you lose the reference to your element in a variable, for whatever reason-, if you try to call element methods on non-elements, or you are calling an element method with a typo in the argument, for instance. Have you checked all these by placing break points in firebug at some critical points in your code? Do you get any error messages in the console? Have you tried setting some style properties on your element directly through the native style declaration object? I would do this latter one first! There are always people here to help beginners (in Prototype!) out if they see an effort.
I appreciate the follow up petrob. I am not new to Prototype, I've been using if for 3-4 years now. Yes, I have stepped through the code, have invoked setStyle from the console, etc.. to no evail. This particular issue has slipped away a bit, when it comes around again and is high priority I will put together that sample code and investigate further.
On Friday, November 16, 2012 2:18:56 AM UTC-7, petrob wrote:
> Ok.Yes, I have made mistakes in my code that caused Prototype methods not > to work. Prototype methods do not work on unextended elements - if you lose > the reference to your element in a variable, for whatever reason-, if you > try to call element methods on non-elements, or you are calling an element > method with a typo in the argument, for instance. Have you checked all > these by placing break points in firebug at some critical points in your > code? Do you get any error messages in the console? Have you tried setting > some style properties on your element directly through the native style > declaration object? I would do this latter one first! > There are always people here to help beginners (in Prototype!) out if > they see an effort.