Re: [jQuery] jqModal r7 IE6 Problems
Jake McGraw wrote: Unable to debug, but I was having another problem with IE6 and jqModal with a much more complex document that pointed to hash[...].w as the culprit. Jake, I have tracked this bug down and it is a DOOZY! The fix is trivial... but is yet another testament to the bandwidth monster, Internet Explorer. I'd be interested to see a statistic on the percentage of web-bandwidth wasted on IE workarounds... Anyhow, it appears that if an element loaded via an AJAX request is used as a jqModal 'trigger', it will throw an error in the hide/show function hs. What happens is that a for loop (which loops through an array attached to the trigger element named either jqmShow or jqmHide) returns indexOf as its value instead of the numeric serial. Replace the hide/show/assign function @ line 67 [bottom] of jqModal.js with this; var hs=function(w,e,y){var s=[];w.each(function(){s.push(this._jqm)}); $(e).each(function(){if(this[y])$.extend(this[y],s);else{this[y]=s; $(this).click(function() { for(i in {jqmShow:1,jqmHide:1})for(s in this[i]){if(s == 'indexOf')continue;hash[this[i][s]].w[i](this)};return false;});}});}; (( I have not public SVN, and can't send a patch as there's no attachments I'm worried that column wrapping may mangle it if I include in email body )) Also, I swear I can make sense of what's happening above :) ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jqModal r7 IE6 Problems
Brice and Brandon, thanks for the replies, I didn't mean to cause so much trouble ;). Since this is something I'm doing to work, I'll make use of your fixes on Monday and let you know how it goes. Thanks again! - jake On 2/24/07, Brice Burgess [EMAIL PROTECTED] wrote: Jake McGraw wrote: Unable to debug, but I was having another problem with IE6 and jqModal with a much more complex document that pointed to hash[...].w as the culprit. Jake, I have tracked this bug down and it is a DOOZY! The fix is trivial... but is yet another testament to the bandwidth monster, Internet Explorer. I'd be interested to see a statistic on the percentage of web-bandwidth wasted on IE workarounds... Anyhow, it appears that if an element loaded via an AJAX request is used as a jqModal 'trigger', it will throw an error in the hide/show function hs. What happens is that a for loop (which loops through an array attached to the trigger element named either jqmShow or jqmHide) returns indexOf as its value instead of the numeric serial. Replace the hide/show/assign function @ line 67 [bottom] of jqModal.js with this; var hs=function(w,e,y){var s=[];w.each(function(){s.push(this._jqm)}); $(e).each(function(){if(this[y])$.extend(this[y],s);else{this[y]=s; $(this).click(function() { for(i in {jqmShow:1,jqmHide:1})for(s in this[i]){if(s == 'indexOf')continue;hash[this[i][s]].w[i](this)};return false;});}});}; (( I have not public SVN, and can't send a patch as there's no attachments I'm worried that column wrapping may mangle it if I include in email body )) Also, I swear I can make sense of what's happening above :) ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jqModal r7 IE6 Problems
Jake McGraw wrote: Brice and Brandon, thanks for the replies, I didn't mean to cause so much trouble ;). Since this is something I'm doing to work, I'll make use of your fixes on Monday and let you know how it goes. Thanks again! - jake Jake, Hah.. no worries! I've actually updated the plugin with various IE fixes, and relased R8 ( http://dev.iceburg.net/jquery/jqModal ) -- so no need to worry about that patch. Included in R8 is the IE crash fix, the IE hash has no properties fix, and the IE6 iframe now covers the dialog element (vs. entire page) to allow interaction with the underlying page when overlay is disabled. Let me know if anything else comes up. ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jqModal r7 IE6 Problems
Brandon Aaron wrote: I would suggest requiring the bgiframe plugin instead of rolling your own solution. Just check to see if the bgiframe plugin has been included, call the .bgiframe() method on the div you want to have an iframe attached too and it will do the rest with borders and all. :) -- Brandon Aaron Brandon, I did think about that.. but ended up rolling my own. It's all in R9 now, working smoothly as far as I've tested. IE6 sure proved to be a pain in the rear... I abstracted the IE6 iframe styling to CSS, as well as cut down on some unnecessary attributes/initializations. Thus far I've gone through great pains to cut down on code size external requirements. ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jqModal r7 IE6 Problems
Jake, you should set up your function something like: $().ready(function() { $('#popup').jqm(); }); a href=# class=jqModalview/a div class=jqmWindow id=dialog content /div Do you have a better example of what you are trying to accomplish? I am currently using the modal and am not having any issues with any browsers. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jqModal r7 IE6 Problems
Thanks for the prompt reply, I normally use jqModal class on an anchor but I wrote this version using jqmShow() because my application has a series of events that takes place before the jqModal window has to be shown. I could change it, but why add an anchor for the Modal window if it will never be clicked? Is jqmShow() not fully functional yet? - jake On 2/23/07, Benjamin Sterling [EMAIL PROTECTED] wrote: Jake, you should set up your function something like: $().ready(function() { $('#popup').jqm(); }); a href=# class=jqModalview/a div class=jqmWindow id=dialog content /div Do you have a better example of what you are trying to accomplish? I am currently using the modal and am not having any issues with any browsers. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jqModal r7 IE6 Problems
This is how I am using it, take a look at the js file at the link below. http://ov-staging.informationexperts.com/common/js/ecs.js Look for the function setECSSecondaryLinks, and check out the code from line 75 thru 104 that is the click event similiar to what you originally posted and the dialog box does not need a trigger because I used .jqmShow(); Take a look at the code and let me know if this is what you are trying to do. Now to answer your question, I should the link because you had a link in your first post and assumed that is what was needed. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jqModal r7 IE6 Problems
Jake McGraw wrote: Anyone have any ideas? Does r7 not work with IE6? Jake, I've updated the plugin page (http://dev.iceburg.net/jquery/jqModal) with a crash fix for IE6. Let me know if you're still having problems. As of now, the only bug I'm aware of has to do with page interactivity and IE6. If you disable the overlay, IE6 will still cover the page with a transparent iframe (to avoid active-x bleed through).. rendering the background page unusable. E.g. In example 5, you will not be able to click the close links (or any other links) after activating the squares. I plan to integrate the bgiframe plugin technique to fix the interactivity issue. I remember failing to accomplish this using width/height of 100% + absolute top/left positioning in a containing element (the weindow). In Firefox the iframe would appear properly placed.. however it was a no go in IE6 ... the only browser which needs this baneful kludge to behave well with activex object (select elements nonetheless). My previous code looked something like; div id=DIALOG style=position: relative; z-index: 100 iframe style=position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 99.../iframe [[[ dialog content /div This method armchair worked, but in practice, elements would still bleed through in IE6. So, I opted to go with the covering iframe temporarily until I could figure this out. Anyone have any thoughts (Brandon) :) ? ~ Brice ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/