Comments (2)
As my framework won't allow me to put specific page script in header. To load script in header I use :
var fileref=document.createElement('script')
fileref.setAttribute("type","text/javascript")
fileref.setAttribute("src", filename)
document.getElementsByTagName("head")[0].appendChild(fileref);
Usually I put this in top of my specific page :
loadjscssfile("/jquery-ui-1.8.4.custom.min.js", "js");
loadjscssfile("/jquery-ui-timepicker-addon.js", "js");
Well I just found out that if I don't put too close the jquery-ui and datetimepicker js using :
- setTimeout('loadjscssfile("/jquery-ui-timepicker-addon.js", "js");',10);
- Or putting the load later in the code, the error disappear ....
Not sure what's going on, since the timeout method seems to me kind of random (need it to be loaded not immediately but at least before I use it ...). I'll just put the load later in the code.
Is there some kind of asynchronous loading of scripts ?
from jquery-timepicker-addon.
Finally found out :
Using this crashes with $.datepicker being null [Using Ctrl+F5 and randomly using F5]
loadjscssfile("/jquery-ui-1.8.4.custom.min.js", "js");
loadjscssfile("/jquery-ui-timepicker-addon.js", "js");
However using this works...
<script language="javascript" src="/jquery-ui-1.8.6.custom.min.js"></script>
loadjscssfile("/jquery-ui-timepicker-addon.js", "js");
from jquery-timepicker-addon.
Related Issues (20)
- The timepicker.timeRange is not work after i changed the endtime to 00:mm;
- milliseconds gets auto updated when we click enter ( same goes for MicroSeconds )
- hour, minute, second slider problem HOT 1
- onkeyup event
- can't reset min/seconds/milliseconds
- Unable to select date part HOT 1
- onSelect function is not called, when timeInput is true
- This plugin does not support jquery 2.1.x HOT 1
- Has this project been abandoned? HOT 8
- endless "change" triggers when setting option minDate/maxDate
- Alignment between label and controls
- Timezone label is not updating on input field
- time doesn't update, when hourMax increases
- Future date disabled by default
- When addSliderAccess is true, the slider panel is flickering
- When "setDate, null" time not reseting in widget HOT 1
- how change date to shamsi
- Is any possible for the multiple date selection?
- option to highlight days
- Disable times
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-timepicker-addon.