page loading too fast for HELPER to do it's work?

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1167
Joined: 2019-05-21 22:42
Location: Germany
Contact:

page loading too fast for HELPER to do it's work?

Post by onoehring » 2020-11-20 11:20

Hi,

I have encountered something very strange.
I am using AG Helper to make some fields readonly (I do not remember is this is an official feature).
--- Local ---
Locally (uniformserver - like xampp - with apache and mysql) page load is "slow" (that's ok and expected) - 20 seconds:
local.gif
local.gif (28.03 KiB) Viewed 1260 times
But: Everything works. The fields are correctly handled.
The console log of localhost looks like this:
local_con.png
local_con.png (2.18 KiB) Viewed 1260 times
--- Web ---
When I transfer the exact same files to a webserver (I tried two completely different hosters i.e. 1and1 and webgo.de) it's not working like this anymore!
Yes, the page loads faster now ... lightning fast to be exact, but the fields are not changed to readonly. Note: Only lookup fields (and lookup readonly) seem to be the problem.
On these servers it looks like this:
web.gif
web.gif (31.32 KiB) Viewed 1260 times
And there are errors showing up in the console log:
web_con.png
web_con.png (10.46 KiB) Viewed 1260 times

I notice the hint, that I should initialize AG helper in a different way. I will do so, but I do not think this will help.

I suspect, the problem is the load time of the page. AG Helper tries to put it's hand on the fields, but the page has not been loaded yet.
But
a) why does this happen only when the page is loading fast
b) how can I fix the problem (if I can) or is it
c) a bug in AG Helper?

Olaf

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1167
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: page loading too fast for HELPER to do it's work?

Post by onoehring » 2020-11-20 11:43

Hi,

it get's stranger: When I reload the page (on the "live"/Web-site) - sometimes (! not every reload!) it works - sometimes not.

Olaf

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1817
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: page loading too fast for HELPER to do it's work?

Post by jsetzer » 2020-11-20 12:05

onoehring wrote:
2020-11-20 11:20
... I do not remember is this is an official feature) ...
Hi Olaf,

no, it is not an official feature and not supported, sorry!

It should work with normal <input /> tags but I cannot guarantee for all possible datatypes and subtypes, nor for combined control-sets (like date-picker select boxes) or complex types like youtube-embeds or google-map embeds. That's definitely out of scope.

You can use it "as is" if it works for you.

Jan
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1167
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: page loading too fast for HELPER to do it's work?

Post by onoehring » 2020-11-20 16:29

Hi Jan,

sure thing. I was so much surprised to see, that it does work - sometimes and the again not. Very, very strange and I do not have any idea (expect the "page was loaded to fast") why this should happen.

Olaf

Post Reply