[Plugin]AJAX POSTer

Post your completed addons to share with the community

Post » Mon Dec 12, 2011 5:30 am

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)Ashley2013-05-02 14:11:32
B
14
S
3
G
1
Posts: 25
Reputation: 1,289

Post » Mon Dec 12, 2011 6:40 am

Hello @jessejoh.
Welcome on the forums and glad to see your excitement. It appears to happen a lot on people who join this community.

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.Kyatric2011-12-12 06:40:52
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Dec 12, 2011 8:51 am

[QUOTE=jessejoh] 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? [/QUOTE]

Nice plugin jessejoh. 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. I would even be willing to pay for a time saver like that although I do hope you keep it free. Anyway I hope you do give it a try it would make Construct 2 game development even more user friendly.
B
50
S
11
G
8
Posts: 479
Reputation: 9,911

Post » Mon Dec 12, 2011 5:23 pm

Perfect, thanks for your response :)

We'll figure some stuff out for the web devs.
B
14
S
3
G
1
Posts: 25
Reputation: 1,289

Post » Mon Dec 12, 2011 5:42 pm

What about AJAX GET-ter? File reading is highly requested, but I don't think anyone has managed to get it working.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Mon Dec 12, 2011 6:25 pm

@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.Kyatric2011-12-12 18:25:52
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Dec 12, 2011 10:00 pm

You're exactly correct :)
B
14
S
3
G
1
Posts: 25
Reputation: 1,289

Post » Thu Jan 05, 2012 12:21 pm

@jessejoh, this is very cool! Thanks for this. This will be very handy.
B
18
S
8
G
7
Posts: 120
Reputation: 5,630

Post » Tue Jan 10, 2012 10:58 pm

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.
B
4
G
1
Posts: 5
Reputation: 1,085

Post » Wed Jan 11, 2012 12:17 am

Broken link?
B
20
S
5
G
7
Posts: 151
Reputation: 4,830

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest