Solved

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

Posted on 2014-09-27
2
195 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The viewer will learn how to dynamically set the form action using jQuery.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now