?
Solved

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

Posted on 2014-09-27
2
Medium Priority
?
207 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 2000 total points
ID: 40347930
Maybe the syntax error here?

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

Featured Post

A new era in Cloud training has arrived.

A day that will go down in Cloud history.. But are you ready for it? Will you accept this Cloud challenge?

Question has a verified solution.

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

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
The viewer will learn how to dynamically set the form action using jQuery.
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…
Suggested Courses

762 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