Forum closed. New forum available at http://community.wymeditor.org/

Default 'type' set to 'GET'.

Discuss features, code, contributions, ideas, suggestions, ...
For bugs, patches and feature requests, please post on the Trac:
http://trac.wymeditor.org/

Default 'type' set to 'GET'.

Postby admorphit on Tue Mar 03, 2009 7:26 am

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:
Code: Select all
eval(jQuery.ajax({type:'GET', url:this._options.langPath

Line 1307:
Code: Select all
CssParser.parse(jQuery.ajax({type:'GET', url: this._options.stylesheet,async:false}).responseText);

Line 1399:
Code: Select all
eval(jQuery.ajax({type:'GET', url:this._options.skinPath
admorphit
 
Posts: 4
Joined: Sat Aug 30, 2008 2:02 am

Re: Default 'type' set to 'GET'.

Postby mr_lundis on Tue Mar 03, 2009 11:36 am

I've seen your trac ticket, and we'll fix this to the next release as it's quite easy to do.
Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!
mr_lundis
 
Posts: 335
Joined: Sun Dec 02, 2007 10:59 am
Location: Sweden


Return to Developers

Who is online

Users browsing this forum: No registered users and 6 guests