Upgrading from zencart 1.3.9 h to 1.5.5 f . In the includes/module/customfolder/jscript_main.php , there is a jquery code to submit a form $('#'+element+'').submit(); where element is the id of that form . The code submits everything fine in 1.3.9h but after upgradation to 1.5.5 f ,its not working , the value of element is showing , but the page redirects to time_out.
even tried to replace
$('#'+element+'').submit();
with
document.getElementById("+element+").submit();
but that didn't help either
Urgent Help required . Thanks in advance.
function looks like
function confirmation(element) {
var ask= confirm("The text");
if (ask){
$('#'+element+'').submit();
}
else{
}
}
Bookmarks