Just a word of advice from those that have done it, have you seen any major side effects after disabling the AjaxUI? Iām afraid it will cause a lot of problems.
Unfortunately any sort of complex modification of the very top navigation header becomes very hard with this thing enabled, so Iām thinking of just disabling it altogether
I wouldnāt recommend disabling it, itās been there for so long, and nobody is really testing SuiteCRM without AJAX⦠you wander off into uncharted territory.
I admit I am not very knowledgeable in this, but I believe you donāt need to turn off AJAX in order to use non-AJAX links. They can co-exist. So if you need custom stuff and donāt want to use AJAX, you just add non-AJAX links there, right?
Problem is that with ajaxui enabled I canāt customize the header properly. It doesnāt read cookies and $_REQUEST in _headerModuleList.tpl and unfortunately itās stalling the whole project, probably due to my lack of knowledge of JS, so I have no choice but to sail into the uncharted territory
What exactly are you trying to do in _headerModuleList.tpl?
If you work on the file that includes it you will probably have a better chance. That one is just a tpl, a Template. There is another PHP file loading it and constructing a page from it. Thatās probably the best place to add JS stuff.
Thank you. More specifically I try to read the $_COOKIE that is set and also the value of $_REQUEST, itās being invoked by the displayheader() function in sugarView class, but the problem is that it always displays the module as āhomeā no matter what page weāre on and Iām not able to read the $_COOKIE values. Iām sure itās simple stuff for anyone that knows JS, Iām just very bad at it.
Guess Iāll be the guinea pig and if ever anything goes terribly wrong with AjaxUI disabled, Iāll report it here
so far so good, btw if anyoneās wondering where to disable it completely (donāt do this if youāre trying to disable it for specific modules), then you would do it inside the config.php file
and set the following to true like so:
ādisableAjaxUIā => true,
I personally donāt like the AJAX functionality. It feels like an SPA but it is still making full page requests in the background, it pulls the content area out of the response and updates the page with it.
SuiteCRM works in the exact same way with it turned off, and a few custom hand written modules Iāve come across donāt work with it switched on.
Iām currently looking for a way to programmically ban a module from using AJAX as it doesnāt appear in either the enabled or disabled list in the admin settings.
Iāve found out how to do this after looking through the configureajax ui view.
in the config.php (or config_override.php)
look for the key āaddAjaxBannedModulesā.
this will be a list of modules that will show up in the disabled modules list.
you can add your own entries here.
It may even be better to do it this way, as I have over 200 entries for SecurityGroups alone
Iāve never - ever - disabled Ajax in order to get anything working in SuiteCRM.
Sometimes an error message comes up:
There was an error processing your request, please try again at a later time./ If this error persists, please have your administrator disable Ajax for this module.
⦠and, for me, this is a really unfortunate message as it is misleading, and Iāve never seen that the underlying problem was really something with the Ajax request. Itās always something else that is breaking the web request, itās just that the web request happened to take the form of an Ajax request.
I am not saying that other peopleās experiences arenāt real, I accept that if you had real problems and these problems went away by disabling Ajax, that might be a good option.
But I would always advise to try and look a bit deeper. If you understand what is going on with the view getting built, and what each request is doing, and making sure the correct parts of the view are getting returned, you should strive to keep Ajax enabled, it is saving you time and web bandwidth. This is surely relevant, at least if your installation is heavily used, with many users, etc.