Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
i am just trying to do split substring. For example,

string = BBA,BSC,BCOM


i have to parse the string BBA etc... separate and then i have to make it as a hyperlink. Can anyone help out.

Thank you
Posted
Comments
AshishChaudha 15-Aug-12 14:14pm    
could you show us what you have tried so far...
[no name] 15-Aug-12 14:17pm    
By the time that you wrote this up and wait hours for an answer, you could have simply searched for the information you are looking for http://www.w3schools.com/jsref/jsref_obj_string.asp

1 solution

In order to split the string in substrings it is really easy... I've only had to search google for "string split" to find out this:

String splitting[^]

To convert any text to a hyperlink it is even easier: any hyperlink follows those rules: http://www.w3schools.com/html/html_links.asp[^].

After reading that you will easily be able to split strings and to add the right text codes to the beginning and to the end in order to make them hyperlinks (see here http://www.w3schools.com/jsref/jsref_concat_string.asp[^]).

PS: all what I've done is searching Google to find this out. I'm from spain and english is not my first language... you should try it, it works and pays it back to be able to find out this kind of solutions by yourself.

Good luck. :thumbsup:
 
Share this answer
 
Comments
[no name] 15-Aug-12 14:40pm    
Very nice
Kenneth Haugland 15-Aug-12 14:43pm    
I get the feeling I could do this as well.... hmmm
[no name] 15-Aug-12 14:46pm    
Hmm? Young padawan learner idea is having?
Kenneth Haugland 15-Aug-12 14:49pm    
Young padawan books are reading, helping books well he is, taking by step, steps, improving...
Joan M 15-Aug-12 14:43pm    
Thank you Wes!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900