Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invaliad procedure call or argument... Dynamic CSS + External CSS swit

Status
Not open for further replies.

JSDNUK

Programmer
Feb 13, 2006
21
GB
Basically I've got 2 Javascripts, one that dynamically writes CSS (currently used for user text size selection) and the other that selects alternate external CSS documents (used to switch themes/colors).

From what I can see the error (Invaliad procedure call or argument) only occurs in IE5.5 (though I have not been able to test older browsers).

Firefox's Javascript console (v1.5) returns: document.styleSheets[0] has no properties and points to the following line of code (225) in preferences.js

Code:
if(navigator.cookieEnabled && document.styleSheets && (document.styleSheets[0].addRule || document.styleSheets[0].insertRule)){

Please have a look at www.enfield.gov.uk for more information...

Much Thanks in advance...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top