Hi friends,
I have an application with DHTNL and JavaScript. it works well in IE. But it does not work in firefox and Netscape.
I got error message as:
Error: newStyleSheet.sheet has no properties
Source File: Line: 917
The IE syntax as********
newStyleSheet.addRule(MTMstyleRules.rules.selector, MTMstyleRules.rules.style);
The firefox and netscapt as*******
newStyleSheet.sheet.insertRule((MTMstyleRules.rules.selector + " { " + MTMstyleRules.rules.style + " } "), newStyleSheet.sheet.cssRules.length);
How to recode SYntax to match firefox requirement?
MTMstyleRuleSet is a function
newStyleSheet = MTMUA.document.styleSheets(MTMUA.document.styleSheets.length-1);
I have an application with DHTNL and JavaScript. it works well in IE. But it does not work in firefox and Netscape.
I got error message as:
Error: newStyleSheet.sheet has no properties
Source File: Line: 917
The IE syntax as********
newStyleSheet.addRule(MTMstyleRules.rules.selector, MTMstyleRules.rules.style);
The firefox and netscapt as*******
newStyleSheet.sheet.insertRule((MTMstyleRules.rules.selector + " { " + MTMstyleRules.rules.style + " } "), newStyleSheet.sheet.cssRules.length);
How to recode SYntax to match firefox requirement?
MTMstyleRuleSet is a function
newStyleSheet = MTMUA.document.styleSheets(MTMUA.document.styleSheets.length-1);