Three.js - how to draw a discontinuous line using BufferGeometry?

Javascript
I have the following situation: I need to draw a Line with holes (a discontinuous line). That means that my Line consists of several segments which ar...
2 years ago

Why is the code below returning a color value?

Javascript
I was going through jQuery ready event and found the following: The handler passed to .ready() is guaranteed to be executed after the DOM is rea...
2 years ago

Does Javascript writable descriptor prevent changes on instances?

Javascript
Answers (please read them below, their respective authors provided valuable insights): "writable: false" prevents assigning a new value, but Object....
2 years ago

Onclick function triggering multiple times

Javascript
I am having an issue when saving inside of the add-comment modal. When I click on "save" inside of the modal it is triggers depending on how many time...
2 years ago

Live search with php and jquery?

Javascript
I am totally new in jquery. I have a simple question: i tried an example to make live search using php,mysql and jquery but it doesn't show results. ...
2 years ago

how to split the ng-repeat data with three columns using bootstrap

Javascript
I am using ng-repeat with my code I have 'n' number of text box based on ng-repeat. I want to align the textbox with three columns. this is my code ...
2 years ago

Bootstrap framework column not working in tab-content

Javascript
I want to include col-md-4 in content-tab but that not working image or text not hide if i click next tab. My target is Ihover plugins in 3 column but...
2 years ago

Pass Multiple Parameters to jQuery ajax call

Javascript
I have the following jquery code to call a webmethod in an aspx page $.ajax({ type: "POST", url: "popup.aspx/GetJewellerAssets", contentT...
2 years ago

Ajax function or JS

Javascript
How do I call different ids which are getting looped in php? Using the below method it gives me no result on clicking the update button. If i remove t...
2 years ago

jQuery find() method not working in AngularJS directive

Javascript
I am having trouble with angularjs directives finding child DOM elements with the injected angular element. For example I have a directive like so: ...
2 years ago

How Sort Array Date JavaScript dd/mm/yyyy?

Javascript
How would I sort an array of dates in chronological order? For example I have: var dates = [ '03/03/2014', '01/03/2014', '02/03/2014', ...
2 years ago

Bootstrap - jQuery is not defined

Javascript
I have created an ASP.NET application and want to validate form with jQuery. When refreshing the page, chrome's console shows the following error: ...
2 years ago

My code is not working without an alert(); function in the start

Javascript
I am trying to fire a :click(); function but unable to do that I don't know why but when I type the :alert(); function in start then my code works I a...
2 years ago

jQuery add elements to empty selection?

Javascript
Why doesn't this work? var spans = $(); var elem = document.getElementById('someId'); spans.add(elem); What is the proper way to start off with an...
2 years ago

Can't find <header> markup using jQuery.siblings()

Javascript
Consider the following markup (abbreviated): &lt;section&gt; &lt;header&gt; &lt;picture&gt; &lt;source&gt;...&lt;/source&gt; ...
2 years ago

How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)

Javascript
My version of node is always v0.6.1-pre even after I install brew node and NVM install v0.6.19. My node version is: node -v v0.6.1-pre NVM says ...
2 years ago

Javascript. Checking if string contains text from an array of substrings

Javascript
Pretty straight forward. In javascript, I need to check if a string contains any substrings held in an array.
2 years ago

How to shorten switch case block converting a number to a month name?

Javascript
Is there a way to write this on fewer lines, but still easily readable? var month = ''; switch(mm) { case '1': month = 'January'; ...
2 years ago

Removing uninteded div around input box created by Bootstrap using jQuery

Javascript
I am trying to create a slider using Jquery and store the input in a &lt;input type="text" readonly&gt;. This works when i am just placing the input ...
2 years ago

How do I format date in jQuery datetimepicker?

Javascript
I use jQuery datetimepicker which was extended from jQuery datepicker to pick not only date but time too. I want to set date/time format this way: dd...
2 years ago