English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i need sample code example for it

2006-10-27 21:54:52 · 2 answers · asked by juhe 1 in Computers & Internet Programming & Design

2 answers

I'm not sure I understand your question. Searching using the substring option would go something like this.

var string1= 'my string';
var result;
result=string1.substring(4,6)= ='tr' ;
alert(result); //this yields a true response
result=string1.substring(3,6)= ='tr';
alert(result); //this yields a false response

if you just want to know what the contents of the string is between a start and stop position in a string, this will work. It also works if you are comparing it to a specific value. However, if you are trying to see if a specific substring is found anywhere within another string, you need to use a different function. If this is the case, respond and I'll explain the other.

**Note** if you attempt to copy the code above, you will need to remove the extra space between the two = signs... Yahoo's editor is changing this code if I don't put spaces between them!**

2006-10-29 04:14:32 · answer #1 · answered by Snoopy 5 · 0 0

you'll ought to do all of it server part utilising like ASP and VB or use ASP.information superhighway... you are able to do it with javascript yet you'll run right into a challenge with protection subject matters on the consumers end also i don't think of that the protection of your information superhighway website would help you to open the document remotely.... to guarantee that the javascript to study it the document must be opened first and that i don't think of that it might enable an lively x administration to attempt this...

2016-12-05 07:43:32 · answer #2 · answered by ? 4 · 0 0

fedest.com, questions and answers