Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
60
rated 0 times [  66] [ 6]  / answers: 1 / hits: 27763  / 15 Years ago, mon, january 25, 2010, 12:00:00

I'm using jQuery+drupal and some jQuery plugins. All is ok with
Firefox. But in IE's i'm receiving problem like this.



Line: 1
Char: 1
Error: object expected
URL: http://businessway.am



I have included .js files. How to know where is the problem? In which
file? Line 1? Which file?



If you can please check site which I gave before.


More From » jquery

 Answers
17

You could get this type of errors in case the url of a <script src=...url...></script> does not return javascript, but some other content (html)



I checked the page, but all scripts with src actually do seem to return javascript. With a bit more digging, it seems that this eval code triggers the error message:



artNoStyleAdding(document)


It looks like it is coming from this script:



<script type=text/javascript>if (Drupal.jsEnabled) {$(document).ready(function(){             window.setTimeout(artNoStyleAdding(document), 2000);});}</script>


That's the last but one script in the head of the document.



Apperantly you forgot to declare and code the artNoStyleAdding function, whatever it is supposed to do.


[#97750] Thursday, January 21, 2010, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
anyssaarielles

Total Points: 415
Total Questions: 107
Total Answers: 92

Location: Greenland
Member since Fri, Jul 31, 2020
4 Years ago
;