Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    May 2005
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Search and output

    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

  • #2
    Regular Coder
    Join Date
    May 2005
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •