Skip to:
Content
Pages
Categories
Search
Top
Bottom

AJAX Requests – Accept POST and GET

  • @jadedevan

    Participant

    It’d be nice to open up buddypress to allow for more extensible AJAX calls. I’ve already modified my code base to allow for both server REQUEST methods (POST and GET). I was beating my head against the wall trying to figure out why my JSON request was being ignored.

    I needed to make a JSON call across domains (from one WordPress install to another) and found myself unable to access the AJAX functions that I’ve written for my custom Buddypress plugin. I know this probably does some harm to server security and makes the data integrity a little bit more questionable.

    Also, it’d be nice to see the dev team get rid of the die(‘0’) statement in the bp-core-ajax-handler.php page. That 0 is a consistent nuisance that I have to strip out with additional and unnecessary javascript code.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @jeffsayre

    Participant

    I know this probably does some harm to server security and makes the data integrity a little bit more questionable.

    As you recognize, increasing programming flexibility at the expense of platfrom security is not the proper tradeoff. Your request for the ability of BuddyPress plugins to make cross-domain application calls is such a security risk.

    As an Open Source project, you are free to hack the core features of your copy of BuddyPress as you see fit. Just remember that if your server and data get compromised because of your hacks, we will not be able to offer any support.

    @johnjamesjacoby

    Keymaster

    JadedEvan,

    Regarding the elusive die(‘0’) in bp-core-ajax-handler.php, if you have an alternative that you feel works better or will be more future proof, drop a ticket in the Trac with a fix or a patch.

    The BP 1.0 release is the first stable, reliable, full working version of the core of BuddyPress. Right now there are a number of specific things going on behind the scenes, including security sweeps, code cleaning and beautification, bug hunting, etc…

    It is anticipated that there will be a certain amount of bugs and quirks even in the 1.0 version of BuddyPress, and the dev team is still steadily submitting patches and updating the trunk almost daily with little changes and tweaks.

    @jeffsayre

    Participant

    @JadedEvan-

    By the way, I reread my first post and it seems a little standoffish. That was not my intent at all.

    We welcome any suggests that you may have with how we can increase BP’s programming flexibility without compromising platform security.

    @johnjamesjacoby

    Keymaster

    Stand off Jeff. :D

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘AJAX Requests – Accept POST and GET’ is closed to new replies.
Skip to toolbar