You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by iberck <ib...@gmail.com> on 2009/03/27 21:09:09 UTC
Jquery + Ajax
Hi, I'm newbie in tapestry and I'm using asynchronous ajax request to a class
page method:
<script type="text/javascript" src="${asset:context:js/jquery.js}">
</script>
<script type="text/javascript">
var $jq = jQuery.noConflict();
/*
$jq(document).ready(function() {
});*/
function enviaAjax(idOpcion) {
alert(idOpcion);
$jq.getJSON("http://localhost:8080/Lgcc/promotor/aplicaencuesta.radio1/" +
idOpcion,
function(data){
alert(data.valor1);
});
}
</script>
@OnEvent(component = "Radio1")
Object onActionFromRadio1(Integer idOpcion) {
log.debug("----->ajaxRequest");
log.debug("----->idOpcion: " + idOpcion);
JSONObject json = new JSONObject();
json.put("valor1", "llave1");
return json;
}
My question is:
is there any problem with it since tapestry uses a page pool ?
--
View this message in context: http://www.nabble.com/Jquery-%2B-Ajax-tp22746204p22746204.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Jquery + Ajax
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
I can't think of any problem. Is there any one you're imagining?
Thiago
--
Thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org