Closed Bug 231797 Opened 21 years ago Closed 21 years ago

Browser fails referencing some document objects when running on remote X terminals

Categories

(SeaMonkey :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: cayfer, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030917
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030917

username/pwd are required to access the service at the above URL.I can provide
the id/pwd pair to the developer.

The Javascript contains the following function. When the browser is run on a
local X window, there are no problems with this script. However, if Mozilla is
run on a remote X terminal (DISPLAY set properly), we get the "Error: MyObj is
not defined" for the last statement in the function below.

 function SetValueOf(ObjeAdi, Deger) {
	if (document.layers) {
    	MyObj = document.layers[ObjeAdi];
    } else if (document.all) {
    	MyObj = document.all(ObjeAdi);
    }

	MyObj.value = Deger;
}



Reproducible: Always

Steps to Reproduce:
1.xterm -display x.y.x.k:0.0
2./usr/local/mozilla/mozilla
3.goto above URL 
4. Enter userID and passwd (will be provided to the developer)
5. Click any course name (eg. Object oriented ....)

Actual Results:  
Javascript console appears with "Error: MyObj is not defined. (MyObj is a
variable used in the script)

Expected Results:  
complete executing the script without problems (it does so if running in a local
X window)
Are you *sure* this works ok on a local server? I'm sure we don't support 
document.layers, and pretty sure we don't do document.all either, so I don't 
see that we'd ever set a value for MyObj.

What errors appear in the JavaScript console, if any?
Layers and all are not supported by Mozilla.  Use document.getElementById(id) to
access elements.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.