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 > <alt=> in paging possible?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-19-05, 20:32
gilgalbiblewhee gilgalbiblewhee is offline
Registered User
 
Join Date: Jul 2004
Posts: 494
<alt=> in paging possible?

Is there a way of using the ALT outside the IMG? I was wondering if it's possible of using an ALT on paging # to show which page is at what record.

This is what I have though it doesn't work:
Code:
if rspage>2 then

           for i=1 to rspage
'IF REQUEST.QUERYSTRING("PAGE") = i THEN
'Response.Write("<b>" & i & "</b>")
pagingurl = "<a href=""" & Request.ServerVariables("SCRIPT_NAME") & "?page=" &i& "&Keyword="& Keyword &"&Keywordb="& Keywordb &"&Keywordc="& Keywordc

if spoke<> "" then pagingurl = pagingurl & "&spoke=" & spoke


If   request.QueryString("book_spoke")="Book_Spoke" then pagingurl = pagingurl & "&book_spoke=Book_Spoke"

If   request.QueryString("chapter_spoke")="Chapter_Spoke" then pagingurl = pagingurl & "&chapter_spoke=Chapter_Spoke"

If   request.QueryString("verse_spoke")="Verse_Spoke" then pagingurl = pagingurl & "&verse_spoke=Verse_Spoke"
If Trim(Request.QueryString("recordType")) <> "" then 
  aRecTypes = Split(Request.QueryString("recordType"), ",")
'  If IsArray(aRecTypes) Then 
'pagingurl = pagingurl & 
    For iLoopCount = 0 To UBound(aRecTypes)
     pagingurl = pagingurl & "&recordType=" & trim(aRecTypes(iLoopCount))
    Next
  End If
  SQL = SQL & ")"

pagingurl = pagingurl & "&text_data=yes" & "&optAction=on""><ALT=" & RS("book_title") & ">"&i&"</a>"

response.write pagingurl
Reply With Quote
  #2 (permalink)  
Old 01-19-05, 23:23
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
title will sometimes work to pop up a tool tip but it should be inside the tag eg...

Code:
<a href="somelink" title="this links somwhere">somwhere</a>
Reply With Quote
  #3 (permalink)  
Old 01-20-05, 19:58
gilgalbiblewhee gilgalbiblewhee is offline
Registered User
 
Join Date: Jul 2004
Posts: 494
That worked but I was wondering if it's possible to use it in paging. WHen I have a hundred records with 10 records per page it would be nice to know the position in the title tag.

But what I see now is the "book_title" of the first record all throughout the page numbers even though it varies.
Reply With Quote
  #4 (permalink)  
Old 01-20-05, 20:06
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
just dynamically build the title...
Code:
<a href="somelink" title="this links to page <%=i%>">somwhere</a>
Reply With Quote
  #5 (permalink)  
Old 01-20-05, 20:21
gilgalbiblewhee gilgalbiblewhee is offline
Registered User
 
Join Date: Jul 2004
Posts: 494
but what function in asp determines which record to start with on each page?
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