Hi,
I add an AjaxClientInfoBehavior to a page.
Sometimes I get an error.
This is very strange and I have no clue.
I have 2 computers, 1 Debian, 1 Osx, within the same network.
If I compile the code on the Osx boxe,
publish the war on a Tomcat instance running on the Osx box or on the Debian box
and I call the page with the AjaxClientInfoBehavior,
I have the following error (in Wicket Ajax Debug)
ERROR: An error occurred while executing Ajax request:SyntaxError: function
statement requires a name
The code in the page is
<script type="text/javascript" >
/*<![CDATA[*/
Wicket.Event.add(window, "load", function(event) {
Wicket.Timer.set('id2e',
function(){Wicket.Ajax.ajax({"u":"./.?2-1.0-","dep":["function(attrs){return
Wicket.BrowserInfo.collect()}"]});}, 50);;
;});
/*]]>*/
</script>
If I compile the code on the Debian box,
publish the war on a Tomcat instance running the Debian box
I do not get any error
the code in the page is
<script type="text/javascript" >
/*<![CDATA[*/
Wicket.Event.add(window, "load", function(event) {
Wicket.Timer.set('id10',
function(){Wicket.Ajax.ajax({"u":"./.?1-1.0-","dep":[function(attrs){return
Wicket.BrowserInfo.collect()}]});}, 50);;
;});
/*]]>*/
</script>
What I see from the javascript generated : when error occurs, double quotes are
present around the function call.
It's very weird !
Cold it be related to Sebastien'message "8.0.0-M4: org.json has issue with
List" from Mars the 12 ?
Do you have any advice ?
Thanks
François
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]