PDA

View Full Version : what is wrong with this page?


richb2
08-09-2002, 03:11 PM
I have put a page I am working on up
here (http://www.stonehousecom.com/agent_workstation.htm). For some reason it now has a problem with my onload(). on line 73. The function it calls is in include.js (http://www.stonehousecom.com/includeme.js) . If anyone can tell me what the problem is I would appreciate it. Or even better, if you can tell what tool I can use to find such asnwers in the future, that would be even better.

Give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime.:cool:

mordred
08-09-2002, 04:38 PM
:eek:
That must be the most complicated way to call a function on load of the document I ever saw...

But I think you have a syntax error in your loading() function, you have to reference the form field differently, like this:

document.forms["form1"].userid.value=getCookie("userid");


Or even better, if you can tell what tool I can use to find such asnwers in the future, that would be even better.


The best tools to understand your source code are a text editor with syntax highlighting and a decent javascript documentation.

MUBNET
08-09-2002, 04:57 PM
Why don't you use the " " tags ? First, use then
I will help you.

richb2
08-09-2002, 05:57 PM
If I understand you guys right it should be

document.forms["form1"].userid.value=getCookie("userid");

Is this correct, because it has the same error.

How would you call the function loading() on a onload?

RoyW
08-09-2002, 06:23 PM
try changing this

onload=MM_callJS('loading()')

to this

onload="loading();"

richb2
08-09-2002, 06:47 PM
OK. I did the fixes and still no go. I re-uploaded the file with the fixeshere (http://www.stonehousecom.com/agent_workstation.htm)