Aquileo | Recent changes to patcheshttps://sourceforge.net/p/ajaxanywhere/patches/Recent changes to patchesenFri, 09 Nov 2007 23:39:01 -0000Aquileo | Enable AA for an ajax standard form based authenticationhttps://sourceforge.net/p/ajaxanywhere/patches/6/<div class="markdown_content"><p>Hi all,</p>
<p>Today I've spent about half a day making and ajax standard form based authentication with the SecurityFilter library, which is similar to Acegi. The problem was to show an error message when the authentication fails. When you use the standard way and the authentication fails, a 401 error code is put in the response header and the aa.js only process those responses that have a 200 success code in theirs headers. So there were a 401 error code, but the xml was correct. Then the probem was in aa.js code from the 1.2.1 version at line 309 where there is a control sentence that allowed only the 200 code response headers.</p>
<p>I have attached my aa.js to whom may it concern.</p>
<p>Regards</p></div>Angel RuizFri, 09 Nov 2007 23:39:01 -0000https://sourceforge.neta3d2caf17892bfae07b9f64ef1e7533b8df219c1Aquileo | Patch for 1459719 https://sourceforge.net/p/ajaxanywhere/patches/5/<div class="markdown_content"><p>Same text with solution(again):</p>
<p>Version: AjaxAnywhere 1.2-RC1<br />
Myfaces: 1.1.1 with Tiles</p>
<p>Bug:<br />
Submit an "ajaxed" <form> tag, AjaxAnywhere uses always<br />
'location.href' and never the action-attribute of the<br />
form.</p>
<p>Reason and fix:<br />
In file 'aa.js' of AjaxAnywhere 1.2-RC1 is a little<br />
error inside of AjaxAnywhere.prototype.submitAJAX.<br />
The error is in the end of line 103.</p>
<p>This is the code:</p>
<p>var form = this.findForm();<br />
var actionAttrNode = form.attributes["action"].nodeValue;<br />
var url =<br />
actionAttrNode == null?null:actionAttrNode.nodeValue;<br />
// line 103</p>
<p>The '.nodeValue' in line 103 has to be removed because<br />
it is double (see the line before).</p>
<p>Best regards,<br />
Florian</p></div>PearlJam2006Tue, 28 Mar 2006 01:17:34 -0000https://sourceforge.netc3b331a1b8e23d5cac47d479edfed0a84e422173Aquileo | Patch for bug 1444356https://sourceforge.net/p/ajaxanywhere/patches/4/<div class="markdown_content"><p>Here is the patch for the bug I reported in aa.js's 1.1<br />
code.</p></div>Andrew RobinsonMon, 06 Mar 2006 19:30:22 -0000https://sourceforge.netcad449f7703ecefa115e7a3e40d369945941849aAquileo | problem string <>https://sourceforge.net/p/ajaxanywhere/patches/3/<div class="markdown_content"><p>Hi, I tried to evaluate ajaxanywhere and I found this bug:</p>
<p>There is a problem during submitting an ajax request to<br />
the server. If one on the request parameters contains<br />
string '<>' and this string should be printed in the<br />
page as parameter of javascript function, occurs<br />
StringIndexOfOfBoundException, please see attached<br />
screenshot.</p>
<p>here is the JSP fragment, used during evaluation.</p>
<p>----------------------------------------------------</p>
<p><form method="POST" name=main><br />
<input name="textPost"<br />
onchange="ajaxAnywhere.submitAJAX()"/><br />
<script><br />
function showResult(text) {<br />
alert(text);<br />
}<br />
</script><br />
<aa:zone<br />
name="countriesList"><script>showResult('${param.textPost}');</script></aa:zone><br />
</form></p>
<p>----------------------------------------------------</p>
<p>Thanks for answer</p></div>kvasThu, 15 Dec 2005 12:30:26 -0000https://sourceforge.net95fbe3e6763bb03cb7422406edac7ae5dc408674Aquileo | textarea contents not postedhttps://sourceforge.net/p/ajaxanywhere/patches/2/<div class="markdown_content"><p>Form fields of type 'textarea' are not being posted by<br />
AA.<br />
</p>
<p>After handling the case for the 'textarea' element type<br />
in AjaxAnywhere.prototype.preparePostData(), things<br />
work fine. </p>
<p>New code for the fix starts with >>> below. </p>
<p>AjaxAnywhere.prototype.preparePostData =<br />
function(submitButton) {<br />
var form = this.findForm();<br />
var result = "";<br />
for (var i = 0; i < form.elements.length; i++) {<br />
var el = form.elements[i];<br />
if (el.tagName.toLowerCase() == "select") {<br />
for (var j = 0; j < el.options.length; j++) {<br />
var op = el.options[j];<br />
if (op.selected)<br />
result += "&" + escape(el.name) +<br />
"=" + escape(op.value);<br />
}<br />
} else if (el.tagName.toLowerCase() == "input") {<br />
if (el.type.toLowerCase() == "checkbox" ||<br />
el.type.toLowerCase() == "radio") {<br />
if (el.checked)<br />
result += "&" + escape(el.name) +<br />
"=" + escape(el.value);<br />
} else if (el.type.toLowerCase() ==<br />
"submit" || el.type.toLowerCase() == "image") {<br />
if (el == submitButton) // is "el" the<br />
submit button that fired the form submit?<br />
result += "&" + escape(el.name) +<br />
"=" + escape(el.value);<br />
} else if (el.type.toLowerCase() != "button") {<br />
result += "&" + escape(el.name) + "=" +<br />
escape(el.value);<br />
}<br />
}<br />
>>> else if (el.tagName.toLowerCase() == "textarea") {<br />
>>> result += "&" + el.name + "=" + escape(el.value);<br />
>>> }</p>
<p>}<br />
return result;<br />
}</p>
<p>PS: The code indentations in aa.js is not very<br />
readable. The following is a good free javascript code<br />
formatter which I use :<br />
<a href="http://www.jcay.com/javascript-code-improver.html" rel="nofollow">http://www.jcay.com/javascript-code-improver.html</a> </p></div>Fri, 14 Oct 2005 02:27:01 -0000https://sourceforge.net279a9050f5b6aa40e1050268b49bdd5fc6778556Aquileo | Older IE version supporthttps://sourceforge.net/p/ajaxanywhere/patches/1/<div class="markdown_content"><p>Patch to support some older versions of IE that support<br />
the Msxml2.XMLHTTP object instead of the<br />
Microsoft.XMLHTTP object.</p></div>Randall BurtThu, 13 Oct 2005 14:00:59 -0000https://sourceforge.netd93dd70f9fd05a47a559188a6a3d2d336bb2647c