codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Javascript Array (split string)  Spittle at 17:38 on Wednesday, June 15, 2005
 

Hello, All

This might sound very weak, but i'm a noobie to javascript.
I was wondering if anybody could tell me how to split an
array twice, I'll explain this the best way i can...

I have a *.js file with the following code..

var h="$bob*test*text*5777*coffee$paul*test*text*6321*tea";

that is an example, the first thing i want to do is split
the string at the "$" character, the amount of "$" characters
will change (there could be 1 or 15). I also want to split the "*" characters into an array, but the amount of "*" characters will
always be 4. i need to name the arrays (ie New_Array[0]=s1;),
so that i can add them to html tags. So,
document.write("<span ID="+s1+">"); would write the split array into
the html tag.

Thanks for reading, any help or links in the right direction would be great.

P.S : If you don't understand what i'm getting at, don't worry i'm not sure i completely understand it either.

  Re: Javascript Array (split string)  Spittle at 13:26 on Thursday, June 16, 2005
 

Here is something i've tried..

<script>
var h ="$*bob*test*text*4433*coffee$*paul*test*text*5354*tea"
var z = h.split("$");
for (var i=0; i < z.length; i++)
var sz=z.split("*");
document.write(sz[5]);
</script>

But it only writes in "tea", not "tea" and "coffee", also i need to make them into an array.
Something like ..

s=new Array();
sz[5]=s1;

so in the html i could put "<span>"+s1+"</span>"
But i'm not really sure how it's done.

Thanks.

  Re: Javascript Array (split string)  benben at 06:02 on Saturday, May 21, 2011
 

Fake Tag Heuer Carrera Automatic Chronograph Mens Wrist Replica Watch CV2013.BA0786 Watches online
Fake Tag Heuer Carrera Automatic Chronograph Mens Wrist Replica Watch CV2011.BA0786 Watches online
Fake Tag Heuer Carrera Automatic Chronograph Mens Wrist Replica Watch CV2014.BA0794 Watches online
Fake Tag Heuer Carrera Automatic Chronograph Mens Wrist Replica Watch CV2010.FC6233 Watches online
Fake Tag Heuer Carrera Automatic Chronograph Mens Wrist Replica Watch CV2010.BA0794 Watches online
Fake Tag Heuer Carrera Automatic Chronograph Mens Wrist Replica Watch CV2010.BA0786 Watches online
Fake Tag Heuer Carrera Automatic Chronograph Mens Wrist Replica Watch CV201M.BA0794 Watches online
Fake Tag Heuer Carrera Automatic Chronograph Mens Wrist Replica Watch CV201J.BA0794 Watches online
Fake Tag Heuer Carrera Automatic Chronograph Mens Wrist Replica Watch CV201C.FT6007 Watches online

  Re: Javascript Array (split string)  wwwkan123 at 05:57 on Friday, June 24, 2011
 



Today I found a wonderful website,the site contained:

wedding dresses


cheap wedding dresses


Junior Bridesmaid Dresses


Cheap Homecoming Dresses


Cheap Quinceanera Dresses


Inexpensive bridesmaid dresses


Wholesale wedding dress


Wholesale wedding dress


Discount wedding dresses


Cheap Maternity Wedding Dresses


A-Line Wedding Dresses


Cheap Couture Wedding Dresses


Cheap Beach Wedding Dresses


Cheap Casual Wedding Dresses


Cheap Simple Wedding Dresses


Cheap Modest Wedding Dresses


Cheap Special Occasion Dresses


Cheap Evening Dresses


Cheap Prom Dresses


Cheap Little Black Dresses


Cheap Plus Size Wedding Dresses


Pink Wedding Dresses


Cheap Wedding Party Dresses


Cheap Bridesmaid Dresses


Cheap Flower Girl Dresses


Cheap Mother of the Bride Dresses

victoria's secret,

cheap wedding dresses,wholesale wedding dress,Wedding dresses 2011,Plus Size Wedding Dress wholesale,Couture Wedding Dress wholesale,Formal Wedding Dress wholesale,Bridesmaid Dresses wholesale,Discount Bridesmaid Dress wholesale,Junior Bridesmaids Dresses wholesale,Maternity Bridesmaid Dress wholesale,Cocktail Dress wholesale,Prom Dress wholesale,Evening Dress wholesale,Sexy Evening Dress wholesale,Stardoll Dress wholesale,Quinceanera Dress wholesale,Mother of the Bride Dress,Flower Girl Dress,Wedding Accessories wholesale


  Re: Javascript Array (split string)  danaray79 at 21:09 on Tuesday, August 02, 2011
 

I must appreciate you for the information you have shared.I find this information very useful and it has considerably saved my time.thanks

Buy Articles | Life Experience Degree | bachelor degree | Sample Essays








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: c++ student in desperate need of help
•  Re: submit forms... with attachment: POSTDATA1.ATT????
•  Re: Highlight/Remove Highlighting when Selecting a Table Row
•  Re: complicate JavaScript function
•  Re: Can`t create web service project
•  Re: implementing classes
•  Re: Is there an ADMIN!!!!! Is this place maintained!
•  Re: online database
•  Re: date checking


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011