Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
setStyle after clonePosition not working
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kstubs  
View profile  
 More options Nov 13 2012, 1:07 am
From: kstubs <kst...@gmail.com>
Date: Mon, 12 Nov 2012 22:07:12 -0800 (PST)
Local: Tues, Nov 13 2012 1:07 am
Subject: setStyle after clonePosition not working

After I invoke clonePosition on an element, then setStyle is not working.
 Is this expected behavior?

Karl..


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
petrob  
View profile  
 More options Nov 14 2012, 8:23 am
From: petrob <petrob...@yahoo.com>
Date: Wed, 14 Nov 2012 05:23:47 -0800 (PST)
Local: Wed, Nov 14 2012 8:23 am
Subject: Re: setStyle after clonePosition not working

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..


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kstubs  
View profile  
 More options Nov 15 2012, 9:45 am
From: kstubs <kst...@gmail.com>
Date: Thu, 15 Nov 2012 06:45:33 -0800 (PST)
Local: Thurs, Nov 15 2012 9:45 am
Subject: Re: setStyle after clonePosition not working

> 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.

At any rate: I'll try and get a sample together.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
petrob  
View profile  
 More options Nov 16 2012, 4:18 am
From: petrob <petrob...@yahoo.com>
Date: Fri, 16 Nov 2012 01:18:56 -0800 (PST)
Local: Fri, Nov 16 2012 4:18 am
Subject: Re: setStyle after clonePosition not working

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kstubs  
View profile  
 More options Nov 26 2012, 11:12 am
From: kstubs <kst...@gmail.com>
Date: Mon, 26 Nov 2012 08:12:53 -0800 (PST)
Local: Mon, Nov 26 2012 11:12 am
Subject: Re: setStyle after clonePosition not working

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.

Karl..


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »