Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WB19] Javascript function not working (1 reply)

$
0
0
Hi

Why would this JS function work on the development machine but not when the application is deployed?

function JSGetBrowserWidth()
{
// return document.body.clientWidth;
var w=window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
return w
}

button on page with Info(JSGetBrowserWidth()+" x "+JSGetBrowserHeight()) in Browser code returns the required result.

But when application is deployed nothing happens like in not even an empty dialog appearing.

Thanks in advance for any pointers.



Ericus Steyn

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>