before Archive
-
jQuery Grab id’s before form submission
Posted on November 10, 2011 | No CommentsI have a page with a form where I need to grab all the ID attributes of the A links in a certain div, and attach those to the form... -
JQuery method .before() or .insertBefore() on IE7
Posted on November 9, 2011 | No CommentsI am trying to insert a color div before a checkbox, using .before() method of JQuery 1.5.1, which runs alright on FF, Chrome, IE8+; but for IE7, the inserted color... -
Make jQuery wait for one .each function to complete before next line is executed?
Posted on November 4, 2011 | No CommentsI have this: $ ("a.fadeout").click(function(event){ event.preventDefault(); var loc = this.href; //Do this first... $ ($ (".faded").get().reverse()).each(function(i) { $ (this).delay(i * 100).fadeOut(); }); //And only then do this.. window.location = loc;... -
jquery: is there a way to guess height before rendering?
Posted on October 28, 2011 | No CommentsHere’s my code: First I assign some htm code where there’s a table in it. (the table is not visible) then I dump the height: it is 0 for each... -
Close popup box before opening new one
Posted on October 25, 2011 | No CommentsSo I came across this thread and it works very well – How to generate a simple popup using jquery. However, I have a second link and I’ve changed the... -
jQuary – execute function before proceeding
Posted on October 24, 2011 | No CommentsHow can I stop executing function till another function is done? $ ('#div').load( 'sub.html', function() { //Do this once done loading the sub.html file setTimeout(function() { //Run SomeFunction(); before doing... -
jQuery executes before Google map loads: “map is undefined”
Posted on October 19, 2011 | No CommentsAside from jQuery and Google Maps, I have two scripts included in the head of my page: <script src="js/map.js" type="text/javascript"></script> <script src="js/site.js" type="text/javascript"></script> map.js contains the code to initialize my... -
Modal doesn’t load content after it has been opened before
Posted on October 15, 2011 | No CommentsThis is a weird one, but… We have this code: jQuery(function ($ ) { $ ('#basic-modal .basic').click(function (e) { $ ('#basic-modal-content').modal(); return false; }); $ ('#basic-modal-also .basic').click(function (e) { $...