Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is this at all possible in Javascript? 1

Status
Not open for further replies.

navrsalemile

Programmer
Feb 6, 2005
62
CA
I have following Javascript function:

function onRGLink(rGCode) {
frmRG.com.abc.xyz.rGCode.value = rGCode;
frmRG.submit();
}

I do not know how to delimit parameter com.abc.xyz.rGCode inside the statement
frmRG.com.abc.xyz.rGCode.value = rGCode;

I tried both frmRG.'com.abc.xyz.rGCode'.value = rGCode;
and frmRG."com.abc.xyz.rGCode".value = rGCode;

but no success. I have to have dots in this parameter name.

many thanks,
Mile
 
function onRGLink(rGCode) {
frmRG.elements["com.abc.xyz.rGCode"].value = rGCode;
frmRG.submit();
}

-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top