loadingoverlay.min.js cause error in Chrome-Browser.

More
7 years 1 month ago #37143 by rigoros
Hi,
these two lines in \Media\com_easysocial\Apps\User\streetguess\ streetguess.php cause an error by chrome (seems load twice):
$doc->addScript($juri.'components/com_streetguess/assets/js/loadingoverlay.min.js');
$l = 'function stguLoader(){jQuery.LoadingOverlay("show", {zIndex:10000})}';

I delete lines and error is away. For what this script is loaded in app? Is òverlay.min.js important for?

Kind regards

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago - 7 years 1 month ago #37144 by nordmograph
Hi

Some maps can be longer than others to load.
This is related to the area of the blue layer a maa has.
The more blue layer area a map has, the faster it will load.

The script you mention is responsible to display a loader animated gif before the map loads. Especially usefull if the map is long to load.
I inspected the code and it seems the
line 31
Code:
$doc->addScript($juri.'components/com_streetguess/assets/js/loadingoverlay.min.js');
can be removed.

I would recommend you leave
Code:
$l = 'function stguLoader(){jQuery.LoadingOverlay("show", {zIndex:10000})}';

What is the console error message you get ?

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.
Last edit: 7 years 1 month ago by nordmograph.

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago - 7 years 3 weeks ago #37151 by rigoros
Hi,
message is:
Error in file:components/com_streetguess/assets/js/loadingoverlay.min.js; Error:jQuery is not defined

Think it is because loading 2.nd time anywhere.
Now left this line:
$l = 'function stguLoader(){jQuery.LoadingOverlay("show", {zIndex:10000})}';
and everything works fine.

THX
Last edit: 7 years 3 weeks ago by rigoros.

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #37152 by nordmograph
Yes but do you still get the loader to show before opening a map page from the EasySOcial page?
I guess not and this is required.

The error message you mention, means that the page doesn't load jQuery.
Can't you enable this in your Joomla template ?

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago - 7 years 1 month ago #37153 by rigoros
Yes you are right. Thought this get loaded by template (so is written in doc). Put it in manually and all is fine now.

THX!
Last edit: 7 years 1 month ago by rigoros.

Please Log in or Create an account to join the conversation.

Time to create page: 0.316 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.