With Fixed as "selected":
Add new <select> element dynamically on a page:
(select boxes are checked every second on a page,
you should see a normal select element transforming
into js select box a moment after you click the button)
Test interaction with other webpages that already use some other
javascript boxes library.
These links need to be opened in the kivy_.py example:
Some libraries that are not well-designed will display
the select element twice, take a look at this for example:
http://adam.co/lab/jquery/customselect/ (open in kivy_.py example)
Although, it will still be functional, just with a display glitch.
The following code was added to the SelectBox library to transform <select> element into js box only if it's visible on a webpage:
// This should fix interaction with other js boxes libraries,
// so that the select element does not appear twice.
if (!$(select).is(":visible")) {
return;
}
Also this code gives one second to other select box libraries
__kivy__jQuery(document).ready(function() {
// Transform select elements only after a second,
// this will give time other select boxes libraries
// included on a webpage to their stuff first.
window.setInterval(function(){
__kivy__jQuery(document).ready(function() {
__kivy__jQuery("select").__kivy__selectBox();
});
}, 1000);
});