dear list,
i am trying to use rico for my application. i have the below in my
ajaxex.html which sends and receives the reponse.
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/rico.js" type="text/javascript"></script>
<script src="js/multiple.js" type="text/javascript"></script>
</head>
<body>
<form name="form1" action="javascript:void%200" method="get">
<button type="button" id="w_update" name="w_update">Update
Weather</button>
<div id="east" style="float:left">
<span class="cityhead">Boston</span><br>
<span id="boston">
</span>
</div>
</form>
</body>
</html>
--------
this is my multiple.js
window.onload=function(){
if($("w_update")){
$("w_update").onclick=function(){
updateWeather();
}
}
};
function updateWeather(){
ajaxEngine.registerRequest("multiple", "/ajaxex1.xml");
ajaxEngine.registerAjaxElement("boston");
ajaxEngine.sendRequest("multiple","");
}
--------
this is my server side xml
<ajax-response>
<response type="element" id="boston">
<span id="rng_boston" class="therm">high::34;</span>
</response>
</ajax-response>
-------
i am not getting any response from the server. what i am doing wrong ?
can you please help. thanks.
ps: this is actually from the book "ajax hacks" which uses rico for the
hack, which i have modified for my application.
on 26.04.2007 10:28


