I have a secure WebSpeed webpage that contains a form that I need to process once user selects submit. I have setup code to handle the processing, but when I get to the point where I need to advance to the next page, I get an error from the browser that the transaction was not secure and it stops processing which causes the user to end up with a blank page. The portion of the WebSpeed SpeedScript code under the POST processing section to advance to the next page looks as follows
A sample of the code in the .js files is as follows
What do I need to change to ensure the secure transaction processing from page to page?
Code:
request_method = "get":u.
output-content-type("text/html":U).
{&OUT} " <SCR" + "IPT SRC=https://www.someurl.com/js/securepages.js' LANGUAGE='JavaScript'></SCR" + "IPT>~n".
{&OUT} " <SCR" + "IPT LANGUAGE='JavaScript' TYPE='text/javascript'>~n".
{&OUT} " gotonextpage('" + string(var1) + "','" + string(var2) + "');~n".
{&OUT} " </SCR" + "IPT>~n".
return error.
A sample of the code in the .js files is as follows
Code:
var cNonSecure = 'http://www.someurl.com/scripts/cgiip.wsc/';
var cSecure = 'https://www.someurl.com/scripts/cgiip.wsc/';
function doJS() {
//empty function
}
function gotonextpage(var1,var2) {
setLoginCookie('secure');
var cURL = cSecure + 'app/nextpage.r?var1=' + var1 + '&var2=' + var2;
// document.location.assign(cURL);
document.location.replace(cURL);
}
// set cookie to indicate namigation mode - secure or normal
function setLoginCookie(navMode) {
document.cookie='navMethod=' + navMode + '; path=/';
}
What do I need to change to ensure the secure transaction processing from page to page?