Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help! Thread Per Page

Status
Not open for further replies.

lminmei

Programmer
Feb 1, 2000
111
US
I want to create something like how tek-tips have here with the "threads per page" module:

I want the option to choose the number of threads on a specific page... like this one. but when i created my code on the page:

<cfoutput>
<form name=&quot;selectrow&quot; action=&quot;forum.cfm?maxrows=#maxrows#&quot; method=&quot;post&quot;>
<table>
<tr>
<td>
<select name=&quot;maxrows&quot; onChange=&quot;submit()&quot;>
<option value=&quot;&quot;>Select
<option value=20>20
<option value=30>30
</select>
</td>
</tr>
</table>
<cfoutput>

CF Server tells me that the variable #maxrows# does not have a value. Which is true. So I set a <cfparam> to declare the &quot;maxrows&quot; variable at the beginning of the page. But then when i choose either a 20 or 30 in the drop-down menu to choose the number of records. The page doesn't update to reflect the new number of threads. What am I doing wrong or am i missing something else?

-lminmei
 
the &quot;old&quot; page remains hidden in the cache
check for &quot;cache&quot; issues in this forum, the html & css one, and the jscript one as there are many solution depending on what you want
 
iza,

thanx for replying so soon but i don't think its a cache problem.
cuz...
first when i click a link to the Forum page....the url is:
forum.cfm?forum=1
and i set a <cfparam name=&quot;maxrows&quot; default=&quot;10&quot;>
then i call this parameter in a <cfoutput maxrows=#maxrows#>

and on that same page, i have a drop-down list (refer to my first question submission ^) to change the number of records to display.

So my question is this: how to I change the default value of 10 to the value that i selected in the drop-down list? so that my output records can reflect the number selected in the drop-down list. Its almost exactly how the people here at tek-tips did it. ???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top