Tagged Questions
JavaScript is a dynamically-typed language commonly used for client-side scripting. Use this tag for questions regarding ECMAScript and its dialects/implementations (excluding ActionScript). Unless a tag for a framework/library is also included, a pure JavaScript answer is expected.
0
votes
0answers
13 views
How to convert a JQuery date value to a long value
I have a JQuery Date function which shows output like July 09 2012(say). Now I want to change this String value to a long value like 1335363564815(say). How can I do this??
This is my code for my ...
0
votes
0answers
13 views
Snap to div horizontal on slide or swipe
I have a horizontal set of Divs each holding a score table from a game. The intent is to have the user on a phone slide / swipe the game table and when the user removes his finger, the program will ...
0
votes
0answers
9 views
Ember.js - Change what a computed property listens to at runtime
Is there a way to add and remove the properties that a computed property listens to at runtime?
e.g.
fullName: function(key, value) {
//some code here
}.property('firstName', 'lastName')
I ...
0
votes
1answer
21 views
How do I scroll to a newly appended list element with jquery
I'm appending a new list item and trying to scroll it into view.
Here is my HTML:
<ul class="chats">
<li class="out">dynamic text with variable lengths</li>
<li ...
0
votes
0answers
3 views
Clearing WinJS binding JavaScript array
I'm sure this is exceedingly simply, but it's not apparent to me at the moment.
I have a WinJS list view as so (defined in home.html):
<div data-win-control="WinJS.UI.ListView" id="listView" ...
1
vote
0answers
17 views
Revealing modular pattern - 'Static class' inheritance
I know that there are some similar threads out there. However, they all focus on creating several instances of an IIFE and adding properties to their prototype.
In my example below, I create 2 ...
0
votes
1answer
4 views
Infowindows Displayed on the Same Marker
for (var i = 0; i < locs.length; i++) {
var marker = new google.maps.Marker({
position: new google.maps.LatLng(locs[i][0], locs[i][1])
, map: ...
0
votes
0answers
8 views
How to detect installed version of MS Office using javascript from IE?
Actually I need to know if 2013 version of MS Office installed.
Approach with
var oApplication=new ActiveXObject("Word.Application");
does not work for me from website (but it works when run it ...
1
vote
0answers
20 views
Webkit - dynamically created stylesheet - when does it really load?
I have some code (it's actually not mine but the SlickGrid library) that creates a <style> element, inserts it into the DOM, then immediately tries to find the new stylesheet in the ...
1
vote
1answer
14 views
Uncaught TypeError: Object #<HTMLDivElement> has no method 'addPanel'
I am trying to implement an almost cross-browser bookmark functionality and found this on SO:
Add to favorites button
Now, I am using @PHPst's answer..
<script type="text/javascript">
...
0
votes
0answers
4 views
Sidr multiple menus with different content
I am trying to use sidr for a website I'm building.
The website consists of one long page that is scrollable. It contains 3 anchor divs and it loads on the second anchor so that you can scroll both ...
0
votes
0answers
16 views
javascript object literal, combining values of objects within same literal
I am trying to create a new object from looping through the below and combining values of objects that have like types?
so I have something like this:
var data = [{
transID: 123,
...
0
votes
0answers
8 views
JqueryUI - How to disable track handle on click and allow sliding/dragging handle and move one of 3 handles?
I have JQuery UI slider with 3 handles.
I need disable click (rewrite event for clicking on slider), but allow sliding on handle mousedrag.
I'm trying something like this, but it's not working ...
0
votes
0answers
6 views
Get facebook comment by id
I have facebook comment box. I want to store the comment in a database when a user comments something. So I am attaching a callback function with FB.event.subscribe('comment.create', ... From there I ...
-4
votes
0answers
31 views
Responsive Web Design using Javascript
I cant seem to find good resources for learning Responsive Web Design using JAVASCRIPT.
I know how to use CSS Media queries,however I wish to use JS for dynamically rendering a page as per the device ...