You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "quurks (JIRA)" <ji...@apache.org> on 2014/10/18 23:40:34 UTC

[jira] [Updated] (TAP5-2404) Allow modifying AJAX requests before sending

     [ https://issues.apache.org/jira/browse/TAP5-2404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

quurks updated TAP5-2404:
-------------------------
    Description: 
I'm trying to upload files via t5/core/ajax to a component event. For this its required to modify the request before its send in t5/core/dom (processData=false, set custom headers) 

-Possible solution: Allow setting of beforeSend callback in jQuery (onCreate or onUninitialized seems to be the Prototype equivalent)-

Its not possible to set everything in beforeSend, the raw xhr request cant be modified (required to add progress listener).
To allow this its required to be able to modify the object passed to $.ajax directly, maybe via options.rawOptions which is added to the original $.ajax options object..


  was:
I'm trying to upload files via t5/core/ajax to a component event. For this its required to modify the request before its send in t5/core/dom (processData=false, set custom headers) 

Possible solution: Allow setting of beforeSend callback in jQuery (onCreate or onUninitialized seems to be the Prototype equivalent)


> Allow modifying AJAX requests before sending
> --------------------------------------------
>
>                 Key: TAP5-2404
>                 URL: https://issues.apache.org/jira/browse/TAP5-2404
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: quurks
>
> I'm trying to upload files via t5/core/ajax to a component event. For this its required to modify the request before its send in t5/core/dom (processData=false, set custom headers) 
> -Possible solution: Allow setting of beforeSend callback in jQuery (onCreate or onUninitialized seems to be the Prototype equivalent)-
> Its not possible to set everything in beforeSend, the raw xhr request cant be modified (required to add progress listener).
> To allow this its required to be able to modify the object passed to $.ajax directly, maybe via options.rawOptions which is added to the original $.ajax options object..



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)