I'm not sure what you mean with 'sending parameters',  but I've used it as
follows:

In my border/layout class (with a <t:/body> component), I've included
prototype.js and my own utils.js.

In utils.js, I have declared a function doSomethingUseful(productId), which
wraps prototype's Ajax.Updater function.
function doSomethingUseful(productId) {
   new Ajax.Updater("mainContent", "EditProduct", {
      method : "post",
       postBody : "myProduct=" + productId,
       onSuccess : function(resp) {
       },
       onFailure : ajaxError
   });
}

The EditProduct is a regular T5 page which is returned and which replaces
the mainContent div (and which contains a myProduct parameter). The only
problem I had was that this EditProduct page contained validators, which,
when triggered, destroyed my page layout :-)
But since Howard told us that the framework will have functionality for it
soon, I prefer to wait for it...

Cheers
Erik

On 6/15/07, Joshua Jackson <[EMAIL PROTECTED]> wrote:

Dear all,

Has anyone succeed in sending parameters with prototype in T5? I
haven't succeed in this. Can anyone show me a snippet for this?

Thanks in advance

--
Let's create a highly maintainable and efficient code

YM!: thejavafreak
Blog: http://www.nagasakti.or.id/roller/joshua/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to