User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 423,618 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,150 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser: Programming Forums
Views: 5488 | Replies: 7
Reply
Join Date: Jul 2004
Posts: 4
Reputation: rharp is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rharp rharp is offline Offline
Newbie Poster

Help Need help with ColdFusion multipages

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2005
Posts: 26
Reputation: skyhawk133 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
skyhawk133 skyhawk133 is offline Offline
Light Poster

Re: Need help with ColdFusion multipages

  #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  
Join Date: May 2005
Location: Tucson
Posts: 3
Reputation: WrkrAnt is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
WrkrAnt WrkrAnt is offline Offline
Newbie Poster

Re: Need help with ColdFusion multipages

  #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  
Join Date: Sep 2005
Posts: 1
Reputation: mr mouth is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mr mouth mr mouth is offline Offline
Newbie Poster

Help Re: Need help with ColdFusion multipages

  #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  
Join Date: Feb 2006
Posts: 1
Reputation: michael zap is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
michael zap's Avatar
michael zap michael zap is offline Offline
Newbie Poster

Re: Need help with ColdFusion multipages

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

Re: Need help with ColdFusion multipages

  #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  
Join Date: Apr 2005
Location: Ontario, Canada
Posts: 24
Reputation: Walyer is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
Walyer's Avatar
Walyer Walyer is offline Offline
Light Poster

Re: Need help with ColdFusion multipages

  #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  
Join Date: Oct 2007
Posts: 4
Reputation: lightningrod66 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
lightningrod66's Avatar
lightningrod66 lightningrod66 is offline Offline
Newbie Poster

Re: Need help with ColdFusion multipages

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ColdFusion Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ColdFusion Forum

All times are GMT -4. The time now is 9:09 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC