I’ve got a html area on my Servoy form (webclient solution) with the dataprovider set to the following string of code.
I expect the text field to be displayed on the page having a mask ‘dd/mm/yyyy’.
Instead, the mask ‘99/99/9999’ is displayed in the field and I cannot type in it.
If I hit F5 to refresh the page, the mask turns on and acts properly.
Below is the source of the page after the form is shown. The extract below is the same before and after refreshing the page, so not sure what else influences it.
Hi,
you can try to put libraries in the root directory of the webserver and link it direclty from there insted of from the url.
I think that servoy doesn’t load the library because the page is ready on the application server and when is pushed on client the browser not ask for the libraries.
You have to put libraries under
the thing is what you seem to include is already everything that is provided by servoy
For example of you would give the form a textfield with a mask we already include also the jquery.maskedinput as far as i know
so i would say just don’t include it…
But it could be a problem that some or all of the js are not really there yet until you add the textfield with mask
Maybe webclient utils plugin can help you a bit, that one has pointers to our libs
Web Client Utils has a constant (SERVOY_WEB_RESOURCES.JQUERY), to include Servoy lib, but Developer marks it as deprecated (I create this issue in Servoy Forge, with no replies )
poyel:
Hi,
you can try to put libraries in the root directory of the webserver and link it direclty from there insted of from the url.
I think that servoy doesn’t load the library because the page is ready on the application server and when is pushed on client the browser not ask for the libraries.
You have to put libraries under
All right, I moved the libs to the application server and replaced the source links like you advised.
I tried to exclude all sources to avoid double inclusion, thus only one reference was left to jquery.maskedinput.js (doesn’t work without it at all).
Still, the same problem is there.
If I call location.reload() via the WebClientUtils, then my page is loaded fine and the mask works, however it flickers while reloading, so it’s not really an acceptable solution.
\
\
\
\
'
> ```
>
>
>
> This this is how you trigger the client-side function:
>
> ```
> plugins.WebClientUtils.executeClientSideJS('maskApply()')
> ```
You are a magician.
Thanks mate, the above is just slightly different from what I had but it made everything work like a charm. Phew, one down