Re: Ajax Update Link not working on one server
Re: Ajax Update Link not working on one server
- Subject: Re: Ajax Update Link not working on one server
- From: Jeffrey Schmitz <email@hidden>
- Date: Wed, 06 Feb 2013 18:27:20 -0600
The problem was a library mismatch.
I didn't initially look at that because I thought 2 identically configured machines that were behaving differently. However, once I figured out the one machine was only working because it was being accessed using a local network ip and that the bug only manifested itself when accessing the page via an internet IP, it became more of a possibility.
Still not sure what the implications are that the bug only occurred when accessing via internet IP, but it's working now so I'm happy.
Thanks for the help!
Jeff
On Feb 6, 2013, at 8:59 AM, Johann Werner <email@hidden> wrote:
> Hi Jeffrey,
>
> on both pages I get an error in the Javascript console that points to a problem in common.js: "Unexpected token ')'" in line 41. That could potentially break some other Javascript code.
>
> But to your problem: you seem to have mixed some wonder version. Some time back the former attributes "updateurl" were renamed to "data-updateurl" to conform to the HTML5 standard. On both your applications the wonder.js still looks for the old "updateurl" attribute but on 208.52.189.43 the generated HTML already uses the new "data-updateurl" and thus breaks the ajax scripts.
>
> What version of Wonder do you use?
>
> jw
>
>
>
> Am 06.02.2013 um 14:04 schrieb Jeffrey Schmitz <email@hidden>:
>
>> Hi all,
>> I'm using the Wonder Ajax constructs and on one of my servers my AjaxUpdateLinks have stopped working. Comparing the same page on two different servers, one that works and one that doesn't. T
>>
>> examples of working vs not working, can be found at the following links. First, choose 5 Entries per page, and then click the next page button.
>>
>> Doesn't work:
>> http://208.52.189.43/cgi-bin/WebObjects/netBrackets.woa/wa/demoPoolStatus
>>
>> works:
>> http://24.217.161.112/cgi-bin/WebObjects/netBrackets.woa/wa/demoPoolStatus
>>
>>
>> The html being generated on each machine is as follows:
>>
>> Doesn't work:
>>
>> <a href="javascript:void(0);" onclick="AUL.update('tableBody', {onComplete:function(request) { }}, '3.0.19.13.41.9');" class="right"> <img src="/Images/TinyTable/next.gif" width="16" height="16" alt="First Page"> </a>
>>
>> works:
>>
>> <a href="javascript:void(0);" onclick="AUL.update('tableBody', {onComplete:function(request) { }}, '3.0.19.13.41.9');" class="right"> <img src="/Images/TinyTable/next.gif" width="16" height="16" alt="First Page"> </a>
>>
>>
>> This is the code being used to generate the above...
>>
>> <webobject name="NextBatch"> <img src="/Images/TinyTable/next.gif" width="16" height="16" alt="First Page" /> </webobject>
>>
>>
>> NextBatch : AjaxUpdateLink {
>> action = nextBatch;
>> updateContainerID = "tableBody";
>> evalScripts = true;
>> onComplete = "function(request) { }";
>> }
>>
>>
>>
>> Note that the below AjaxObserveField construct is still working correctly on both machines.
>>
>> AOF html:
>> <div id="perpage">
>> <select id="EntriesPerPageID" name="0.19.29.1.1.25"><option selected="selected" value="0">5</option><option value="1">10</option><option value="2">20</option><option value="3">50</option><option value="4">100</option></select>
>>
>> <span>Entries Per Page</span>
>> </div>
>>
>> AOF code:
>> <div id="perpage">
>> <webobject name="EntriesPerPage" />
>> <webobject name="EntriesPerPageObserveField" />
>> <span>Entries Per Page</span>
>> </div>
>>
>> EntriesPerPage : WOPopUpButton {
>> id = "EntriesPerPageID";
>> list = numEntriesList;
>> item = repetitionNumEntries;
>> selection = selectedNumEntries;
>> displayString = repetitionNumEntries;
>> }
>>
>> EntriesPerPageObserveField : AjaxObserveField {
>> observeFieldID = "EntriesPerPageID";
>> updateContainerID = "tableBody";
>> fullSubmit = false;
>> }
>>
>>
>>
>> Any ideas where I might look to track this down?
>>
>> Thanks,
>> Jeff
>> _______________________________________________
>> 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
>
_______________________________________________
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