I have included some Bootstrap tooltips (indicated by glyphicons) in my table (http://jsfiddle.net/mademoiselletse/bypbqboe/66/) by adding the following tag directly into my table cell: I initialize the tooltips by triggering tooltipExe () every time the table is loaded (line 56, 82, 109, 117), defined as fol…
Tag: jquery
fullcalendar event rendering performance issue
So, basically all my events(there’s min. 360 of them) have team1 vs. team2 or – vs. team2 or team1 vs. – placeholders. And on the initial render events change color depending on whether the event has one or two teams. Orange color for the one team , and green for the two teams. Also, the eve…
Bootstrap datetimepicker don’t work with readonly or disabled
I have a serious problem with bootstrap datetimepicker, Here is the jsfiddle : The problem is that when i open my website in mobile, mobile keyboard triggered when i focus the input field so what i need is that only the datepicker show without keyboard. So for that i use readonly or disabled, but the problem …
Can’t parse JSON to Javascript object
I have this HTML box: Event onchange() implementation: But when onchange() event is fired I get on this row: This error: SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data return JSON.parse( data + “” ); Any idea why I get error above? Answer In your case you donR…
JS (No Jquery) – Change CSS when scrolled to a set point
Sorry, but I am a complete noob with JS. I am using Bootstrap to try build my first website. The website has a fixed top navbar. I want to change the navbar’s border-bottom properties when it reaches the bottom of the header div (about 480/500px down the page). Currently the border-bottom is white, but …
How to (sort of) add code to fullcalendar’s renderEvents handler?
I’m using fullcalendar 1.6.3 along with Drupal 7 (thus the need, for now, to be back on 1.6.3). I have some code that I’d like to run every time the view of my calendar changes (via ajax requests) — forward or backward in time, or between month/week/day view. Based on some tests, I could do …
How to show div with date at the beginning of a conversation and every time the conversation is active again on another date
I am making a chat application with AngularJS and JavaScript and when you begin a conversation with someone I want to show a div (blue date in the picture) to show indicating at what date the conversation has begon. And when the conversation is over and started again on another date I want to show the date di…
How to collapse/expand accordion in a Q&A form after input selection
Not sure if that’s the correct vocabulary, but here’s what I’m trying accomplish. I’m working with a team on this big multi-page Q&A application, my task is make one particular page use the least amount of screen real estate as possible. I’m using an accordion, each one has a…
document.querySelector multiple data-attributes in one element
I’m trying to find an element with document.querySelector which has multiple data-attributes: I thought about something like this: But it does not work. However, it works well, if I put the second data-attribute in a child-element like: So, is there an option to search for both attributes at once?I̵…
Can I have an onclick event on a imagemap area element?
I would like to put an onclick event on an area element. Here is my setup: I have tried 2 different ways to have an onclick event. Firstly i tried this: I have also tried this: Neither of the above work. Do area elements support the above, or do they only support having a href? Answer Pay attention: Attribute…