473,382 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Error in JavaScript ?

ak1dnar
1,584 Expert 1GB
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
10 1367
acoder
16,027 Expert Mod 8TB
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
608 512MB
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
16,027 Expert Mod 8TB
That wouldn't result in a JavaScript error. IE is notorious for its sloppy line numbering.
Oct 17 '08 #4
ak1dnar
1,584 Expert 1GB
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
16,027 Expert Mod 8TB
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
1,584 Expert 1GB
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
16,027 Expert Mod 8TB
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
1,584 Expert 1GB
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
1,584 Expert 1GB
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
16,027 Expert Mod 8TB
Done. So a relatively simple solution in the end. Glad to hear that you managed to solve it :)
Oct 22 '08 #11

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

Similar topics

0
by: nam | last post by:
could someone please help me with this bizarre problem - I've created a swf file at the top of my html page. The swf file (using Swish) is simply a menu of 5 links to 5 anchor points on the html...
3
by: sean | last post by:
///////////////////// var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("POST", "http://somesite/logon.asp", false, "domain\username", "password"); xmlhttp.send();...
1
by: Murray Patrick via DotNetMonster.com | last post by:
I am only just begun using .net etc. I create a program (etc), it compiled and ran on the local machine. The program was then uploaded on a remote server. I have found in testing it that the...
8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
1
by: sck10 | last post by:
Hello, I have a table with some controls in it, but it is not rapped in a form. I also have a button for reseting the page. When I click the button, the page resets, but I get the following...
9
by: lev | last post by:
Attempting to use javascript's regular expression methods to match a particular lab number and building which would then be copied to a pair of textfields, I found that general matching characters...
1
by: nandakumar.raghu | last post by:
Hi, I have written a javascript function that acceses properties from an activex object. - <OBJECT id="alertObj" classid="clsid:AEE77194-B98F-4E0E-A27F-4AD6B23F0038"></OBJECT> function...
16
by: viki1967 | last post by:
Hi all. I have problem with this string javascript: onclick="if(confirm('Confirm?')) location.href('form.asp?A=terry.d'arby'); return false; The error javascript is: Error: Expected ')' ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.