[mochikit] Re: window onclick doesn't work in IE
Thanks, it works. :) On Oct 19, 11:12 pm, Beau Hartshorne [EMAIL PROTECTED] wrote: On 19-Oct-07, at 2:30 AM, Olli Wang wrote: Hi, I just tried: connect(window, 'onclick', function () {alert('test')}) When I click on the window I should get an alert message. But it works fine on Fx, Safari and Opera, but not in IE 6 and IE 7. What's wrong about this function for IE? Any help would be appreciated. Olli, try connecting to the document object. That might do what you want. So: connect(document, 'onclick', function () {alert('test')}) Beau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] _55c has no properties
Hi, don't know why but sometimes _55c has no properties error appears in my Firebug console, I use packed version. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Fixed IE loadJSONDoc cache issue
IE cache issue is annoying. Don't know why but MochiKit don't add a time stamp by itself so that we have to pass the parameter manually every time. I just fix this issue in my MochiKit.js, here's my code for anyone who needs it. # Original source (MochiKit.js at r1269) 2472 if(arguments.length1){ 2473 var m=MochiKit.Base; 2474 var qs=m.queryString.apply(null,m.extend(null,arguments,1)); 2475 if(qs){ 2476 return url+?+qs; 2477 } # Modified version 2472 if(arguments.length==1){ 2473 return url+?+'timestamp='+new Date().getTime(); 2474 } 2475 if(arguments.length1){ 2476 var m=MochiKit.Base; 2477 var qs=m.queryString.apply(null,m.extend(null,arguments,1)); 2478 if(qs){ 2479 return url+?+qs+'timestamp='+new Date().getTime(); 2480 } Hope this feature could be placed in the next release. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: Fixed IE loadJSONDoc cache issue
Oh, thanks. I haven't seem it before, sorry. On Feb 25, 4:06 am, Roger Demetrescu [EMAIL PROTECTED] wrote: Hi Olli, You may find interesting reading this thread: http://tinyurl.com/23ny74 Cheers, Roger On 2/24/07, Olli Wang [EMAIL PROTECTED] wrote: IE cache issue is annoying. Don't know why but MochiKit don't add a time stamp by itself so that we have to pass the parameter manually every time. I just fix this issue in my MochiKit.js, here's my code for anyone who needs it. # Original source (MochiKit.js at r1269) 2472 if(arguments.length1){ 2473 var m=MochiKit.Base; 2474 var qs=m.queryString.apply(null,m.extend(null,arguments,1)); 2475 if(qs){ 2476 return url+?+qs; 2477 } # Modified version 2472 if(arguments.length==1){ 2473 return url+?+'timestamp='+new Date().getTime(); 2474 } 2475 if(arguments.length1){ 2476 var m=MochiKit.Base; 2477 var qs=m.queryString.apply(null,m.extend(null,arguments,1)); 2478 if(qs){ 2479 return url+?+qs+'timestamp='+new Date().getTime(); 2480 } Hope this feature could be placed in the next release. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---