By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,847 Members | 3,231 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,847 IT Pros & Developers. It's quick & easy.

Error in JavaScript ?

ak1dnar
Expert 100+
P: 1,584
Hi there,
I Need some help over here, My web site produces a error only in the IE. firebug doesn't say anything about the error when executing over FF.

Expand|Select|Wrap|Line Numbers
  1. Line: 26
  2. Char: 5
  3. Error: Object Expected
  4. Code: 0 
  5.  
still I couldn't find out the reason for the error. Is There anyone out there who can help me on this? Thanks a lot.
Oct 17 '08 #1
Share this Question
Share on Google+
10 Replies


acoder
Expert Mod 15k+
P: 16,027
I notice that you've included some JavaScript files using conditional comments. Try commenting them out if you're not using jQuery, drupal, etc.
Oct 17 '08 #2

RamananKalirajan
100+
P: 607
Please check wether u have a file in this path

[HTML]<link type="text/css" rel="stylesheet" media="all" href="/hunger/sites/all/modules/nice_menus/nice_menus.css?v" />[/HTML]
Please check this one. the error is pointing to this line only. Just check this.

Regards
Ramanan kalirajan
Oct 17 '08 #3

acoder
Expert Mod 15k+
P: 16,027
That wouldn't result in a JavaScript error. IE is notorious for its sloppy line numbering.
Oct 17 '08 #4

ak1dnar
Expert 100+
P: 1,584
Thanks guys, I'll try that out. but it seems like removing jquery.js and drupal.js is bit difficult. need to read the the documentation to find out the way. I'll post back with the status. thanks again for all your help.
Oct 17 '08 #5

acoder
Expert Mod 15k+
P: 16,027
I'm not sure why you're only including them for IE. Perhaps you could remove the conditional comments to include them for all browsers and see if you get errors in other browsers.
Oct 17 '08 #6

ak1dnar
Expert 100+
P: 1,584
I'm not sure why you're only including them for IE. Perhaps you could remove the conditional comments to include them for all browsers and see if you get errors in other browsers.
Actually acoder, I also need to remove those lines, but still I couldn't find those lines in the source code.It has buried somewhere in the drupal api.
Oct 18 '08 #7

acoder
Expert Mod 15k+
P: 16,027
Oh, I see. I didn't realise it was automatically generated. Have you checked the drupal docs for this problem?
Oct 20 '08 #8

ak1dnar
Expert 100+
P: 1,584
Oh, I see. I didn't realise it was automatically generated. Have you checked the drupal docs for this problem?
Need more time to read those docs. Since I know the reason for the error, now it's easy for me. Thanks a lot for your help. I found those php codes which prints those "js" files, but removing them made more troubles, because it removes the "css" import lines too.
Oct 20 '08 #9

ak1dnar
Expert 100+
P: 1,584
Hi,
Something interesting, recently I deleted the records on the "cache" table which holds the cached web pages of the drupal. and it solved the error on the IE browser too. may be some erroneous javascript code was there on the cached javascript files and that was the reason for the error. What I did actually, I manually executed "delete from cache" over the the drupal database.

@Moderators:
Please remove the url to the production site from my original post as the problem is now resolved.
Oct 22 '08 #10

acoder
Expert Mod 15k+
P: 16,027
Done. So a relatively simple solution in the end. Glad to hear that you managed to solve it :)
Oct 22 '08 #11

Post your reply

Sign in to post your reply or Sign up for a free account.