On 5/16/06, Michael Schwarz <[EMAIL PROTECTED]> wrote:
On 5/13/06, zero one <[EMAIL PROTECTED] > wrote:i'm using the Ajax.net pro 6.5.12.1.
i want to use a simple effect "BlindDown" in the effect.js of script.aculo.us .
if the page not use Ajax.net ,it will work,
but if use Ajax.net,it comes error.
the code in effect.js is:
Effect.BlindDown = function(element) {
element = $(element);
var elementDimensions = element.getDimensions();
return new Effect.Scale(element, 100,
Object.extend({ scaleContent: false,
scaleX: false,
scaleFrom: 0,
scaleMode: {originalHeight: elementDimensions.height , originalWidth: elementDimensions.width},
restoreAfterFinish: true,
afterSetup: function(effect) {
effect.element.makeClipping();
effect.element.setStyle({height: '0px'});
effect.element.show();
},
afterFinishInternal: function(effect) {
effect .element.undoClipping();
}
}, arguments[1] || {})
);
}
and my code is simple:
new Effect.BlindDown(oPopup);
but the error said :
-->var elementDimensions = element.getDimensions();
the object has no this function or method.
i dont know how to do,please help me.
thank you .
and,sorry for my English _expression_
--
----Zero One----
----零壹派-----
----http://www.izero.cn
---- http://blog.donews.com/izero/
----http://spaces.msn.com/zeroone/
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto: [EMAIL PROTECTED]
--
----Zero One----
----零壹派-----
----http://www.izero.cn
---- http://blog.donews.com/izero/
----http://spaces.msn.com/zeroone/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---
