Solved

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

Posted on 2014-09-27
2
200 Views
Last Modified: 2014-09-28
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?
0
Comment
Question by:yadavdep
2 Comments
 

Author Comment

by:yadavdep
ID: 40347716
One update, same issue is happening in Safari as well.
0
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 40347930
Maybe the syntax error here?

$("[data-toggle=tooltip").tooltip();
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Web site error 3 36
mail.To.Add 5 25
xmlhttpPost not sending form or Type=Date (ASP Classic, though this may not make a difference) 4 20
Expression Evaluater 3 24
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
Several part series to implement Internet Explorer 11 Enterprise Mode
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question