Results 1 to 2 of 2

Thread: Dynamic Ajax Content - how to POST

  1. #1
    Join Date
    Nov 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Ajax Content - how to POST

    1) Script Title:
    Dynamic Ajax Content
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...jaxcontent.htm
    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:
    javascript:ajaxpage('note/?note_nazev='+encodeURI(document.getElementById('note_form').note_nazev.value)...
    Any idea? Thanks

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    This script currently doesn't support POST requests unfortunately. The key line that pertains to how the request is sent in the script is:

    Code:
    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, under "How to make Post requests" for some helpful info.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •