What is the recommended solution for navigating between webspeed https pages when page 1 needs to passed hidden fields to page 2.
In the past I have used the javascript below and it has worked well. This script passes user fields through URL parameters. The page I have now needs to use hidden fields because the number of fields can vary and is large.
Current Javascript sample looks as follows
var cSecure = 'myHTTPSurl'
function gotopage2(param1) {
var cURL = cSecure + 'page2.r?param1=' + param1;
document.location.assign(cURL);
}
I call the javascript from webspeed/speedscript as follows
request_method = "get":u.
output-content-type("text/html":U).
{&OUT} " <SCR" + "IPT SRC='/js/pagenav.js' LANGUAGE='JavaScript'></SCR" + "IPT>~n".
{&OUT} " <SCR" + "IPT LANGUAGE='JavaScript' TYPE='text/javascript'>~n".
{&OUT} " gotopage2('" + get-value("param1") + "');~n".
{&OUT} " </SCR" + "IPT>~n".
return error.
Looks for ways to modify this to pass hidden fields or an alternate method I can use to pass hidden fields.
In the past I have used the javascript below and it has worked well. This script passes user fields through URL parameters. The page I have now needs to use hidden fields because the number of fields can vary and is large.
Current Javascript sample looks as follows
var cSecure = 'myHTTPSurl'
function gotopage2(param1) {
var cURL = cSecure + 'page2.r?param1=' + param1;
document.location.assign(cURL);
}
I call the javascript from webspeed/speedscript as follows
request_method = "get":u.
output-content-type("text/html":U).
{&OUT} " <SCR" + "IPT SRC='/js/pagenav.js' LANGUAGE='JavaScript'></SCR" + "IPT>~n".
{&OUT} " <SCR" + "IPT LANGUAGE='JavaScript' TYPE='text/javascript'>~n".
{&OUT} " gotopage2('" + get-value("param1") + "');~n".
{&OUT} " </SCR" + "IPT>~n".
return error.
Looks for ways to modify this to pass hidden fields or an alternate method I can use to pass hidden fields.