IE "Char: 1 Error: Object expected Code: 0"

  • Thread starter Thread starter LCValentine
  • Start date Start date
L

LCValentine

I've been developing a plugin for WordPress to allow WordPress users to
host, manipulate, and feature their own images in a gallery type
fashion. While this is NOT my webpages, it is my beta test area, where
in I am getting the following problem(s):

The page loads a "variable" (the JS changes) javascript with the
function "show_img" defined.

Within the page, each image is wrapped in a link to attach it to the
"onclick" event and thus the "show_img" function.

In Firefox, I don't have a single error.
The w3.org validator says my xhtml is flawless.

But when I go to the index:
http://blog.sosam.net/index.php?p=MUSE
and load the newest photo album "Car Show" (please follow the previous
link and choose Car Show)

I get the following error:

Line: xxx
Char: 1
Error: Object expected
Code: 0
URL: http://blog.sosam.net/index.php?p=MUSE&aid=33

"Line: xxx" refers to any line with the link featuring "show_img" that
you just clicked on.

-QUIRK-
If you reload this page, the error stops happening.

If anyone has experienced this and wants to tell me I'm not completely
crazy, please tell me so. Also, if anyone can explain this I would be
eternally greatful!!
 
Hi LC,

I followed your instructions but could not reproduce the errors, so I don't
know if you have already fixed it yourself.(I am using XP sp2).

Since the script works on FF and not IE then the obvious solution would be
to code different scripts for the browser type. We have all been there and
done that.

I trust that the above is correct and you have found a solution.

Regards.
 
I wish... I also use XP SP 2. I just don't know how/why this happens.
There is no reason a function call in one is an error in the other.

I hate IE.
 
Just FYI, no problems with IE6sp1.
Beautiful red car!
--
mae


| I wish... I also use XP SP 2. I just don't know how/why this happens.
| There is no reason a function call in one is an error in the other.
|
| I hate IE.
|
 
Additional Info:

I'm not sure if any of the passers-by here are PHP programmers as well,
but it's worth noting that I have a referer check on the identified
script. If the referer for the JS is not the corresponding homepage
for the script, nothing is loaded. Do you think it possible that IE
improperly reports its referer sometimes?
 
Hi LC,

Not likely. Do a search for the Fiddler tool which you can use with IE to
inspect the HTML headers.

Since other users have said they have had no problems with the site seems to
pin the problem down to your IE settings. Try it with a low security level.
There have been alot of changes made to IE in the way it handles opening
dialog windows.

Regards.
 
I've been developing a plugin for WordPress to allow WordPress users to
host, manipulate, and feature their own images in a gallery type
fashion. While this is NOT my webpages, it is my beta test area, where
in I am getting the following problem(s):

The page loads a "variable" (the JS changes) javascript with the
function "show_img" defined.

Within the page, each image is wrapped in a link to attach it to the
"onclick" event and thus the "show_img" function.

In Firefox, I don't have a single error.
The w3.org validator says my xhtml is flawless.

But when I go to the index:
http://blog.sosam.net/index.php?p=MUSE
and load the newest photo album "Car Show" (please follow the previous
link and choose Car Show)

I get the following error:

Line: xxx
Char: 1
Error: Object expected
Code: 0
URL: http://blog.sosam.net/index.php?p=MUSE&aid=33

"Line: xxx" refers to any line with the link featuring "show_img" that
you just clicked on.


So, have you checked whether the source for the script is being loaded?

<extract>
<script src="/?p=muse&amp;aid=33&amp;view=alb.js" type="text/javascript"></script>
</extract>

BTW it shows up in the TIF Viewer, so if it's there you can even
drag it to a Notepad window and make sure it hasn't been corrupted
somehow.

-QUIRK-
If you reload this page, the error stops happening.


All the more reason to check then if the source file was loaded
properly the first time and compare how it is loaded the second.


If anyone has experienced this and wants to tell me I'm not completely
crazy, please tell me so. Also, if anyone can explain this I would be
eternally greatful!!


Any interfering software active? E.g. firewall, ad scraper,
script debugger, etc.?


Good luck

Robert Aldwinckle
---
 
Back
Top