Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9139551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:24:09+00:00 2026-06-17T09:24:09+00:00

I am attempting to use the datetimepicker control (http://timjames.me/jquery-ui-datetimepicker-plugin) but it appears my local

  • 0

I am attempting to use the datetimepicker control (http://timjames.me/jquery-ui-datetimepicker-plugin) but it appears my local js file is having trouble loading – but only in IE (version 8.0.6) as it works fine in Firefox version 18.0.

I use a master page named with placeholder “MainContent” so all of my child page controls need to be referenced by MainContent_ followed by the ID of the control.

The element in the master page contains the following script includes:

<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"></script>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.16/jquery-ui.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.16/themes/hot-sneaks/jquery-ui.css" />
<script type="text/javascript" src="Scripts/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        alert("hello");
        $('#MainContent_calStart').datetimepicker();
    });
</script>

script language="javascript" type="text/javascript">
    function GetItem(strName) {
        return document.all ? document.all[strName] : document.getElementById(strName);
    }

... etc etc etc

My asp.net child page contain the code:

Basically, the page hosting the datetimepicker is not the first page loaded in the site, but due to the master page containing the script includes (and being unable to load them all), the first page of the site loads with js errors.

I cannot load/include ANY local JQuery files in to my site when using IE as I get Javascript error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)
Timestamp: Tue, 15 Jan 2013 13:31:47 UTC

Message: Syntax error
Line: 3
Char: 1
Code: 0
URI: (path to page on localhost)

The site bombs at line $(‘#MainContent_calStart’).datetimepicker(); with error “Microsoft JScript runtime error: Object doesn’t support this property or method” indicating the browser has been unable to find the source/declarations for the datetimepicker widget from within the include file. If I continue loading the site despite the js error, the datetimepicker widget loads and appears to be fully functional.

The strange thing is, if I take the code and create a sample website project in VS2010, and include the files/code as above, the sample site works. The only difference between the sample and my live site is there is additional pages/css/js files in the live site. The structure of the 2 sites is the same in terms of script locations/css locations etc. The sample site works fine in both IE and FF.

One final thing, if I move all of the code from jquery-ui-timepicker-addon.js into the master page itself and exclude the js file, the site works. This points to the fact the js code is not being loaded when in a local file.

Any help is appreciated. Cheers.

Jimmy

PS. I cannot include ANY local js file, not just the one in question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:24:09+00:00Added an answer on June 17, 2026 at 9:24 am

    I had the same error (Object doesn’t support this property or method) in IE8 when I used a plugin (also in the jQuery plugin itself) which used indexOf (http://www.w3schools.com/jsref/jsref_indexof.asp). This function is somehow not supported in IE8. I changed this function to in.Array function of jQuery (http://api.jquery.com/jQuery.inArray/), and stupid enough: this also uses indexOf.

    To solve it, I replaced this function for a for-loop which searches the array/string/… only that solved my problem on IE8.

    I hope it helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to use jQuery Multiple File Upload , but having problems with
I'm attempting to use the jQuery UI Tabs module, but whenever I attempt to
I am attempting to use Kelvin Luck's JScrollPane on my website, but am having
I am attempting to use the data sources pluigin for rubymine 4.0.3 but I
I am attempting to use the HTML5 Boilerplate system (http://html5boilerplate.com/) for a client's website,
I am attempting to use the smooth scroll by smoothdivscroll dot com/#quickdemo , but
I am attempting to use AJAX in jQuery to load content to a div,
Attempting to use asp.net mvc's Action Result of File. So it would seem that
I'm attempting to use the undocumented system procedure sp_MSforeachtable . But I need to
I am attempting to use the Composer Dependency Manager for PHP, but I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.