Results 1 to 3 of 3

Thread: [RESOLVED] Error:Microsoft JScript runtime error: Object expected in jquery

  1. #1
    Hyperactive Member
    Join Date
    Jun 07
    Location
    Karachi
    Posts
    472

    Resolved [RESOLVED] Error:Microsoft JScript runtime error: Object expected in jquery

    Code:
    <html>
    <head>
    <title>JQuery Hello World</title>
     
    <script type="text/javascript" src="jquery-1.2.6.min.js"></script>
     
    </head>
     
    <script type="text/javascript">
     
    $(document).ready(function(){
     $("#msgid1").html("This is Hello World by JQuery 1");
    });
     
    </script>
    <body>
     
    This is Hello World by HTML
     
    <div id="msgid1">
    </div>
     
    </body>
    </html>
    it gives me an exception as i mentioned in title with three buttons(ignore,break,Continue)
    although i have added file (.js file in my solution tree).what else coudl be the reason behind this
    There is no achievement without goals

  2. #2
    Frenzied Member
    Join Date
    Apr 09
    Location
    CA, USA
    Posts
    1,500

    Re: Error:Microsoft JScript runtime error: Object expected in jquery

    There is nothing wrong with your code. Try replacing this:
    Code:
    <script type="text/javascript" src="jquery-1.2.6.min.js"></script>
    with this:
    Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
    All this does is replace the reference to your local .js file, with a reference to the same file hosted by Google. If it works, then your code is simply not referencing your local .js file correctly.

  3. #3
    New Member
    Join Date
    Jun 12
    Posts
    2

    Re: [RESOLVED] Error:Microsoft JScript runtime error: Object expected in jquery

    hi

    i hope it will help you
    Solution for Jquery run time error

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •