rwaldron / jquery-hive

jQuery Plugin for creating and managing web workers across implementations. Includes Hive.Pollen.js - the thread-safe utility library for connecting worker threads to the Hive.
http://weblog.bocoup.com/javascript-web-workers-from-basics-to-jquery-hive-part-i
203 stars 24 forks source link

jQuery ajax call slightly different #5

Open ericjang opened 13 years ago

ericjang commented 13 years ago

JQuery ajax function and pollen ajax are not identical, I can't seem to get pollen's ajax function to work with a certain library. Anyway, jQuery's ajax function is JQuery.ajax() and specifies 'type':'post' or 'type:'get', whereas pollen's ajax function needs p.ajax.post() or p.ajax.get() in order to work.

ericjang commented 13 years ago

Also, Pollen ajax returns a JSON object containing the data as a JSON object AND as a string so parsing the callback parameter doesn't work (that was what was causing problems in my project).

JQuery only returns the string, expecting the user to parse it themselves.

http://stackoverflow.com/questions/7327894/chemdoodle-ajax-incompatibility-with-pollen-js/7341868#7341868