Similarly, should also be able to do this to:

document.mysearchf["0"].value = "value";

(where mysearchf is the form name)

Seach searches/*.xml for "].value" to see some examples.

----- Original Message ----- 
From: "Kim Gräsman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 12, 2004 12:12 PM
Subject: RE: [DQSD-Users] Parser limitation on fields with digit names?


> Hi Tom,
>
> Yeah, JavaScript, like many other languages, doesn't allow variable/type
> names beginning with a digit.
> I'm no JS-head, but I think you can use getElementByName instead;
>
> document.mysearchf.getElementByName("0").value = "value";
>
> But I'd try a jsref search on that to be sure :)
>
> Hope that helps,
> Kim
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Tom Corcoran
> > Sent: den 12 januari 2004 18:17
> > To: [EMAIL PROTECTED]
> > Subject: [DQSD-Users] Parser limitation on fields with digit names?
> >
> > I am writing a search for a page with elements :
> >
> >     <input type="hidden" name="0" value="" />
> >     <input type="hidden" name="1" value="" />
> >     <input type="hidden" name="3" value="" />
> >
> > in the standard switch( args.switches[j].name ) block
> >             switch( args.switches[j].name )
> > the line
> >             case "from": document.mysearchf.0.value = "value"; break;
> > gives an error expected ';'. I can change the 0 to another
> > field with a
> > sensible name and it loads fine. Is this a limitation of the parser?
> >
> > Thanks, Tom.
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> _______________________________________________
> To unsubscribe visit:
> https://lists.sourceforge.net/lists/listinfo/dqsd-users
> [EMAIL PROTECTED]
> http://sourceforge.net/mailarchive/forum.php?forum_id=8601



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
To unsubscribe visit:
https://lists.sourceforge.net/lists/listinfo/dqsd-users
[EMAIL PROTECTED]
http://sourceforge.net/mailarchive/forum.php?forum_id=8601

Reply via email to