473,382 Members | 1,526 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.

javascript error object expected

I have below javascript to show loading image until page loads which gives error in internet explorer 9, on chrome it works fine.
error is
javascript runtime error object expected
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
  2. <script type="text/javascript">
  3.     $(window).load(function () {
  4.         $("#pageloaddiv").fadeOut(2000);
  5.     });
  6. </script>
  7.  
Whats wrong
please help
Jul 15 '14 #1
3 1487
Dormilich
8,658 Expert Mod 8TB
put that just before the (closing) </body> tag:
Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2.         $("#pageloaddiv").fadeOut(2000);
  3. </script>
Jul 15 '14 #2
thanks for reply but it still gives the same error
Jul 15 '14 #3
Dormilich
8,658 Expert Mod 8TB
you obviously need to load the jQuery library before that.
Jul 15 '14 #4

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

Similar topics

4
by: Danny | last post by:
Hi I don't understand why I keep getting "Error: Object expected" I tried different things and haven't been able to solve it. I'm a newbie so I'm not sure what I'm doing wrong. The debugger breaks...
7
by: Erik-Jan Bakker | last post by:
Hello, I am stuck with a weird javascript problem.... ;-( Maybe it's somehting very simple, but I am really stuck in it, right now. What's the matter.... When place my website at a different...
11
by: westplastic | last post by:
This one is driving me insane. The script works perfect on Firefox, but Internet Explorer keeps complaining about "Error Object Expected" and stuff like that. I've run it through Firefox's Java...
1
by: avanti | last post by:
HI, I have an ASP page with some Javascript code. The JS has several functions and only some of them work. Here is part of the code: <html xmlns="http://www.w3.org/1999/xhtml"> <head...
0
by: manojkm84 | last post by:
hi i have a very wierd error its like this i using .net 2005 c#....theres a webgrid in a page.....n when i try clicking on ny link in it it gives this error.. Line:317 Char:1...
5
by: Diego Ruiz | last post by:
Hi!! my english is not too good, but i'll try it I have a javascript code: function executeCommands(inputparms) { // Instantiate the Shell object and invoke its execute method. ...
7
by: juliejam | last post by:
Hello all, I am new here and hope some kind, smarter than me person can help. I am getting the error object expected with the following code: function click(e); here the error says it...
4
by: jiyesong | last post by:
I get the following error on a website at home, but not at work. Error: object expected Could it be an internet setting?
5
by: lefterist | last post by:
Good afternoon, I 've got the followin code to validate a form, and get the "error:object expected (line 171 char. 1, line 172, char 2)" even if i tried to solve it (parentheses, function syntax...
3
by: vas12 | last post by:
Hi, I have seen emails with this particular message but they do not help me. I get this error only in IE 6 & 7. Firefox, Safari and Opera work fine. Can some one point out what I am doing...
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
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.