Link to home
Start Free TrialLog in
Avatar of yadavdep
yadavdepFlag for India

asked on

$(document).ready function on all pages of same project in Firefox

I have asp.net project, user has to signin into to use it.
I am using jquery version - https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js

My sign in page is just a webform which has some javascript code under $(document).ready function.
This is working fine on Firefox.

Now user reaches to index page after he sign in. The index page is content page.
Jquery library is included on the master page and one index.js file is include on index page(content page).

Now on index page the $(document).ready method is getting fired.
Strange thing is
I used this code  $(function () { alert("you are here"); });
then I am getting this alert on index page in firefox.

So  I changed my $(document.ready like this on index.js
//$(this).ready(function () {
$(function () {
    $("[data-toggle=tooltip").tooltip();

    alert('2');
    SetFormValidation();

    $('.multiselect').multiselect({
        includeSelectAllOption: true,
        numberDisplayed: 6,
        selectedClass: null,
        buttonWidth: '100%',
        dropRight: true
    });
     
    $('#daterange-container .input-daterange').datepicker({
        autoclose: true
    });      

    LoadKiaSerialsMenu();
    CheckArticlePermissions();
});


After this I am still getting only one alert - "You are here".
The second method is not getting called.

On IE and chrome every thing works fine.

any solution for this?
Avatar of yadavdep
yadavdep
Flag of India image

ASKER

One update, same issue is happening in Safari as well.
ASKER CERTIFIED SOLUTION
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial