I'm trying to apply styles to a node. The style selectors contain dynamic
information (IDs) that limit the style's effects to a specific node. I'm
using Insertion.Top to insert the styles. It's interesting, when I wrap the
styles in a para element as shown below, the para element is inserted, but
not the contained styles:
new Insertion.Top(widgets[i], '<p><style type="text/css">...</style></p>');
Is there another method I should be using?
Thanks,
Jeff Rankin
Human Factors
544-4333
"Martinez, Andrew"
<[EMAIL PROTECTED]> To:
<[email protected]>
Sent by: cc: (bcc:
William J. Rankin/UPC)
[EMAIL PROTECTED] Subject: RE: [Rails-spinoffs]
How to insert styles with Insertion
onrails.org
05/04/2006 10:35 AM
Please respond to rails-spinoffs
The Insertion object (Abstract)
This object serves as the root for other classes in the library. It does
not have any properties or methods. The classes defined in this object are
also treated as traditional abstract classes.
Now, I might be wrong, but I am pretty sure whatever you are trying to do,
isn't supposed to be done the way you are trying to.
Are you just trying to dynamically include an external CSS file or are you
just trying to apply a style to a node?
-Andrew Martinez
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 11:30 AM
To: [email protected]
Subject: [Rails-spinoffs] How to insert styles with Insertion
Hi,
I'm having difficulty using Prototype's Insertion method to insert styles
into a document node. Code like this seems to fail:
new Insertion.Top(widgets[i], '<style type="text/css"></style>');
When I inspect the DOM, the style is nowhere to be found.
Any ideas on how to get this to work? Thank you,
Jeff Rankin
Human Factors
544-4333
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs