Hi everyone,
This may be a stupid question, but I’m totally confused.. I’m currently passing the value from a combobox to my URL so I can use it to auto populate an IFRAME with another combobox. This works fine…
Now I also use the match() String JS Object in a conditional to see if certain values are in the combobox value string. If they are I set a variable to that value. I’m also trying to pass this value into the URL, but it seems when the IFrame Loads the variable is missing. Any Suggestions??
Here is my logic….
strTest = my comboBox value……
a = single quote…
[CODE]<script language=”JavaScript”>
function ParseObjType(strTest){
alert(strTest)
var ObjType
var ObjType2
var FactTable = “FCT”
var DimTable = “DIM”
var Cube = “OLAP”
var Crystal = “CR”
var Scheduler = “SCHD”
var Replication = “RPLC”
var MasterFile = “MF”
var Cenus = “CENS”
var Claims = “CLM”
if (strTest.match(FactTable)) {
ObjType = “FC”
alert(ObjType)
}
else if (strTest.match(DimTable)) {
ObjType = “DM”
alert(ObjType)
}
else if (strTest.match(Cube)) {
ObjType = “CB”
alert(ObjType)
}
else if (strTest.match(Crystal)) {
ObjType = “CR”
alert(ObjType)
}
else if (strTest.match(MasterFile)){
ObjType = “MF”
alert(ObjType)
}
else if (strTest.match(Cenus)) {
ObjType = “CE”
alert(ObjType)
}
else if (strTest.match(Claims)) {
ObjType = “CL”
alert(ObjType)
}
else{
ObjType = “RP”
ObjType2 = “SC”
alert(ObjType2)
alert(ObjType)
}
document.getElementById(“jobFrame”).src=(“iJobInfo.asp?Stream= ” + a + strTest + a + “&” + “objType = ” + a + ObjType + a)
}
</script>
I used the alert boxes and the Value gets stored correctly, however when the IFrame loads the value is not passed to through like the comboBox value..
Any help would be appreciated!!
Thanks,
Matt