CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 27th, 2001, 11:02 PM
Robert_J_Sherman Robert_J_Sherman is offline
Code Junky
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Central Missouri
Posts: 358 Robert_J_Sherman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 11 m 4 sec
Reputation Power: 0
Send a message via ICQ to Robert_J_Sherman Send a message via MSN to Robert_J_Sherman
Facebook
Exclamation

I've been slaving on this one, and don't seem to be getting anywhere.

I've accomplished my goal in IE 5.x using the following:

document.styleSheets[x].rules[x].selectorText

this gives me the "name" of the CSS selector.

In reading the CSS2 DOM, the following "should" work in NN, but I get a "bank" or "null" result.

document.stylesSheets[x].cssRules[x].selectorText

If I call the cssText attribute, I get all the text (properties) of the class, if I pull a type attribute
I get the appropriate (1) response.

Anyone, have any thoughts as to the nature of the problem?

Insight:
I'm building a "select" menu of the attached Style Sheet of the given document, to allow for "dynamic" altering of classes in a document, etc.. that's vague I know.. but anyway.. obviously, to build the select menu, I need to know the selectorText values from the style sheet.

Reply With Quote
  #2  
Old March 21st, 2001, 12:32 PM
Robert_J_Sherman Robert_J_Sherman is offline
Code Junky
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Central Missouri
Posts: 358 Robert_J_Sherman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 11 m 4 sec
Reputation Power: 0
Send a message via ICQ to Robert_J_Sherman Send a message via MSN to Robert_J_Sherman
Facebook
Problem Solved!

After much agony, I solved the problems I was having...

Turns out that the currently available version of NS6/6.01 has a bug which prevents it from displaying the selectorText.

This should be corrected in the release of NS6 as Mozilla 0.8 provides the solution.

On a side note, if you're a NetScape 6 user, I would seriously recommend using Mozilla instead, available from Mozilla.org.

This is updated each day, with a daily build..

The download is like really small, less than 3Mb and I've found Mozilla to load about 2 times faster than NS6/6.01

and It's more stable.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > NN6 Problems referencing cssRules[x].selectorText

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap