Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2006
    Posts
    44

    Unanswered: Display 1st few words of the results and when mouseover show all

    Hi, i have a problem with displaying results.

    I have a column displaying a few lines of sentences from a column in db.
    However, i oly want to display the 1st 10 words, and when i mouseover that column, i can see the details of the whole paragraph(something like a popup).

    How can i do that?

    Thanx ^^

  2. #2
    Join Date
    Dec 2003
    Posts
    39
    u may use tooltip

    <table>
    <tr>
    <td>...</td>
    <td title="<%=variable_name%>"><%=left(variable_name,1 0)%></td>
    <tr>
    </table>
    Link Link

  3. #3
    Join Date
    Jan 2006
    Posts
    44
    thanks for your reply.. but it doesnt works for me..

    <td>(left(serverArray(9,x),10)</td>

    it got an error..

  4. #4
    Join Date
    Dec 2003
    Posts
    39
    The array variable and left function should be as asp script between <%%>

    <td title="<%=serverArray(9,x)%>"><%=left(serverArray( 9,x),1 0)%></td>

    and actually it just show 10 characters, to show 10 words, u can find the index of space character.
    Link Link

  5. #5
    Join Date
    Jan 2006
    Posts
    44
    Thanx, i just sort it out.

Posting Permissions

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