× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



That is correct:

If there are unique names you can address them by their names...

Jeffrey Flaker
Senior Programmer/Analyst
Linens 'N Things
6 Brighton Rd
Clifton, NJ  07015
Phone:   973-249-4384
Fax:     973-249-4901
http://www.lnt.com


-----Original Message-----
From: Rob Dixon [mailto:rob.dixon@xxxxxxxxxxx] 
Sent: Wednesday, January 07, 2004 10:22 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Javascript - changing button text


Jeff

Many thanks

To my mind, whilst the ENTER,  PAGE UP AND PAGE DOWN buttons are 
duplicated ( and I will test your code on these)

the rest of the button names are unique

Or am I not understanding?

Rob Dixon

Flaker, Jeff wrote:

>Rob,
>
>If you have two or more elements bearing the same name you must do this

>via a FOR loop.
>
>Think of the two elements as an array, because that is what they 
>are....so loop through the array and change the button values:
>
>for (i=0;i<form.ButtonName.length;i++)
>        {form.ButtonName[i].value="SomeOtherValue";}
>
>"SomeOtherValue" can be a variable also.
>
>Jeffrey Flaker
>Senior Programmer/Analyst
>Linens 'N Things
>6 Brighton Rd
>Clifton, NJ  07015
>Phone:   973-249-4384
>Fax:     973-249-4901
>http://www.lnt.com
>
>
>
>  
>

_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To
post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.