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
Ajax and the MP
Moderator: SEOW Developers
-
- Posts: 2211
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
Ajax and the MP
IV/JG7_4Shades
SEOW Developer
SEOW Developer
-
- Posts: 55
- Joined: Wed 04 Nov 2009 3:00 pm
-
- Posts: 179
- Joined: Tue 16 Jan 2007 8:29 am
- Contact:
-
- Posts: 2211
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
And, everybody, please ensure you have the following line in your MP-Configuration.php file:
Cheers,
4S
Code: Select all
$USE_AJAX = true; //Enable use of Ajax updates for PHP forms.
4S
IV/JG7_4Shades
SEOW Developer
SEOW Developer