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 mollenhour.com]
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&g
t;<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 googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe googlegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---
|