Ahh yes I see how this relates to struts...

subscribe to a JS newsgroup
google is your friend

Chris

-----Original Message-----
From: Ramachandran [mailto:[EMAIL PROTECTED]
Sent: 16 February 2004 07:52
To: Struts Users Mailing List
Subject: Problem using split() method in java script


Hi,

 I am facing problem in java script, using spilt() methos.

 Here i want to split the strings using '\' this separator. Here it is
separating the strings. Bu it is displayed in the zeroth index array. But i
want to display in each index.

But not Working. Any body having idea please maile me.

This is my code.

 var where_is_mytool="home\mytool\mytool.cgi";
 var mytool_array=where_is_mytool.split("\\");
 alert(mytool_array[0]+" second "+mytool_array[1]+" third
"+mytool_array[2]);


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


***********************************************
This e-mail and its attachments are confidential
and are intended for the above named recipient
only. If this has come to you in error, please 
notify the sender immediately and delete this 
e-mail from your system.
You must take no action based on this, nor must 
you copy or disclose it or any part of its contents 
to any person or organisation.
Statements and opinions contained in this email may 
not necessarily represent those of Littlewoods.
Please note that e-mail communications may be monitored.
The registered office of Littlewoods Limited and its
subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB.
Registered number of Littlewoods Limited is 262152.
************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to