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.
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.