Need help with ColdFusion multipages

Reply

Join Date: Jul 2004
Posts: 4
Reputation: rharp is an unknown quantity at this point 
Solved Threads: 0
rharp rharp is offline Offline
Newbie Poster

Need help with ColdFusion multipages

 
0
  #1
Nov 16th, 2004
Hello, I’m a jr. CF programmer trying to figure out how to create sets of multipages. What I want to do is create page sets of 10 and have an arrow link, which would jump you to the next 10 pages. The page selected would be the first number of the set, for example you have pages 1-10 then click the arrow and go to set 11-20. The page selected would be 11. I have no idea how to even attempt this task. Any input and/or suggestions would be more than appreciated. Thanks -Rebekah
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 26
Reputation: skyhawk133 is an unknown quantity at this point 
Solved Threads: 0
skyhawk133 skyhawk133 is offline Offline
Light Poster

Re: Need help with ColdFusion multipages

 
0
  #2
Mar 29th, 2005
Try this piece of code, it's old but it works: http://www.planet-source-code.com/vb...Id=14&lngWId=9
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 3
Reputation: WrkrAnt is an unknown quantity at this point 
Solved Threads: 0
WrkrAnt WrkrAnt is offline Offline
Newbie Poster

Re: Need help with ColdFusion multipages

 
0
  #3
May 26th, 2005
Here's one way (from CFMX manual, pages 468-469):

<CFQUERY DATASOURCE="your_db" NAME="GetLinks">
SELECT link, link_ID FROM your_table
</CFQUERY>
<cfparam NAME ="MaxRows" default="10">
<cfparam NAME ="StartRow" default="1">
<CFOUTPUT QUERY="GetLinks" startrow="#StartRow#" maxrows="#MaxRows#">
#GetLinks.currentRow# --- #link#<BR>
</CFOUTPUT>
<CFIF (StartRow+MaxRows) LTE GetLinks.recordcount>
<a href="your_filename.cfm?StartRow=<cfoutput>#evaluate(StartRow+MaxRows)#</cfoutput>"><img src="/images/arrow.gif></a>
</CFIF><br>
<a href="your_filename.cfm?StartRow=1">Reset counter</a>

(too easy, so I decided to fill it out - just copy & paste; change MaxRows to output different number of records)
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1
Reputation: mr mouth is an unknown quantity at this point 
Solved Threads: 0
mr mouth mr mouth is offline Offline
Newbie Poster

Re: Need help with ColdFusion multipages

 
0
  #4
Sep 21st, 2005
hi,
did you ever figure this one out or am i missing something in the posts below? as far as i can tell the replies u hd were pretty useless?
any ideas MUCH appreciated....
cheers
jon

Originally Posted by rharp
Hello, I’m a jr. CF programmer trying to figure out how to create sets of multipages. What I want to do is create page sets of 10 and have an arrow link, which would jump you to the next 10 pages. The page selected would be the first number of the set, for example you have pages 1-10 then click the arrow and go to set 11-20. The page selected would be 11. I have no idea how to even attempt this task. Any input and/or suggestions would be more than appreciated. Thanks -Rebekah
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 1
Reputation: michael zap is an unknown quantity at this point 
Solved Threads: 0
michael zap's Avatar
michael zap michael zap is offline Offline
Newbie Poster

Re: Need help with ColdFusion multipages

 
0
  #5
Feb 2nd, 2006
Help! I want to learn the basics about CF. Please, give me some websites!
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 28
Reputation: anuradhu is an unknown quantity at this point 
Solved Threads: 2
anuradhu anuradhu is offline Offline
Light Poster

Re: Need help with ColdFusion multipages

 
0
  #6
Apr 18th, 2006
website links for coldfusion:

macromedia.com
easycfm.com
cffaq.com
coldfusiontutorials.com
webmonkey.com

but for me the macromedia site has always been the best reference
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 26
Reputation: Walyer is an unknown quantity at this point 
Solved Threads: 1
Walyer's Avatar
Walyer Walyer is offline Offline
Light Poster

Re: Need help with ColdFusion multipages

 
0
  #7
Apr 22nd, 2006
www.communitymx.com is another great site to help with all macromedia products.

Take care,

Walyer

Walyer's Playpen
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 12
Reputation: lightningrod66 is an unknown quantity at this point 
Solved Threads: 0
lightningrod66's Avatar
lightningrod66 lightningrod66 is offline Offline
Newbie Poster

Re: Need help with ColdFusion multipages

 
0
  #8
Oct 1st, 2007
Originally Posted by skyhawk133 View Post
Try this piece of code, it's old but it works: http://www.planet-source-code.com/vb...Id=14&lngWId=9
I tried adapting this piece of code to use on my guestbook to show X number of records per page, and produce a previous/next link, but it does absolutely nothing. I have tried numerous pieces of code to achieve this, but so far, nothing works. Any advice is definitely appreciated.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ColdFusion Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC