Re: Pagination CFC: How to pass search parameters?
OK, I see, they might only post the form on the first search. I would say then that yes, you'd need to use javascript to intercept the link clicks and grab the search form variables, and append them to the end of the pagination link as url parameters, then do a window.location.href with the new url string. -- Josh - Original Message - From: "Rick Faircloth" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Monday, April 14, 2008 11:05 AM Subject: RE: Pagination CFC: How to pass search parameters? >I thought about that, but I usually integrate the search parameter form > into the results page. In this case, the user would intuitively select > an option from, say a dropdown to select a location, then click the > a pagination link. > > The only way it would work would be to separate my search parameter form > from the results page, which I'd like to avoid. > > However, I'm keeping that as an option if the links should fail. > > As I think about it, I would probably still have to separate my search > parameter form from the search results whichever approach I take. > > Perhaps I can utilize some javascript to grab the form variables upon > change and then either use form variables or URL variables. > > Thoughts? > > Rick > >> -Original Message- >> From: Josh Nathanson [mailto:[EMAIL PROTECTED] >> Sent: Monday, April 14, 2008 12:25 PM >> To: CF-Talk >> Subject: Re: Pagination CFC: How to pass search parameters? >> >> Rick, >> >> Why not create a session variable to hold the search parameters? >> >> Then if the form is re-submitted, i.e. the search parameters are changed, >> you can re-assign the new form values to the session variables. >> >> Then you would reference the session variables rather than the form >> variables in your query. >> >> This way you don't have to mess with the paging links' url params at all. >> >> -- Josh >> >> > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303342 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pagination CFC: How to pass search parameters?
What I've done is loop over all the search form fields (that have been param'ed) and create a url string variable that gets used by links. One thing that simplified it was that I was using fusebox and all the form and url variables end up in the attributes scope. On Mon, Apr 14, 2008 at 2:05 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > I thought about that, but I usually integrate the search parameter form > into the results page. In this case, the user would intuitively select > an option from, say a dropdown to select a location, then click the > a pagination link. > > The only way it would work would be to separate my search parameter form > from the results page, which I'd like to avoid. > > However, I'm keeping that as an option if the links should fail. > > As I think about it, I would probably still have to separate my search > parameter form from the search results whichever approach I take. > > Perhaps I can utilize some javascript to grab the form variables upon > change and then either use form variables or URL variables. > > Thoughts? > > Rick > > > -Original Message- > > From: Josh Nathanson [mailto:[EMAIL PROTECTED] > > Sent: Monday, April 14, 2008 12:25 PM > > To: CF-Talk > > Subject: Re: Pagination CFC: How to pass search parameters? > > > > Rick, > > > > Why not create a session variable to hold the search parameters? > > > > Then if the form is re-submitted, i.e. the search parameters are > changed, > > you can re-assign the new form values to the session variables. > > > > Then you would reference the session variables rather than the form > > variables in your query. > > > > This way you don't have to mess with the paging links' url params at > all. > > > > -- Josh > > > > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303337 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Pagination CFC: How to pass search parameters?
I thought about that, but I usually integrate the search parameter form into the results page. In this case, the user would intuitively select an option from, say a dropdown to select a location, then click the a pagination link. The only way it would work would be to separate my search parameter form from the results page, which I'd like to avoid. However, I'm keeping that as an option if the links should fail. As I think about it, I would probably still have to separate my search parameter form from the search results whichever approach I take. Perhaps I can utilize some javascript to grab the form variables upon change and then either use form variables or URL variables. Thoughts? Rick > -Original Message- > From: Josh Nathanson [mailto:[EMAIL PROTECTED] > Sent: Monday, April 14, 2008 12:25 PM > To: CF-Talk > Subject: Re: Pagination CFC: How to pass search parameters? > > Rick, > > Why not create a session variable to hold the search parameters? > > Then if the form is re-submitted, i.e. the search parameters are changed, > you can re-assign the new form values to the session variables. > > Then you would reference the session variables rather than the form > variables in your query. > > This way you don't have to mess with the paging links' url params at all. > > -- Josh > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303334 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pagination CFC: How to pass search parameters?
Rick, Why not create a session variable to hold the search parameters? Then if the form is re-submitted, i.e. the search parameters are changed, you can re-assign the new form values to the session variables. Then you would reference the session variables rather than the form variables in your query. This way you don't have to mess with the paging links' url params at all. -- Josh - Original Message - From: "Rick Faircloth" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Monday, April 14, 2008 8:59 AM Subject: RE: Pagination CFC: How to pass search parameters? > Thanks for the feedback, Nathan... > > I'll check into adding the URL params. > > Hey, if I add the request to riaforge, any chance the solution > might be integrated in the next 24 hours? jk :o) > > Rick > >> -Original Message- >> From: Nathan Strutz [mailto:[EMAIL PROTECTED] >> Sent: Monday, April 14, 2008 11:15 AM >> To: CF-Talk >> Subject: Re: Pagination CFC: How to pass search parameters? >> >> Rick, >> >> I think Sonny's got it right. Pagination.cfc doesn't post anything, but >> if >> you can move all your form variables to your URL, something like: >> >> >> >> Then you may have to modify your app to work with URL instead of form >> vars. >> >> The alternate way to do it is to make a custom pagination cfc to extend >> my >> Pagination.cfc and override some of the methods in order to get the HTML >> output the way you want. This is discussed a little bit here: >> >> http://www.dopefly.com/projects/pagination/pagination_cfc_documentation.cfm#Section6 >> >> I guess you would need to override renderHTML(), maybe even just >> "decorate" >> it - that is, call super.renderHTML(), run some regEx's on what's >> returned >> and return that. >> >> The 3rd way to do it is to submit a feature request to the riaforge site >> and >> wait for it. :) >> >> > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303325 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Pagination CFC: How to pass search parameters?
Thanks for the feedback, Nathan... I'll check into adding the URL params. Hey, if I add the request to riaforge, any chance the solution might be integrated in the next 24 hours? jk :o) Rick > -Original Message- > From: Nathan Strutz [mailto:[EMAIL PROTECTED] > Sent: Monday, April 14, 2008 11:15 AM > To: CF-Talk > Subject: Re: Pagination CFC: How to pass search parameters? > > Rick, > > I think Sonny's got it right. Pagination.cfc doesn't post anything, but if > you can move all your form variables to your URL, something like: > > > > Then you may have to modify your app to work with URL instead of form vars. > > The alternate way to do it is to make a custom pagination cfc to extend my > Pagination.cfc and override some of the methods in order to get the HTML > output the way you want. This is discussed a little bit here: > > http://www.dopefly.com/projects/pagination/pagination_cfc_documentation.cfm#Section6 > > I guess you would need to override renderHTML(), maybe even just "decorate" > it - that is, call super.renderHTML(), run some regEx's on what's returned > and return that. > > The 3rd way to do it is to submit a feature request to the riaforge site and > wait for it. :) > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303320 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pagination CFC: How to pass search parameters?
Rick, I think Sonny's got it right. Pagination.cfc doesn't post anything, but if you can move all your form variables to your URL, something like: Then you may have to modify your app to work with URL instead of form vars. The alternate way to do it is to make a custom pagination cfc to extend my Pagination.cfc and override some of the methods in order to get the HTML output the way you want. This is discussed a little bit here: http://www.dopefly.com/projects/pagination/pagination_cfc_documentation.cfm#Section6 I guess you would need to override renderHTML(), maybe even just "decorate" it - that is, call super.renderHTML(), run some regEx's on what's returned and return that. The 3rd way to do it is to submit a feature request to the riaforge site and wait for it. :) On Mon, Apr 14, 2008 at 7:00 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > It is as far as I'm concerned, but I'm not sure about the > impact on the Pagination.cfc. And I'd have to check with Nathan > on that and about how to do it. > > The Pagination.cfc creates its own HTML that is inserted into the > calling page. > > Perhaps Nathan will notice this message. If not, I'll email him, too. > > I can have a look and check out that route for the params. > > Thanks, Sonny! > > Rick > > > -Original Message- > > From: Sonny Savage [mailto:[EMAIL PROTECTED] > > Sent: Monday, April 14, 2008 9:05 AM > > To: CF-Talk > > Subject: Re: Pagination CFC: How to pass search parameters? > > > > Is it possible to append a string to the URL with the search params? > > > > On Sun, Apr 13, 2008 at 11:22 PM, Rick Faircloth < > [EMAIL PROTECTED]> > > wrote: > > > > > Hi, all (and Nathan in particular)... > > > > > > I've moved from using a typical Previous / Next > > > pagination to using Nathan Strutz' Pagination.cfc > > > > > > > http://www.dopefly.com/projects/pagination/pagination_cfc_documentation.cfm > > > > > > It works very well! > > > > > > However, I've realized a problem, not with the cfc, but > > > with not using my Previous / Next images, which were actually > > > form submit buttons and would submit my form fields both visible > > > and hidden when they were clicked. > > > > > > Now that I'm using the Pagination.cfc, I have the text links that are > > > created, but no buttons to use for submitted the form search parameter > > > fields. > > > > > > How can I pass search parameters when the links of the pagination are > > > clicked? > > > > > > I'm sure I'm just not seeing something that's a simple solution. > > > > > > Suggestions, anyone? > > > > > > Thanks, > > > > > > Rick > > > > > > > > > > > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303311 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Pagination CFC: How to pass search parameters?
It is as far as I'm concerned, but I'm not sure about the impact on the Pagination.cfc. And I'd have to check with Nathan on that and about how to do it. The Pagination.cfc creates its own HTML that is inserted into the calling page. Perhaps Nathan will notice this message. If not, I'll email him, too. I can have a look and check out that route for the params. Thanks, Sonny! Rick > -Original Message- > From: Sonny Savage [mailto:[EMAIL PROTECTED] > Sent: Monday, April 14, 2008 9:05 AM > To: CF-Talk > Subject: Re: Pagination CFC: How to pass search parameters? > > Is it possible to append a string to the URL with the search params? > > On Sun, Apr 13, 2008 at 11:22 PM, Rick Faircloth <[EMAIL PROTECTED]> > wrote: > > > Hi, all (and Nathan in particular)... > > > > I've moved from using a typical Previous / Next > > pagination to using Nathan Strutz' Pagination.cfc > > > > http://www.dopefly.com/projects/pagination/pagination_cfc_documentation.cfm > > > > It works very well! > > > > However, I've realized a problem, not with the cfc, but > > with not using my Previous / Next images, which were actually > > form submit buttons and would submit my form fields both visible > > and hidden when they were clicked. > > > > Now that I'm using the Pagination.cfc, I have the text links that are > > created, but no buttons to use for submitted the form search parameter > > fields. > > > > How can I pass search parameters when the links of the pagination are > > clicked? > > > > I'm sure I'm just not seeing something that's a simple solution. > > > > Suggestions, anyone? > > > > Thanks, > > > > Rick > > > > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303296 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Pagination CFC: How to pass search parameters?
Is it possible to append a string to the URL with the search params? On Sun, Apr 13, 2008 at 11:22 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > Hi, all (and Nathan in particular)... > > I've moved from using a typical Previous / Next > pagination to using Nathan Strutz' Pagination.cfc > > http://www.dopefly.com/projects/pagination/pagination_cfc_documentation.cfm > > It works very well! > > However, I've realized a problem, not with the cfc, but > with not using my Previous / Next images, which were actually > form submit buttons and would submit my form fields both visible > and hidden when they were clicked. > > Now that I'm using the Pagination.cfc, I have the text links that are > created, but no buttons to use for submitted the form search parameter > fields. > > How can I pass search parameters when the links of the pagination are > clicked? > > I'm sure I'm just not seeing something that's a simple solution. > > Suggestions, anyone? > > Thanks, > > Rick > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303281 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4