Click here to Skip to main content
Sign Up to vote bad
good
See more: Javascript
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 15 Aug '12 - 8:11
lisalis178

Comments
AshishChaudha - 15 Aug '12 - 14:14
could you show us what you have tried so far...
Wes Aday - 15 Aug '12 - 14:17
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. Thumbs Up | :thumbsup:
  Permalink  
Comments
Wes Aday - 15 Aug '12 - 14:40
Very nice
Kenneth Haugland - 15 Aug '12 - 14:43
I get the feeling I could do this as well.... hmmm
Wes Aday - 15 Aug '12 - 14:46
Hmm? Young padawan learner idea is having?
Kenneth Haugland - 15 Aug '12 - 14:49
Young padawan books are reading, helping books well he is, taking by step, steps, improving...
Joan Murt - 15 Aug '12 - 14:43
Thank you Wes!
Kenneth Haugland - 15 Aug '12 - 15:00
:tumbsup: +5
Joan Murt - 15 Aug '12 - 15:17
Thank you Kenneth!

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 414
1 Arun Vasu 253
2 OriginalGriff 200
3 CPallini 163
4 Aarti Meswania 158
0 Sergey Alexandrovich Kryukov 10,169
1 OriginalGriff 7,749
2 CPallini 4,181
3 Rohan Leuva 3,482
4 Maciej Los 3,089


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 15 Aug 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid