Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Closed Issue: Issue with multi-form pages. [15985]

$
0
0
Hi,
There is an issue in prepareHiddenElementForATDeviceUpdate function in common.js.
If page has several forms, one is POST form and the rest are GET forms, there is an issue with this code:
if ( document.forms[0] ) {
document.forms[0].appendChild(objHidden);
}


It should be corrected to this or similar code:

if (document.forms)
{
//Find valid post form.
if (document.forms.length == 1)
{
document.forms[0].appendChild(objHidden);
}
else
{
for (var i=0; i++; i < document.forms.length)
{
if (document.forms[i].method == "post")
{
document.forms[i].appendChild(objHidden);
break;
}
}
}
}



The idea is to find valid POST form.

Thanks.
Comments: This ticket was filed for a pre-15.1 version of AJAX Control Toolkit. If this is still an issue in v15.1 or later, please file a new issue.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>