window Archive
-
Handling browser window close in a nowjs chat application
Posted on February 8, 2012 | No CommentsI am creating a chat application with nowjs.User can create a chatroom and then invite users to that room.Following is the code used to do this: everyone.now.addPeopleToChat = function(clientIds,roomName) {... -
running $.ajax with fancybox, cant close window on success
Posted on February 2, 2012 | No CommentsI am making a CMS for a website at the moment, and one of the features is that a the user can crop an image on the fly, they does... -
overflow-y: hidden on window height > x px not working in IE7
Posted on January 19, 2012 | No CommentsI am doing it like this but it doesn’t seems to work in ie7 if($ (window).height() > 700){ $ ('body').css({'overflow-y':'hidden'}); }else{ $... -
how to close a window using jquery
Posted on January 17, 2012 | No Commentshow to close a window using jquery for all browser comptability? This onclick event is working in IE. Could u please anyone help me to write code in Jquery. onclick=”window.close();”... -
jQuery: how to get height of image div in dialog window if that height changes after image load from server?
Posted on January 15, 2012 | No CommentsHere is html code: <div id="image-div"> <img id="image" src="" /> </div> And js code: # on dialog open $ .ajax({ url: "/ajax/img", success: function(data){ $ ("#image").prop("src", data); } }); So,... -
offset half window height
Posted on January 14, 2012 | No CommentsI’m trying to write 50% of body height as the addition: .scrollTop() + 50%} rather than .scrollTop() + 200} So when the mouse leaves the #tail div snaps back to... -
.height() only making DIV scrollable after window resize
Posted on January 13, 2012 | No CommentsThe intent of this script is to make a DIV that is 100% of the page height minus the top section. Here’s the page: http://nerdi.net/playground/kev/indexNEW.html Here it is stripped down... -
Older OS’s and “DragOver” event doesn’t fire until focus leaves window
Posted on January 9, 2012 | No CommentsThe Insight I was in the process of adding HTML5 drag and drop file upload support to a site where I style a div to notify the user they can... -
simple modal scrolling while modal window fixed
Posted on January 9, 2012 | No CommentsI’m using this simple modal window provided here : http://www.ericmmartin.com/projects/simplemodal/ and I was wondering if anyone was able to customize it by allowing you to make the modal window fixed...