[jQuery] Re: IE8 BlockUI incompatible
Hi Bart, Try the following. In your page just have an empty body tag and a script tag in the head. In the script tag, invoke blockUI and then use ajax to load the entire content into the body (or any container of your choice, really). See the following example: index.html (simplified) html head script type=text/javascript $(function() { $.blockUI({message: Loading...}); $(body).load(contenttoload.html, function() { $.unblockUI(); }); }); /script /head body id=loadwithcontent !-- empty body -- /body /html contenttoload.html (simplified) = div id=mycontent /div I hope this helps. The idea is to reduce the content-length of index.html so that the blockUI function is invoked almost as soon as the minimal html loads. Then the real content of your page can just be loaded into the body via an AJAX call. And then at the end, just unblock the UI. Do let me know if this works for you. Cheers. Anand. On Fri, May 8, 2009 at 9:10 PM, Ronen42 ba...@gmx.net wrote: Hi Anand, the thing is, I have to block the screen while loading the page to prevent any user interaction untill the page ist completely loaded. This is working in all browsers but not in IE8. My solution right now is to set IE8 to IE7 render mode with the meta tag: meta http-equiv=X-UA-Compatible content=IE=7 / Greets, Bart -- Anand Kulkarni Auckland New Zealand Mob: +64-21-2566 369 http://www.digitalpath.co.nz
[jQuery] Re: IE8 BlockUI incompatible
Hi Ronen42, Its recommended that you invoke the plugin in the $(document).ready (function(){ }) section. Although the plugin might detect the browser version at the very beginning, any internal procedures (such as creating the overlay etc.) may not work until the entire DOM is ready to be manipulated. If you HAVE to call the blockUI plugin without wrapping it in the ready event, then try putting your the javascript bit at the very end of the body tag. This might work as well. Cheers. Anand On May 6, 2:04 am, Ronen42 ba...@gmx.net wrote: Hi All, on line 151 simply change: var ie6 = $.browser.msie /MSIE 6.0/.test(navigator.userAgent); to var ie6 = $.browser.msie /MSIE 6.0/.test(navigator.userAgent) !(/ MSIE 8.0/.test(navigator.userAgent)); And then everything works fine and dandy! My test environment wasIE8 on Vista. Al it is not working here in IE8. What I find out is: If you load a page and than call blockUI everything is fine in IE8. When you call blockUI while loading the page the known error appears in IE8. Example: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/ TR/html4/strict.dtd head titleTest/title script language=JavaScript src=jquery.js type=text/javascript/ Script script language=JavaScript src=jquery.blockUI.js type=text/ javascript/Script script language=JavaScript type=text/javascript $.blockUI(); /script /head body
[jQuery] How to enable disable jquery Drag effect on click of a button?
Hello all, Query : 1. How to enable disable jquery Drag effect on click of a button? I am using this :- $(#image_to_map).draggable(); to apply the drag effect. Waiting for reply Regards Anand
[jQuery] Re: Error in IE8
Hi, The solution to the problem where the blockUI plugin doesn't working in IE8 is as follows: on line 151 simply change: var ie6 = $.browser.msie /MSIE 6.0/.test(navigator.userAgent); to var ie6 = $.browser.msie /MSIE 6.0/.test(navigator.userAgent) ! (/ MSIE 8.0/.test(navigator.userAgent)); And then everything works fine! My test environment was IE8 on Vista. Hope this helps...certainly helped me in my project. Cheers, Anand www.digitalpath.co.nz On Mar 31, 2:25 am, Schockwelle bo...@gmx.de wrote: Hi, I useblockuion my websitewww.rbl-check.comand i have an error in the internet explorer 8. Row: 227 Sign: 17 Code: 0 URI:http://www.rbl-check.com/ajax/jquery.blockui.js In e.g. Firefoxblockuiworks fine... Can anybody help me? Best regards from Germany
[jQuery] Re: IE8 BlockUI incompatible
Hi All, I have it! The solution to the problem where the blockUI plugin doesn't working in IE8 is as follows: on line 151 simply change: var ie6 = $.browser.msie /MSIE 6.0/.test(navigator.userAgent); to var ie6 = $.browser.msie /MSIE 6.0/.test(navigator.userAgent) !(/ MSIE 8.0/.test(navigator.userAgent)); And then everything works fine and dandy! My test environment was IE8 on Vista. Al Hope this helps...certainly helped me in my project. Cheers, Anand www.digitalpath.co.nz On Mar 23, 10:53 pm, Mike Alsup mal...@gmail.com wrote: Mike, your page fails for me with not implemented Nicht implementiert jquery.blockUI.js?v2.16, line 227 character 17 on Win XP Pro w/ SP3 andIE8 Regards, Frank Thanks, Frank. What browser mode and compatibility mode did it fail in?
[jQuery] Re: Problem in creating Dynamic tables
John please help On Jan 30, 1:21 pm, Anand [EMAIL PROTECTED] wrote: Hi All, I am trying to create a dynamic table. It is to be created on onchange event of a text box which will tell how many templates to be added. The structure which I want to add to my page dynamically is table thead tr tdinput...//td /tr tr tdlabel1/td tdlabel2/td /tr /thead tbody lots of inputs and checkboxes /tbody /table This is one unit which I want to add on tabbing out of the text box. It can be added any no of times. thanks, Anand