logo       

Re: Reverse Ajax again... FF 1.5.0.9: msg#00153

java.dwr.user

Subject: Re: Reverse Ajax again... FF 1.5.0.9

update: its in the latest FF, too (Mac)


On Feb 18, 2007, at 12:53 PM, Kris Wolff wrote:

Hi,

I have a page that worked a while befor. Today i want to fix some design and put it online, but the reverse thing does't work anymore. Maybe you can help.

Here are teh related pathes of the JS:

dwr.util.setEscapeHtml(false);
dwr.engine.setActiveReverseAjax(true);
...
function receiveMessages( ){
Chat.getMessages(gotMessages);
browserSpecific(); // just a hardcodes reload for safari
}

The Java-Part looks like this:

Collection otherSessions = ctx.getScriptSessionsByPage (currentPage);
Iterator iteri = otherSessions.iterator();
while(iteri.hasNext()){
ScriptSession otherSession = (ScriptSession) iteri.next();
System.out.println("Session: "+ otherSession.getId());
otherSession.addScript(new ScriptBuffer().appendScript ("receiveMessages(" + ");"));
}


My web.xml:

<servlet>
<servlet-name>dwr-invoker</servlet-name>
<display-name>DWR Servlet</display-name>
<servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>allowGetForSafariButMakeForgeryEasier</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>pollAndCometEnabled</param-name>
<param-value>true</param-value>
</init-param>
</servlet>


I am testing in firefox 1.5.0.9
Do you have any idea?
kris

---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe-EyPigyGktj4FDOXUYO6UHQ@xxxxxxxxxxxxxxxx
For additional commands, e-mail:
users-help-EyPigyGktj4FDOXUYO6UHQ@xxxxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise