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 8474251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:34:40+00:00 2026-06-10T17:34:40+00:00

I got this error in Firefox only, everything works perfectly well in IE and

  • 0

I got this error in Firefox only, everything works perfectly well in IE and Chrome, I’m using Firefox v 15.0. Here’s my code

<script type="text/javascript" src="/_layouts/Scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
    $(function () {
       // some code here
    });

Exception occurs on first line ( document ready ), it seems that page can’t reference jQuery library at all, but if I click on source link from error console, I can see in browser jQuery library’s code. This is weird, because I have no error in IE or Chrome.

Any ideas why this is happening ?

EDIT:
Here’s whole js code

$(function () {

        var digitCode;

        $('input[type=submit][id*=btnCancel]').on('click', function (e) {
            e.preventDefault();
            closeModalDialog('Cancel');
        });

        $("select[id*=ddlContacts]").on('change', function () {
            var contactID = $(this).val();
            if (parseInt(contactID) == 0) {
                $('span[id*=lblCEOTitle]').text("");
                return;
            }

            var data = { contactId: contactID };

            $.ajax({
                type: "POST",
                contentType: "application/json; charset=utf-8",
                url: "AddCompany.aspx/CeoTitle",
                data: JSON.stringify(data),
                dataType: "json",
                success: function (result) {
                    $('span[id*=lblCEOTitle]').text(result.d);
                    $('input[type=hidden][id*=hdnFieldCeoTitle]').val(result.d);
                },
                error: function () {
                    alert('error');
                }
            });
        });
    });
  • 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-10T17:34:42+00:00Added an answer on June 10, 2026 at 5:34 pm

    Unless you work offline, you should let a CDN host these files for your users. Doing so has several advantages over hosting jQuery on your server(s): decreased latency, increased parallelism, and better caching. For more details check out this article : http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/

    This also saves some trouble (pathfile management, corrupt files, bad versions etc.) one of which you have just encountered now.

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

Sidebar

Related Questions

I've got this code throwing an error from an iframe: function parentIframeResize() { var
I am getting this error Uncaught SyntaxError: Unexpected token < from chrome but everything
I got this error in Firefox: TypeError: $(#main-CNTR).on is not a function. And this
Attached Firefox to fiddler and got following error. What would cause this error? Interesting
I'm using Selenium IDE 1.8.1 with Firefox 14. I see this exception: [error] Unexpected
I've got some jQuery (1.6.2, latest stable) code which is working in Chrome, Firefox,
today I was trying something using 'lib cURL' when I got this weird error,
I've got this actionlink that is generating this error in firefox <%: Ajax.ActionLink( ,
I got this error on firefox errors debugger : Error: TypeError: slidesArray[index] is undefined
Got this error message while trying to load view: The model item passed into

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.