Seperating Array Elements

This is a discussion on "Seperating Array Elements" within the JavaScript Forum section. This forum, and the thread "Seperating Array Elements are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Jun 23rd, 2006, 04:07
New Member
Join Date: Jun 2006
Location: Singapore
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Seperating Array Elements

Hi all,

Iam having some problem in my java script. I have one array with some elements which looks like.

arr = {'Feng', 'Sue', 'Rob', ''Feng' ', 'Chriss', 'Chriss', 'Sue', 'Charlie', 'Adam', 'Feng', 'Bian', 'Sue', 'Bian', 'Adam', 'Robbin', 'Feng'};

Here i want to seperate all similar names and put them into each diffrent array. The elements of the array may be any no of as the elements are dynamic.

plz help me to solve this problem.

Thanks & regards.

allala.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 5th, 2006, 03:11
New Member
Join Date: Jul 2006
Location: hk
Age: 28
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Seperating Array Elements

I couldn't find any method from javascript array that can meet your need,see javascript array methods lsit

http://www.developerzone.biz/index.p...=137&Itemid=45

The function you need is like "sort function" in SQL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 5th, 2006, 22:55
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Seperating Array Elements

The only way I can think of to do something like this is to use Regular Expressions.

It's going to be quite complex.

Have you any understanding of their use?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
seperating, array, elements

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP XML Counting Elements Don Logan PHP Forum 1 Mar 18th, 2006 03:03
count of the elements amit_shetye PHP Forum 2 Dec 6th, 2005 16:21
Selecting certain XML elements fogofogo Other Programming Languages 3 Dec 5th, 2005 12:49
Sorting a new array from an existing array Ozeona Flash & Multimedia Forum 2 Sep 20th, 2005 08:43
array unable to check another array so as to be displayed Ozeona Flash & Multimedia Forum 1 Aug 5th, 2005 10:26


All times are GMT. The time now is 05:59.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42