[Plugin]AJAX POSTer

0 favourites
  • Well, I had an idea a few weeks ago, and it's prompted me to further investigate the new "live" web that's just around the corner. I've decided to invest in HTML5 for the future development, and remembered you guys with the changeover from CS classic.

    Anyways, after purchasing the business license today, I must say I'm already very excited with the ease of plugin development, and the power that the software provides.

    I'd like to start by releasing my first of hopefully many plugins aimed at Web Application developers (but also useful for Game Developers).

    It is a modification of the original AJAX plugin, that allows you to supply POST data to a url. I created this because it appears there is no existing plugin for this.

    Edit by Ashley: this third party plugin's features are now built in to the official AJAX object. You should not use the third party plugin any more.

    Download AJAX POSTer

    My next plugin will likely be for setting and retrieving cookies.

    Just a quick question: how many of you are using PHP/MySQL? Would it be worthwhile developing plugin + PHP combos that can act together? What if we had something such as a MySQL plugin that only needed a .php file to exist with your construct app on the live server? Would these pre-programmed solutions make sense for you?

    In either case -- count me in on exciting development. There is however one thing that concerns me, and that is the lack of a simplified pre-HTML 5 run time. I have a question relating to this - is there any way to get the basic runtime to work with preHTML? It doesnt matter to me if things like sprites etc. do not work, but does construct require a canvas in order for its basic engine to run?

    If it could run without the need for the fancy HTML5 stuff, it could be very very useful immediately (and I would be willing to create many many plugins right off the bat)

  • Hello

    Welcome on the forums and glad to see your excitement. It appears to happen a lot on people who join this community.<img src="smileys/smiley1.gif" border="0" align="middle">

    Thank you for this plugin, I haven't looked in depth yet, but it sure was requested and will be used/useful.

    A plugin for cookies is another good idea.

    For the question about plugin + PHP combos.

    Stuff is, C2 allows for pro developpers as well as amateurs to come together and build applications. The complexity of said applications of course depends on the "level" of the user. Newcomers have some hard time with AJAX and online interactions (webservers, etc...).

    This was community lightly-documented with examples in the how do I FAQ in the section AJAX and a tutorial.

    Pre-programmed solution makes sense especially aimed for beginners/non web-coding savy persons. "Pros" could use it also or use it as reference to build upon. More documentation on the subject probably would help a lot too.

    For the preHTML question, C2 first purpose/general idea is to allow to develop HTML5 games. So yes, exported application only work in the canvas.

    preHTML stuff is let to the discretion of the user since all C2 provides in the end is a "packed" javascript that you execute in a html page.

    C2 has control on the javascript, not on the containing page itself.

    Nevertheless, you could consider making a plugin that would modify the DOM (jquery allows for it). Such a plugin would be to recommand to experienced users first hand, users that know what they are doing and where their application might get embedded and so what type of DOM elements might be in said page.

    I don't know if it really answer your question, I'm not sure what you mean/have in mind exactly.

    Nevertheless there is room for a lot of things.

    I'll finish with directing you to the blog article about C2's architecture, a must read in my eyes.

    Once again welcome in the community, and congrats on your first plugin, may many more to come.

  • Just a quick question: how many of you are using PHP/MySQL? Would it be worthwhile developing plugin + PHP combos that can act together? What if we had something such as a MySQL plugin that only needed a .php file to exist with your construct app on the live server? Would these pre-programmed solutions make sense for you?

    Nice plugin jessejoh. <img src="smileys/smiley1.gif" border="0" align="middle" /> Yes I am using PHP/MySQL. Iv been spending a lot of time trying to write a nice framework for a real time social game that I have been slowly working on. I kind of put it on hold though I am waiting on some things like families to be implemented into Construct 2 first because I'm finding that what I thought would be a small easy project keeps getting larger, and more complex as I go.

    I personally would warmly welcome plugin + PHP combos. <img src="smileys/smiley4.gif" border="0" align="middle" /> I would even be willing to pay for a time saver like that although I do hope you keep it free. <img src="smileys/smiley1.gif" border="0" align="middle" /> Anyway I hope you do give it a try it would make Construct 2 game development even more user friendly.

  • Perfect, thanks for your response :)

    We'll figure some stuff out for the web devs.

  • What about AJAX GET-ter? File reading is highly requested, but I don't think anyone has managed to get it working.

  • Mipey: the current AJAX object (the official one) is already a GET. (It does only GET type of request. Jessejoh's plugin add the option to do POST requests, more secured as they can't be reproduced by simply typing the url in a browser for example).

    If I'm not mistaken.

  • You're exactly correct :)

  • jessejoh, this is very cool! Thanks for this. This will be very handy.

  • A php/mysql plugin would be amazing! :)

    I'm trying to understand the basics of setting up a plugin for construct 2 at the moment, might make a plugin for mysql/php database for this great app.

  • Broken link?

  • Not to worry, my plugins will be back soon

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi jessejoh :)

    It seems I am too late to get the plugin now. Do you already know when the plugin will be online again? Or do you send the plugin?

    A POSTer is exactly what I need. In return I will marry you <img src="smileys/smiley36.gif" border="0" align="middle" />

  • reup please!

  • Plugin ajaxPost is no option? <img src="smileys/smiley2.gif" border="0" align="middle">

  • In the meantime I use the Call Javascript Plug-In :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)