FAQ Database Discussion Community


Need help finding a bug with jquery $(document).ready() not working properly in firefox

javascript,jquery,firefox,wamp,document-ready
I made a jquery function that sets the width of an element so that it fills any extra width left by it's siblings inside it's parent. (basically a flexbox) I call this function in both $(document).ready() and $(window).resize() HTML <body> <div class='pageCenter'> <div class='fixedCol'>my fixed col</div> <div class='flexCol'>my flexible col</div>...

jQuery all documents-ready failed if one document-ready fails. Solution?

javascript,jquery,document-ready
OK, here is an interesting question. Below are three jQuery modules. No one of them is gonna work. Otherwise they would work from first to last. And the reason they are not gonna work is missed "); in the second block after the word second. $(document).ready(function() { alert("first"); }); $(document).ready(function()...

Div going through fade in/fade out cycle blinks abruptly

javascript,jquery,fadein,fadeout,document-ready
I have a series of divs that fade in and out in a cycle. After it gets going it works smoothly, but when the page is first loaded, the first div that is displayed abruptly "blinks" once, before entering the smooth fade in/fade out cycle. Live example here. html <div...

Angular and jQuery ng-include with document.ready not working

javascript,jquery,angularjs,document-ready,angularjs-ng-include
I am trying to load a component which is placed in a separate html using HMTL. The problem is that it is to be invoked as soon as the page is loaded in the browser. Below is my Modal Code: <div class="modal fade borderColorC0C0C0 borderRadiusOverride" id="termsAndConditionsPopover" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"...

jQuery document ready will not work no matter how I write it

javascript,jquery,wordpress,google-maps,document-ready
I feel like this should be a simple thing to fix, but I just can't get it to work. I am running a jQuery store locator script with google maps. The script requires two javascript files, jquery, and the google maps api. Finally, it calls the actual function to run...

Is doing $('#someId').click(function() on document.ready into thin air expensive?

javascript,jquery,onclick,document-ready
I have a website with some 25-30 different pages (pagetypes / templates, really, you probably get the idea). For each of these, I hook up stuff on $(document).ready(function() ...); and I simply wonder if all of these functions can be put in the same .js file which implies that many...

Why is this jQuery running — but not working — on my page, although it works in jsfiddle?

jquery,web-parts,document-ready,ascx,onkeyup
I want to restrict the entries in a text element to numeric only. I found some code for that that works in the jsfiddle, which is referenced from here ...but on my page (Webpart) / *.ascx file, it does not. I see the alert every time I mash a key,...

How can I respond to a RadioButton's change event with jQuery on a SharePoint WebPart?

jquery,sharepoint-2010,web-parts,document-ready
I'm getting close; after floundering around on an isolated promontory and sending forth filament, filament, filament out of myself (as recorded here), I added this to the end of the WebPage's *.ascx file (after the <%@ Assembly, <%@ Register, <%@ Import, and <%@ Control jazz, as well as an <script>...

How to detect all imges loading finished in AngularJS

angularjs,loading,document-ready
I want to use ng-repeat to show more then 100 images in a page. Those images are taking significant time in loading and i don't want to show them getting loaded to the users. So, I only want show them after all of them are loaded in the browser. Is...