943,811 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Unsolved
  • Views: 6726
  • ColdFusion RSS
Nov 16th, 2004
0

Need help with ColdFusion multipages

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rharp is offline Offline
4 posts
since Jul 2004
Mar 29th, 2005
0

Re: Need help with ColdFusion multipages

Try this piece of code, it's old but it works: http://www.planet-source-code.com/vb...Id=14&lngWId=9
Reputation Points: 10
Solved Threads: 0
Light Poster
skyhawk133 is offline Offline
26 posts
since Jan 2005
May 26th, 2005
0

Re: Need help with ColdFusion multipages

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)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
WrkrAnt is offline Offline
3 posts
since May 2005
Sep 21st, 2005
0

Re: Need help with ColdFusion multipages

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

Quote 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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mr mouth is offline Offline
1 posts
since Sep 2005
Feb 2nd, 2006
0

Re: Need help with ColdFusion multipages

Help! I want to learn the basics about CF. Please, give me some websites!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
michael zap is offline Offline
1 posts
since Feb 2006
Apr 18th, 2006
0

Re: Need help with ColdFusion multipages

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
Reputation Points: 12
Solved Threads: 2
Light Poster
anuradhu is offline Offline
28 posts
since Apr 2006
Apr 22nd, 2006
0

Re: Need help with ColdFusion multipages

www.communitymx.com is another great site to help with all macromedia products.

Take care,

Walyer

Walyer's Playpen
Reputation Points: 10
Solved Threads: 1
Light Poster
Walyer is offline Offline
26 posts
since Apr 2005
Oct 1st, 2007
0

Re: Need help with ColdFusion multipages

Click to Expand / Collapse  Quote originally posted by skyhawk133 ...
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
lightningrod66 is offline Offline
19 posts
since Oct 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: cfchart problem
Next Thread in ColdFusion Forum Timeline: Recordset Paging Problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC