Ticket #159 (new enhancement)
Default 'type' for ajax set to 'GET'
Reported by: | admorphit | Owned by: | jf.hovinne |
---|---|---|---|
Priority: | trivial | Milestone: | 1.x |
Component: | editor | Version: | trunk |
Keywords: | ajax type get | Cc: |
Description
I've been trying to implement WYMeditor in a project which already implements JQuery. I use the $.ajaxSetup method to setup my ajax requests with type attribute set to POST as default. Initially, I had trouble getting WYMeditor to work because ajax requests by WYMeditor were all POSTing to IIS which were then rejected. I fixed the problem by setting type:'GET' on all ajax requests made by WYMeditor.
I'm just suggesting maybe the following lines should be changed in the next release to explicitly use the GET request?
Line 1100: eval(jQuery.ajax({type:'GET', url:this._options.langPath
Line 1307: CssParser.parse(jQuery.ajax({type:'GET', url: this._options.stylesheet,async:false}).responseText);
Line 1399: eval(jQuery.ajax({type:'GET', url:this._options.skinPath
This is somewhat of an edge case - chances are that we'll step on someone else's toes by changing this.
Leaving the ticket open until a decision is made.