Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
using POST requests
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
eagle1  
View profile  
 More options Aug 16 2009, 3:08 pm
From: eagle1 <apori...@gmail.com>
Date: Sun, 16 Aug 2009 12:08:26 -0700 (PDT)
Local: Sun, Aug 16 2009 3:08 pm
Subject: using POST requests
Hi,

I was wondering how to get will_paginate to work when the request is
not a GET but a POST? In an advanced search form, using a GET
sometimes is not feasible since too many parameters are passed so I
need to use POST. But this breaks the pagination.

Any help is greatly appreciated. Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mislav Marohnić  
View profile  
 More options Aug 18 2009, 9:44 am
From: Mislav Marohnić <mislav.maroh...@gmail.com>
Date: Tue, 18 Aug 2009 15:44:42 +0200
Local: Tues, Aug 18 2009 9:44 am
Subject: Re: using POST requests

On Sun, Aug 16, 2009 at 21:08, eagle1 <apori...@gmail.com> wrote:

> I was wondering how to get will_paginate to work when the request is
> not a GET but a POST? In an advanced search form, using a GET
> sometimes is not feasible since too many parameters are passed so I
> need to use POST.

If you do a Google or Google Maps search, a large number of parameters is
passed in the URL anyway—but it still works as long as the URL is not the
size which browsers can't handle (I don't know which is that size). These
URLs are better because they are bookmarkable. People want to bookmark or
share search results, *especially* if they're from advanced search forms.

Now if you really want to use POST, the only correct way to do pagination in
HTML would be to render a form inside which each pagination link is a submit
button with the attribute name="page" set to page number as value. This form
should also preserve existing search parameters, therefore it should have a
hidden field for each of the current parameters. Clicking on the submit
button will resubmit the advanced search with the page parameter changed.

Sounds fun?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »