reneecccwest wrote:
I like to set the variable to something else and embedded in the url string.
where did I do wrong?
aholder = document.orgzform.a.value;
bholder = document.orgzform.b.value;
cholder = document.orgzform.c.value;
//set values into a variable
var passurlvalue = "&aID" + aIDholder + "&bID" + bIDholder + "&cID" + cIDholder
//Passing the values
location.href="orgz03.cfm?&reedit=1" + "&j=" + jholder + passurlvalue;
You declare variable "aholder" but you refer to variable "aIDholder" in
the string. Also you include an ampersand immediately after the question
mark, I believe you don't want to use one there. See if this works for you:
function buildurlstring() {
var aIDholder = document.orgzform.a.value;
var bIDholder = document.orgzform.b.value;
var cIDholder = document.orgzform.c.value;
var baseurl = 'orgz03.cfm';
var passurl = '?reedit=1';
passurl += '&j=' + jholder;
passurl += '&aID='+aIDholder;
passurl += '&bID='+bIDholder;
passurl += '&cID='+cIDholder;
location.href=baseurl+passurl;
}
Mike