Ajax and the MP

For bug reports and fixes, installation issues, and new ideas for technical features.

Moderator: SEOW Developers

Post Reply
IV/JG7_4Shades
Posts: 2202
Joined: Mon 08 Jan 2007 11:10 pm
Location: Perth, Western Australia

Ajax and the MP

Post by IV/JG7_4Shades »

Some of you would know that the MP was constructed using a very old client-server model that meant that every database update (e.g. from committing new movement orders, changing unit orientations etc etc) was accompanied by a new page loading in the browser, and then the need to RELOAD THE MAP, which could be very slow.

A current solution to this problem is to use Ajax to perform database updates asynchronously whilst keeping the map view loaded. Many web sites do this, and the MP already does this in a limited sense (the radar tool is completely Ajax-driven).

Well, after many people have prompted for seamless Ajax-driven functions in the MP, I have just released the first minor implementation of Ajax in the MP proper, under v6.0.51.

In this update, the Logistics::Pilot Reports::Create New tool is fully Ajax-driven. No other features are Ajax-driven yet. Using this new code set you can create Pilot Reports without reloading the map page.

Other features will become Ajax-driven, as I get time to make the required changes.

Cheers,
4S
IV/JG7_4Shades
SEOW Developer

Image
PA-Dore
Posts: 469
Joined: Thu 01 Nov 2007 8:58 am
Location: Savoie-France
Contact:

Post by PA-Dore »

great feature, thanks ^^

Just one thing: In 2013 SEOW is 10 years old, isn't it? Happy birthday!
Classic_EAF19
Posts: 55
Joined: Wed 04 Nov 2009 3:00 pm

Post by Classic_EAF19 »

Thankyou for your continued support, development and creation of SEOW :)
102nd-HR-cmirko
Posts: 179
Joined: Tue 16 Jan 2007 8:29 am
Contact:

Post by 102nd-HR-cmirko »

cheers mates!
thanks 4Shades!
IV/JG7_4Shades
Posts: 2202
Joined: Mon 08 Jan 2007 11:10 pm
Location: Perth, Western Australia

Post by IV/JG7_4Shades »

And, everybody, please ensure you have the following line in your MP-Configuration.php file:

Code: Select all

$USE_AJAX = true;			//Enable use of Ajax updates for PHP forms.
Cheers,
4S
IV/JG7_4Shades
SEOW Developer

Image
=gRiJ=Petr
Posts: 116
Joined: Tue 28 Jul 2009 6:39 am

Post by =gRiJ=Petr »

GREAT feature!
Post Reply