yadavdep
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').multisel ect({
includeSelectAllOption: true,
numberDisplayed: 6,
selectedClass: null,
buttonWidth: '100%',
dropRight: true
});
$('#daterange-container .input-daterange').datepic ker({
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?
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").
alert('2');
SetFormValidation();
$('.multiselect').multisel
includeSelectAllOption: true,
numberDisplayed: 6,
selectedClass: null,
buttonWidth: '100%',
dropRight: true
});
$('#daterange-container .input-daterange').datepic
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER