...

View Full Version : Search and output



JANLEE
03-17-2006, 11:58 AM
Hi,



If you have a text in a <textarea> like this:

<textarea>
depending on the position, advertise on technical web sites and/or publications, the Seattle Times, Spokesman. Fitness to carry out the required duties: Depending on the position you are applying for, you may be required to meet. Duties vary depending on the position being filled and are in support of the students. Susceptibility of a Magnetic Impurity in Two-Dimensional Disordered Electron Systems. </textarea>

How do you create a script for search words and show the words found with its neighbours?

like this:

search word: position

Output:


xxxx depending on the position, advertise on technical web
duties: depending on the position you are applying for
vary depending on the position being filled and are

Thank you for ANY SUGGESTION (nOT WHOLE SCRIPT)

Best

Janlee

JANLEE
03-19-2006, 08:43 PM
The question in another way:

Please, if you have a text in a <textarea> like this:

1st step
_______

<textarea>
depending on the position, advertise on technical web sites and/or publications, the Seattle Times, Spokesman. Fitness to carry out the required duties: Depending on the position you are applying for, you may be required to meet. Duties vary depending on the position being filled and are in support of the students. Susceptibility of a Magnetic Impurity in Two-Dimensional Disordered Electron Systems. </textarea>

How do you create a script for search words and show the words found with its neighbours?

like this:

2nd step
________

search word: position

3rd step
_______

Output:

<table>
<td>
</td>
<td>
depending
</td>
<td>
on
</td>
<td>
the
</td>
<td>
position,
</td>
<td>
advertise
</td>
<td>
on
</td>
<td>
technical
</td>
<td>
web
</td>
</table>

and so on for further lines

duties: depending on the position you are applying for
vary depending on the position being filled and are


Thank you for ANY SUGGESTION

Best

JanLee



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum