CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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
Posts: 358 Robert_J_Sherman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 57 m 12 sec
Reputation Power: 0
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
Posts: 358 Robert_J_Sherman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 57 m 12 sec
Reputation Power: 0
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


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway