I would like to include some results from client side JavaScript (csjs) into my server side JavaScript (ssjs) in XPages.
e.g. on csjs i collect the screenwidth of a device via window.screen.availWidth
I would like to use the result further in my ssjs. How can I do this?
You need to send the screen width and height from you client script to you server script.
using QueryString (location.href=...../?open&width=xxxx&height=yyyyy), setting a field on your xpage and to a partialrefresh or using extlib remote service.
There are probably several more ways of doing it ;-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With