WODirectConnect, AjaxUpdateLink. Weird.
WODirectConnect, AjaxUpdateLink. Weird.
- Subject: WODirectConnect, AjaxUpdateLink. Weird.
- From: "Thomas Grass (01SoftwareSolutions)" <email@hidden>
- Date: Fri, 23 May 2014 13:18:07 +0200
Hi,
this is the first time i used WODirectConnect on our Testserver.
Everything works fine but using a AjaxUpdateLink would give no result (clicking on a AjaxUpdateLink do just nothing). The Javascript-Console of my Chrome browser has the following Error-Report for me:
• Uncaught TypeError: Cannot read property 'sub' of null wonder.js:350
• AjaxUpdateLink._updatewonder.js:350
• AjaxUpdateLink.updatewonder.js:345
• onclick
The wonder.js on line 350 looks like this:
_update: function(id, actionUrl, options, elementID, queryParams) {
if (elementID) {
actionUrl = actionUrl.sub(/[^\/]+$/, elementID); //line nr 350
}
actionUrl = actionUrl.addQueryParameters(queryParams);
if (options && options['_r']) {
actionUrl = actionUrl.addQueryParameters('_r='+ id);
}
else {
actionUrl = actionUrl.addQueryParameters('_u='+ id);
}
actionUrl = actionUrl.addQueryParameters(new Date().getTime());
new Ajax.Updater(id, actionUrl, AjaxOptions.defaultOptions(options));
}
The weird thing is: If I do not use WODirectConnect, the AjaxUpdateLink works. Also weird: All the other Ajax-Elements (like AjaxSubmitButton, AjaxUpdateContainer, AjaxObserveField etc.) works fine with or without WODirectConnect.
What did I miss?
Thomas
--
Thomas Grass, B.Sc. | 01SoftwareSolutions
+49 (89) 41 41 41 03-0
email@hidden | www.01softwaresolutions.eu
Lichtenbergstraße 8 | D-85748 Garching b München
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden