prabhukm
09-17-2003, 12:32 AM
Hi All,
I am having a fcunction which will submit a form with some values. Actually this function is properly working in Mozilla, IE 6. But in Opera and IE 5.0, the function is not working. My function is
function doSorting(isAscending,orderByColumn)
{
if(orderByColumn != document.pagexform.orderByColumn.value )
{
document.pagexform.isAscending.value = "true";
document.pagexform.orderByColumn.value = orderByColumn;
}
else
{
if(isAscending == "true")
{
isAscending="false";
}
else if(isAscending == "false")
{
isAscending="true";
}
document.pagexform.isAscending.value = isAscending;
document.pagexform.orderByColumn.value = orderByColumn;
}
document.pagexform.FROM_INDEX.value="1";
document.pagexform.TO_INDEX.value = parseInt(document.pagexform.FROM_INDEX.value) + parseInt(document.pagexform.viewLength.value)-1;
document.pagexform.PAGE_NUMBER.value="1";
document.pagexform.submit();
}
If i include a alert() means, that function is properly working.
So please help me to find where i'm making the mistake.
Thanks in Advance,
Prabhu
I am having a fcunction which will submit a form with some values. Actually this function is properly working in Mozilla, IE 6. But in Opera and IE 5.0, the function is not working. My function is
function doSorting(isAscending,orderByColumn)
{
if(orderByColumn != document.pagexform.orderByColumn.value )
{
document.pagexform.isAscending.value = "true";
document.pagexform.orderByColumn.value = orderByColumn;
}
else
{
if(isAscending == "true")
{
isAscending="false";
}
else if(isAscending == "false")
{
isAscending="true";
}
document.pagexform.isAscending.value = isAscending;
document.pagexform.orderByColumn.value = orderByColumn;
}
document.pagexform.FROM_INDEX.value="1";
document.pagexform.TO_INDEX.value = parseInt(document.pagexform.FROM_INDEX.value) + parseInt(document.pagexform.viewLength.value)-1;
document.pagexform.PAGE_NUMBER.value="1";
document.pagexform.submit();
}
If i include a alert() means, that function is properly working.
So please help me to find where i'm making the mistake.
Thanks in Advance,
Prabhu