I just tonight got around to downloading the latest 1.6.3 but I am getting an error now in IE with the code at the bottom of this message. Btw, no errors in FF. Also no errors when I roll back to prototype.js v1.5.0 rc0. I get the same error whether I''m using effects.js 1.6.1 or 1.6.3. In IE, I see the slidedown effect before I get ---------------- A Runtime Error has occurred. Do you wish to debug? Line: 1251 Error: Object doesn''t support this action ----------------- This line is in prototype .each() but I use VS to check the call stack and the error originates from bind and then on line 247 of effects.js: loop: function() { var timePos = new Date().getTime(); this.effects.invoke(''loop'', timePos); } Can anyone tell me what''s going on? Am I not using SlideDown correctly? I rarely use Effect so I must admit I don''t really know what the code is doing but my usage of it seems so simple I don''t see what I could have done wrong? Thanks, Colin My code: ---------------------------- var InvoiceStatus = { .... selectInvoiceStatus: function(id){ if(!Element.visible(''comment_div-''+id)) new Effect.SlideDown(''comment_div-''+id,{duration:0.5}); }, .... }; <form onsubmit=" InvoiceStatus.submitApproval(this, 17); return false; "> <ul> <li class="first-child"><label for="approve-17"> <input id="approve-17" name="status" value="approve" onclick="InvoiceStatus.selectInvoiceStatus(17);" checked="checked" type="radio"> Approve </label></li> <li><label for="disapprove-17"> <input id="disapprove-17" name="status" value="disapprove" onclick="InvoiceStatus.selectInvoiceStatus(17);" type="radio"> Disapprove </label></li> <li><label for="unattended-17"> <input id="unattended-17" name="status" value="unattended" onclick="InvoiceStatus.selectInvoiceStatus(17);" type="radio"> Unattended </label></li> </ul> <div style="display:none" id="comment_div-17"> <div> <br><label>Comments:<br> <textarea name="comments"></textarea></label><br> <input value="Submit" type="submit"> </div> </div> </form> ------------------------- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
Try new Effect.SlideDown((''comment_div-''+id),{duration:0.5}); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
Marco M. Jaeger
2006-Sep-06 06:58 UTC
Re: Effect.SlideDown error with latest Prototype in IE
I''m getting the same error with BlindUp - seems to be a bug in the latest release - I don''t think there is anything wrong with your code. -----Original Message----- From: Colin Mollenhour [mailto:eliteii92g-NPSFNn/7+NYVo650/ln6uw@public.gmane.org] Sent: Wednesday, September 06, 2006 8:08 AM To: Rails Spinoffs Subject: [Rails-spinoffs] Effect.SlideDown error with latest Prototype in IE I just tonight got around to downloading the latest 1.6.3 but I am getting an error now in IE with the code at the bottom of this message. Btw, no errors in FF. Also no errors when I roll back to prototype.js v1.5.0 rc0. I get the same error whether I''m using effects.js 1.6.1 or 1.6.3. In IE, I see the slidedown effect before I get ---------------- A Runtime Error has occurred. Do you wish to debug? Line: 1251 Error: Object doesn''t support this action ----------------- This line is in prototype .each() but I use VS to check the call stack and the error originates from bind and then on line 247 of effects.js: loop: function() { var timePos = new Date().getTime(); this.effects.invoke(''loop'', timePos); } Can anyone tell me what''s going on? Am I not using SlideDown correctly? I rarely use Effect so I must admit I don''t really know what the code is doing but my usage of it seems so simple I don''t see what I could have done wrong? Thanks, Colin My code: ---------------------------- var InvoiceStatus = { .... selectInvoiceStatus: function(id){ if(!Element.visible(''comment_div-''+id)) new Effect.SlideDown(''comment_div-''+id,{duration:0.5}); }, .... }; <form onsubmit=" InvoiceStatus.submitApproval(this, 17); return false; "> <ul> <li class="first-child"><label for="approve-17"> <input id="approve-17" name="status" value="approve" onclick="InvoiceStatus.selectInvoiceStatus(17);" checked="checked" type="radio"> Approve </label></li> <li><label for="disapprove-17"> <input id="disapprove-17" name="status" value="disapprove" onclick="InvoiceStatus.selectInvoiceStatus(17);" type="radio"> Disapprove </label></li> <li><label for="unattended-17"> <input id="unattended-17" name="status" value="unattended" onclick="InvoiceStatus.selectInvoiceStatus(17);" type="radio"> Unattended </label></li> </ul> <div style="display:none" id="comment_div-17"> <div> <br><label>Comments:<br> <textarea name="comments"></textarea></label><br> <input value="Submit" type="submit"> </div> </div> </form> ------------------------- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
Its probably not effect.js. If you say it goes away with prototype rc0 then its likely that at fault. There is other issues with the rc1 release of prototype and IE --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
Colin Mollenhour
2006-Sep-06 08:55 UTC
Re: Effect.SlideDown error with latest Prototype in IE
Didn''t work. As others just stated, it must be a prototype issue... Turok wrote:> Try > new Effect.SlideDown((''comment_div-''+id),{duration:0.5}); > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---