JavaScriptException in wicket-ajax.js - Dynamic ListView (Ajax)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

JavaScriptException in wicket-ajax.js - Dynamic ListView (Ajax)

brazz
Hi,

i am trying to Change a ListView with links according to the selection of a ComboBox. I'm using a AjaxFormComponentUpdatingBehavior.
Everything works fine (correct XMLHTTPResponse is sent to the client) until line 1269 of wicket-ajax.js.
The "Browser"-Object is undefined and i get the following JavaScriptException:


if (Wicket.Browser.isKHTML()) {                                   <- JavaScript Exception wicket-ajax.js Line 1269
// there's a nasty bug in KHTML that makes the browser crash
// when the methods are delayed. Therefore we have to fire it
// ASAP. The javascripts that would cause dependency problems are
// loaded synchronously in konqueror.
steps.push = function(method) {
method(function() { });
}
}

        TypeError { fileName="......../scripts/wicket-ajax.js", lineNumber=1269}

Thanks for any help...
Reply | Threaded
Open this post in threaded view
|

Re: JavaScriptException in wicket-ajax.js - Dynamic ListView (Ajax)

brazz
The problem was, that wicket-event.js was not availabel, but no i get a different error:

Wicket-Ajax.js, Line 1475 With the error message at line 1313 " Wicket._readTextNode is not a function".
Reply | Threaded
Open this post in threaded view
|

Re: JavaScriptException in wicket-ajax.js - Dynamic ListView (Ajax)

brazz
Maybe there is something wrong with my Ajax-Response? Because the javascript stops when it starts parsing the <ajax-response>-Node:

<?xml version="1.0" encoding="UTF-8"?><ajax-response><header-contribution encoding="wicket1" ><![CDATA[<head xmlns:wicket="http://wicket.apache.org"><script type="text/javascript" src="resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js"></script>
<script type="text/javascript" src="resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js"></script>
<script type="text/javascript" src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js"></script>
<script type="text/javascript" id="wicket-ajax-debug-enable"><!--/*--><![CDATA[/*><!--*/
wicketAjaxDebugEnable=true;
/*-->]^]^>*/</script>

</head>]]></header-contribution><component id="ajaxEnabledContainera5" ><![CDATA[<div id="ajaxEnabledContainera5">
			<select id="fieldActionsa6" class="selection native" onmouseclick="this.focus()" onchange="var wcall=wicketAjaxPost('/asprmi/search/?wicket:interface=:135:border:_body:dialogContainer:contentPanels:infoTextContentPanel:ajaxEnabledContainer:fieldActions::IBehaviorListener:0:-1', wicketSerialize(Wicket.$('fieldActionsa6')),function() { }.bind(this),function() { }.bind(this), function() {return Wicket.$('fieldActionsa6') != null;}.bind(this));" name="border:_body:dialogContainer:contentPanels:infoTextContentPanel:ajaxEnabledContainer:fieldActions">
<option value="DE">Deutsch</option>
<option value="FR">Französisch</option>
<option selected="selected" value="IT">Italienisch</option>
<option value="JP">Japanisch</option>
</select>
			<br class="clear"/>
				<span>
					<a onfocus="this.blur();" id="externalLinkae" href="/asprmi/search/?wicket:interface=:135:border:_body:dialogContainer:contentPanels:infoTextContentPanel:ajaxEnabledContainer:externalLinks:0:externalLink::IResourceListener::">
						<img width="4" height="8" alt="" src="/asprmi/img/icon_pfeil_grey.gif">
						<span>SI 345900 - Gasflasche: Gasflachen können undicht werden</span> 
					</a>
				</span><span>
					<a onfocus="this.blur();" id="externalLinkaf" href="/asprmi/search/?wicket:interface=:135:border:_body:dialogContainer:contentPanels:infoTextContentPanel:ajaxEnabledContainer:externalLinks:1:externalLink::IResourceListener::">
						<img width="4" height="8" alt="" src="/asprmi/img/icon_pfeil_grey.gif">
						<span>SI 012345 - Lorem ipsum dolor. Sit amet..........</span> 
					</a>
				</span>
		</div>]]></component>