Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 29th, 2004, 02:32 PM
Registered User
 
Join Date: Aug 2004
Location: Dublin, , Ireland.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Comparing arrays in javascript

Hi,

I figure this should be easy but...

I have two arrays;
ar1 = ("123","234","456");
ar2 = ("098;a;b","987;d;e","234;f;g","876;h;i","456;j;k" );

I am using these two arrays to produce a list box on a form that will allow people to update an existing record in a database. The first array contains data that was originally selected and the second is the omplete dataset from which users can make a selection.

I want the selection box to have "pre-selected" the oiginal group but to display the complete set of options.

Any suggestions for comparing the two arrays. Actually writing this suggests an alternate method to the ones I have tried.

More anon.

Head of innovation and Industry Services,
Faculty of Applied Arts
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: Arrays using JavaScript,/JSP Iterator in IE celticbhoy Javascript How-To 3 December 11th, 2007 10:55 AM
Help: Arrays using JavaScript,/XML in IE celticbhoy Ajax 0 December 10th, 2007 01:15 PM
Comparing Arrays mattastic Javascript 2 January 27th, 2006 05:48 AM
Accessing of Arrays of jsp in javascript theguardian@vsnl.net JSP Basics 1 August 26th, 2004 11:16 PM
Accessing of Arrays of jsp in javascript theguardian@vsnl.net JSP Basics 0 August 26th, 2004 12:54 PM



All times are GMT -4. The time now is 05:21 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.