- Joined
- Mar 25, 2012
- Messages
- 909
- Reaction score
- 464
Hey guys,
I've prolly never asked for any help in the coding section of RaGEZONE, until now, I want to give it a try:
I'm using the following script to display popovers on focus with HTML support in Bootstrap 3:
However this input ...
... is somehow bugged in Opera 12. Due the fact the input type is "date" and not "text" it will not hide the popover when leaving the textbox. I know supporting Opera 12 is kinda odd, but 40% of all Opera users are still using the 12th version due feature reasons.
Please look at
What can I do to make it work properly?
(I need solutions to this problem, do not suggest me using any JS calendar control, even when FF is not supporting input type "date" right now, the website will be online in 2 years, assuming the "date" type of inputs will be supported by all common browsers.)
I've prolly never asked for any help in the coding section of RaGEZONE, until now, I want to give it a try:
I'm using the following script to display popovers on focus with HTML support in Bootstrap 3:
Code:
$(document).ready(function () {
$(".focus-popover").each(function (index) {
var showPopover = function () {
$(this).popover('show');
};
var hidePopover = function () {
$(this).popover('hide');
};
$(this).popover({
html: true,
placement: $(this).attr('data-placement'),
trigger: 'manual'
})
.focus(showPopover)
.blur(hidePopover);
})
});
However this input ...
Code:
<input type="date" ID="test2" class="form-control focus-popover" data-original-title="This is my title" data-placement="top" data-container="body" data-content="Click away and see how this will be dismissed.<br />However, on Opera 12 it will remain."></input>
Please look at
You must be registered to see links
in Opera 12 as well as any other browser. The example shows the blur event is not getting called when leaving the "date" type textbox on Opera 12.What can I do to make it work properly?
(I need solutions to this problem, do not suggest me using any JS calendar control, even when FF is not supporting input type "date" right now, the website will be online in 2 years, assuming the "date" type of inputs will be supported by all common browsers.)