jQuery validation CSS to change font & text box colors stopped working -
there may better forum this, here's problem:
i'm using several different cdn sites css, jquery, jquery mobile, jquery.validate, etc. sometime in very recent past (last few days) css jquery validate uses stopped highlighting affected text boxes in red, , changing messages red font.
i thought addition of blockui.js & css, noticed of fiddles created make bits & pieces of project had been affected well, , none of them had ever had blockui added them, wasn't it.
then thought maybe had changed in chrome, tried in firefox, same thing. have remote server upload test code, , still working normally, until reloaded page, same thing. tells me change occurred in 1 of cdn based files.
my question is, since don't have downloaded versions of each of .js & .css files, how can determine change was? possible download previous version (the version numbers in references hasn't changed, there's no way tell them.
i know can go create own .css highlighting & font issues, seems whoever hosts these various cdn's shouldn't change them underneath you? fwiw, primary suspect is: http://jquery.bassistance.de/validate/demo/css/screen.css, since hasn't been versioned. haven't had chance try verify yet.
for reference i'm using array of cdn locations current project:
<link href="http://malsup.com/jquery/block/block.css?v3" rel="stylesheet"> <link href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css" rel="stylesheet"> <link href="http://jquery.bassistance.de/validate/demo/css/screen.css" rel="stylesheet"> <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.1.js"></script> <script type="text/javascript" src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.js"></script> <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.12.0/jquery.validate.js"></script> <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.12.0/additional-methods.js"></script> <script type="text/javascript" src="http://malsup.github.io/jquery.blockui.js"></script> <script type="text/javascript" src="pcbclient.js"></script>
there no css file part of jquery validate. plugin toggles 2 class names , have been .valid , .error.
the root of problem right here...
<link href="http://jquery.bassistance.de/validate/demo/css/screen.css" rel="stylesheet"> that's not cdn link, nor css file part of plugin. it's css file used solely online demo page.
everything broke because that url no longer points css file. however, should not have been hot-linking website's css file in first place. (if it's not url cdn, considered stealing other website's bandwidth.)
if liked how online demo page looked, have examined , copied css properties own css file, provided copyright license allows it.
you might want review rest of file includes' url's make sure part of official cdn , not hosted on these developers' websites.
Comments
Post a Comment