Question:
Problem with javascript functions. Can you help?
god0fgod
2007-07-01 12:38:36 UTC
Code:




Whenever any of these functions are executed an error comes up that says an object is expected. I tried to change them. I get some of them working and some not but I can't get them all working. Please help.
Three answers:
anonymous
2007-07-01 12:52:14 UTC
I'm not having a problem when I run it (after I removed the obligatory "..."). How are you calling them? For example, all I did was use the onload property of my body tag just to test:



, but onload="xFusio()" should work too.



You aren't doing something like onload="xFusio" are you or onload=xFusio?



Note: I'm using the body tag and onload function only as examples.



EDIT: Ok, I checked again and tested it the way you are doing it and I'm still having no problems running the script. What is your page in.....Microsoft Publisher? I can't read it so I'm sure that's some sort of Microsoft product with it's wild metadata there. I don't want to say that's the problem but somehow...the html in your website is the problem. I just can't read it well enough to tell you where.



edit2: I'm getting issues with mime types in IE and firefox. Odd.
anonymous
2007-07-02 07:13:48 UTC
Are you clearing your browser cache? In Internet Explorer:

Tools, Internet Options, General Tab >> Delete Files and also >> Settings >> Select Every visit to the page. This way it will pick up all your JavaScript changes.



Couple things, end your statements with semi-colon ;

Good idea to give each window a unique name in the open() parameters

Use type="text/javascript" in the opening script tag
Parv
2007-07-01 19:53:01 UTC
your code doesn't have any error

except for the --> end tag



it should be //-->


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...