Posted on: 10/16/2015 1:22:32 PM | Views : 1248

Hi all,
I am currently building a site, in which I have a slideshow. I do not want the slideshow to show on small screens.
I have a web handler and a JavaScript that is supposed to get the browser window width and height. It seems to work on local development environment but when uploaded to the web server(hosted by 1and 1 in case that makes any difference) it is not getting values for the heght and width.
The js:

$(window).resize(function () { SetWidthHeight(); }); function SetWidthHeight() { var height = $(window).height(); var width = $(window).width(); $.ajax({ url: "windowSize.ashx", data: { 'Height': height, 'Width': width }, contentType: "application/json; charset=utf-8", dataType: "json" }).done(function (data) { if (data.isFirst) { ...

Go to the complete details ...