Solved

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

Posted on 2014-09-27
2
202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Create Professional Looking Email Signatures

Create "Professional HTML Email Signatures" with ease.
7 Day Money Back Guarantee if not 100% Satisfied.
Affordable - Try it out for 7 Days Totally Risk Free.
Installers provided for over 45 Email clients.
Both Windows & MAC Supported.
Highly Recommended!

Question has a verified solution.

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

Suggested Solutions

Several part series to implement Internet Explorer 11 Enterprise Mode
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

737 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