Effect.BlindRight = function(element, content) {
element = $(element);
var content = content;
var elementDimensions = element.getDimensions();
new Effect.Scale(element, 100, Object.extend({
scaleContent: false,
scaleY: false,
scaleFrom: 0,
scaleMode: {originalHeight: elementDimensions.height,
originalWidth: elementDimensions.width},
restoreAfterFinish: true,
afterSetup: function(effect) {
effect.element.makeClipping().setStyle({
width: '0px',
height: effect.dims[0] + 'px'
}).show();
},
afterFinishInternal: function(effect) {
effect.element.undoClipping();
}
}, arguments[1] || { }));
element.style.visibility = 'visible';
element.innerHTML = "<br><br> <img
src='./images/loading.gif'>";
try {
req = window.XMLHttpRequest ? new XMLHttpRequest(): new
ActiveXObject("Microsoft.XMLHTTP");
}
catch (e) { alert("No AJAX Support"); }
req.onreadystatechange = function () {
// if ((req.readyState == 4) && (req.status == 200)) {
if(element) element.innerHTML = req.responseText;
// if(callback_id) GETrequest_callbackHandler(callback_id);
// }
}
req.open( 'GET', content + '.php' );
req.send( null );
};
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---