473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

This Object in Javascript Causes Error

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

Nov 19 '05 #1
1 1105
I think the problem is with the following statement,

this.css=
bw.dom?document.getElementById(obj).style:bw.ie4?d ocument.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?

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Olaf | last post by:
I have a frameset page witch contains the myFuc() function. The function is accessed from a page in one of the frames in the frameset. An example is shown below. <input...
3
by: sean | last post by:
///////////////////// var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("POST", "http://somesite/logon.asp", false, "domain\username", "password"); xmlhttp.send();...
2
by: SmittyBroham | last post by:
Hello, I have a function that loops through 2 select lists and records the values of any hi-lighted options a user would have selected. It then sets 2 corresponding "hidden" form elements to the...
7
by: stellstarin | last post by:
hi all, I have a HTML page with two forms. While trying to add a hidden element in a first form by the default javascript function, the error message 'object does not support this property or...
5
by: Cylix | last post by:
this.menus = { root: new Array };
12
by: Mikhail Kovalev | last post by:
opens a new window window_1 which contains a form, uses window reference to change values there and submits, anyone can have a quick glimse over this windows opens ok, nothing happens afterwards :...
5
by: maya | last post by:
hi, what is this error please? uncaught exception: Permission denied to call method Location.toString I see this error sometimes in FF error console but it says nothing about what causes...
11
by: redog6 | last post by:
Hello I have the above javascript error on filling in mandatory fields and submitting the form below: ...
4
by: Ty | last post by:
Hello all, I am creating a web site with Visual Stuido 2008. I am trying to use a java script file to create a busybox for login from this page http://blogs.crsw.com/mark/articles/642.aspx. I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.