This Object in Javascript Causes Error

A

Anbu

All,

I'm developing an website using ASP .NET. I have developed a menu
structure based on JavaScript. This JavaScript file is called by an
UserControl to generate the menus.

It works fine for the WebPage that lies in the same folder. But when i
use the same control in another page (another directory) it's not
working property. It shows an error "Object Required".

The statement is as given below,

this.css= "/scripts/intranet.css"
Also I'm not able to access the document object from Javascript.

TIA
 
A

Anbu

I think the problem is with the following statement,

this.css=
bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers."
+obj):0;

This statement set css value based on the Browser type. Is there any
problem in declaration?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,209
Messages
2,571,088
Members
47,687
Latest member
IngridXxj

Latest Threads

Top