Hello all,
I would like to have an advice for the following case presented here
below:
I have the following HTML element:
<input type="button" name="Result" value="RESULT"
onclick="showResult(<?php echo $inter; ?>)" />
in JS function called showResult(id) {
I'm calling:
new Ajax('components/com_toto/ajaxHandler.php',{postBody:'id='+id,
onComplete: showTitit, update:'new'}).request();
}
The handling is correctly made on the server side, a HTML content is
generated and echo-ed and the callback "showTiti is called when
processing is over.
Everything is OK up to now.
I need to send back (from server to the client):
- the HTML content (that I'm already doing);
- some parameters in order to do different things on the client side
depending on.
The question I have is: how to send these parameters aside to the HTML
content and how to retrieve them in the JS callback 'showTiti"?
Thank you a lot.
Have a good day,
--
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.