PDA

View Full Version : jquery ui calendar theme not working on a PC



ianhaney
10-18-2016, 01:50 PM
Hi

I got a quick question/issue

I have integrated a calendar in a website and its using jquery ui blitzer theme and it works perfect on two computers in all browsers but for some reason the styling/theme does not seem to work on this one PC in Chrome, FF and Edge and can't work out why, I have disabled all addons/extensions in the browsers

it can't be a coding issue cause works perfect on two computers

has anyone had this issue before or anything

Thank you in advance

jscheuer1
10-18-2016, 02:23 PM
Well, this is just a guessing game really. I have seen where third party anti-virus/anti-malware sometimes could have this effect on some scripts. Also, it would appear you are indicating Windows 10 on the problem PC (Edge browser unavailable prior to that), are the other two working PC's also using the same OS as the problem one? Are the other two working PC's perhaps on a network that the problem one is not or visa- versa?

A link to the page might help us. I would also check in any available forums for the specific script you're using, and make sure everything is up to date (jQuery version, ui version, theme version, script version)

ianhaney
10-18-2016, 02:25 PM
I thought it may have been antivirus or something related like that so disabled it all but still didn't work but have sorted the issue now

I had the following line of code in originally



<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/blitzer/jquery-ui.css"/>


so took that out and put in the following and it's working now



<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/blitzer/theme.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/blitzer/theme.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/blitzer/jquery-ui.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/blitzer/jquery-ui.css">


just thought was weird as was working on two computers with the 1.11.2 css version

jscheuer1
10-18-2016, 03:33 PM
OK, well you need both the theme and the ui, but you don't need both the min and non-min versions of each (min is just a compressed version of the same thing). Also, generally the ui is loaded before the theme, so I would go with:


<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/blitzer/jquery-ui.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/blitzer/theme.min.css"/>


What you had before (when only two PC's worked) apparently lacked the theme, but perhaps that wash cached on the two working PC's, or combined with the ui, which in the latter case would mean all that was required was the update.