Click to See Complete Forum and Search --> : Needs help to destring a string


K Lo
10-27-2003, 09:23 PM
i have a string in the formt of "id=James Bond,ou=external,o=Bond Company", what function can i use
to extract out the string "James Bond"?

anyone has sample code to show me how to do this?

any help will be much appreciated

Jona
10-27-2003, 10:19 PM
var data = "id=James Bond,ou=external,o=Bond Company";
var right = data.split(",")[0];
alert(right.split("=")[1]);


[J]ona