View Full Version : Dynamic Ajax Content - how to POST

11-24-2006, 05:40 PM
1) Script Title:
Dynamic Ajax Content
2) Script URL (on DD):
3) Describe problem:
In some pages I have forms which are supposed to be sent by POST. How to do that? GET I can send like this:
Any idea? Thanks ;)

11-24-2006, 09:05 PM
This script currently doesn't support POST requests unfortunately. The key line that pertains to how the request is sent in the script is:

page_request.open('GET', url+bustcacheparameter, true)

You can try manually changing it to POST, though there's more to it than just that. You'll also need to add some code to gather up all the parameters of the POST request you wish sent to the script. Take a look at Basic Ajax Routine (http://www.dynamicdrive.com/dynamicindex17/ajaxroutine.htm), under "How to make Post requests" for some helpful info.