I have an interesting situation this morning with a simple web page that incorporates two DWR calls. If I access this page from within your Web 2.0 browser it works fine. If I run it using your standard browser (or even IE) I only get the response from the first call back to the browser!
Here is my code:
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<jsp:include flush=”true” page=”includes/heads.jsp”></jsp:include>
</head>
<body onload=”load()”>
<fieldset>
<legend>
Now
</legend>
<label id=”timeNow” />
</fieldset>
<fieldset>
<legend>
Bikes
</legend>
<select name=”bikes” id=”bikes”>
</select>
</fieldset>
</body>
</html>
function load(){
now();
bikesFn();
}
function now(){
JsDate.toString(nowResponse);
}
function nowResponse(data){
DWRUtil.setValue($(“timeNow”),data);
}
function bikesFn(){
JsBikeBean.getBikeInfo(bikesResponse);
}
function bikesResponse(data){
DWRUtil.removeAllOptions($(“bikes”));
DWRUtil.addOptions($(“bikes”),data);
}
function unload(){
alert(“listeners have been stopped” );
}