Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 4th, 2005, 01:14 PM
Registered User
 
Join Date: Jun 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default parameters that have dot inside thename

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
 
Old July 4th, 2005, 11:14 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Hi,

 Is there any specific reason to use variable names which includes "."?

Please check the following url for javascript variables:
http://www.mredkj.com/tutorials/refe...tro.html#scope


Om Prakash





Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding search in Dot Net comvidyarthi Visual Studio 2005 0 March 27th, 2007 09:32 AM
New Features of Dot Net 2.0 kool_creative General .NET 1 May 25th, 2006 03:40 AM
using dot net 2.0 zamankazi BOOK: ASP.NET Website Programming Problem-Design-Solution 6 October 26th, 2004 04:41 PM
ASP dot net Ankita BOOK: Beginning ASP.NET 1.0 1 March 26th, 2004 04:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.