If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Display 1st few words of the results and when mouseover show all

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-31-06, 22:32
Cuttie0506 Cuttie0506 is offline
Registered User
 
Join Date: Jan 2006
Posts: 44
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 ^^
Reply With Quote
  #2 (permalink)  
Old 02-01-06, 01:39
Jelly Link Jelly Link is offline
Registered User
 
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
Reply With Quote
  #3 (permalink)  
Old 02-01-06, 02:10
Cuttie0506 Cuttie0506 is offline
Registered User
 
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..
Reply With Quote
  #4 (permalink)  
Old 02-01-06, 03:14
Jelly Link Jelly Link is offline
Registered User
 
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
Reply With Quote
  #5 (permalink)  
Old 02-01-06, 04:34
Cuttie0506 Cuttie0506 is offline
Registered User
 
Join Date: Jan 2006
Posts: 44
Thanx, i just sort it out.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On