0 Favourites

Add a new "Request Method" parameter to ajax

  • Problem Description

    to communicate with my Apache CouchDB server from construct 2 i changed: :

    C:\Program Files\Construct 2\exporters\html5\plugins\ajax\runtime.js line 210 to:

    			if (method_ === "PUT" && data_)[/code:738pqry0]
    
    and 
    
    C:\Program Files\Construct 2\exporters\html5\plugins\ajax\runtime.js line 278 to:
    [code:738pqry0]		this.doRequest(tag_, url_, "PUT", data_);[/code:738pqry0]
    
    [b]Steps to Reproduce Bug[/b]
    [ul]
        [li] Start Apache CouchDB
        [/li][li] change configuration to enable cross-origin resource sharing: 
    
    [attachment=1:738pqry0][/attachment:738pqry0]
        [/li][li] Open the attached project and try to create a new db.[/li][/ul]
    [attachment=0:738pqry0][/attachment:738pqry0]
        
    [b]Observed Result[/b]
    The Ajax object headers are sent with Request Method = POST and no way to change it to PUT , DELETE , HEAD or COPY....
        
    [b]Expected Result[/b]
    allow header Request Method customization in Post to Url Action.
        
    [b]Affected Browsers[/b]
    [ul]
        [li] Chrome: (YES)
        [/li][li] FireFox: (YES)
        [/li][li] Internet Explorer: (YES)[/li][/ul]
        
    [b]Operating System and Service Pack[/b]
    Microsoft Windows 7 SP 1 x64 French
        
    [b]Construct 2 Version ID[/b]
    Stable Release 168 (64-bit) Free edition
  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • More of a feature request than a bug report, but added for the next build.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)