C
Craig G
the problem is caused by the cboRefSrc.SelectedValue but im unsure how to
get the selected value from the combo to put in the string
function OpenReferrer(idname, postBack)
{
var strReturn;
var myArray; strReturn=window.showModalDialog('frmReferrer.aspx?REFSRC='
+ document.getElementById('cboRefSrc').SelectedValue,
null,'status:no;dialogWidth:550px;dialogHeight:350px;dialogHide:true;help:no
;scroll:no');
if (strReturn != null)
{
myArray = strReturn.Split("$");
document.getElementById('txtReferrer_Name').value=myArray[0];
document.getElementById('txtReferrer_TelNo').value=myArray[1];
}
}
get the selected value from the combo to put in the string
function OpenReferrer(idname, postBack)
{
var strReturn;
var myArray; strReturn=window.showModalDialog('frmReferrer.aspx?REFSRC='
+ document.getElementById('cboRefSrc').SelectedValue,
null,'status:no;dialogWidth:550px;dialogHeight:350px;dialogHide:true;help:no
;scroll:no');
if (strReturn != null)
{
myArray = strReturn.Split("$");
document.getElementById('txtReferrer_Name').value=myArray[0];
document.getElementById('txtReferrer_TelNo').value=myArray[1];
}
}