Tagged Questions
JavaScript (not to be confused with Java) is a dynamically-typed language commonly used for client-side scripting. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript). Unless a tag for a framework/library is also included, a pure ...
20
votes
0answers
735 views
Horizontal glitch lines bug
In Voxel.js, a Three.js based project that I work on, we recently started seeing a weird rendering that shows up on Macbook Airs (Intel HD Graphics 3000) but it doesn't show up on other Macbooks like ...
17
votes
0answers
547 views
How to generate image sprites in ember-cli using compass?
Update - 20140614:
After not getting any answers to this question, or on github,
I decided to come up with my own solution to the problem.
I was using compass for a number of things,
but its main ...
11
votes
0answers
1k views
Mis-aligned labels/slice text in my Google Pie Charts
I'm using Google Charts to show some data regarding opens and clicks from emails as Pie Charts. I've got the Pie Charts showing the right data, however I'm having issues with the label on the pie ...
8
votes
0answers
683 views
How to do remote Javascript debugging with Rhino in intellij IDEA?
There is a server which uses Rhino engine to execute JavaScript files. I need to connect to that server using IDEA and debug scripts running on it. The only information I found on Rhino debugger for ...
7
votes
0answers
115 views
Clip Google Maps JS API ImageMapType to a polygon
I'm wondering how to clip a MapType in Google Maps to an arbitrary polygon. For example, if I have a custom ImageMapType that covers a large area (i.e. all the world), but I want to show it only ...
7
votes
0answers
237 views
Ember.js: Reloading a .hasMany relationship given through “links” in payload
Say I have two models, Topic and Post:
App.Topic = DS.Model.extend({
posts: DS.hasMany('post', { async: true, inverse: 'post' });
});
App.Post = DS.Model.extend({
topic: DS.belongsTo('topic', { ...
6
votes
0answers
375 views
Add Post support to Hubot
I am trying to add the http-post-say.coffee script to a hubot app which is hosted on Heroku.
The documentation indicates that once you add the script then it creates the '/hubot/say' route which ...
6
votes
0answers
4k views
Styling Google Charts Table
I am trying to add CSS style to a Google Charts Table. I tried this:
https://developers.google.com/chart/interactive/docs/gallery/table#customproperties
on the first cell (Mike) but it didn't work. ...
6
votes
0answers
2k views
JSF custom component losing input focus on ajax update
I'm writing an autocomplete custom component as a learning exercise with JSF
2.1.3. The idea (which is probably pretty familiar) is to enter some text into
and input component and present a list box ...
5
votes
0answers
178 views
OpenID API for both asp.net and JavaScript support?
I've been struggling a lot lately to find decent solution which has authentication mechanism for server and client API's.
I put alot of effort trying to find working(!) code samples , but couldn't ...
5
votes
0answers
78 views
Corrupted UI when trying to display reporting service report in an iframe
I need to display report services reports using an iframe which is opened from a web application that supports IE9, IE10, IE11 (the application cannot run with computability view).
When using the ...
5
votes
0answers
136 views
How to make the dc.js charts resposive
Is there a any way to make the dc.js charts responsive?
I'm struggling a lot to make the charts fit the desktop size.
Method i followed is the, I'm using Twitter Bootstrap 3. And i store the width ...
5
votes
0answers
99 views
bootstrap affix plugin memory leak
These lines in the bootstrap affix plugin seem to cause a memory leak because the window gets a reference to the affix instance that's never released.
As a workaround I'm using this code to release ...
5
votes
0answers
244 views
Selecting through Status bar and deleting get merged with next element
When trying to delete the selected element through status bar next element is getting merged with deleted element tag.
I have tried this in
CKEDITOR 4.0 and latest version
Chrome 32.0
This ...
5
votes
0answers
124 views
Insert/Upsert to a Meteor Collection with Unacknowldeged Write Concern
In Meteor, how do you Insert/Upsert to a Meteor Collection with Unacknowldeged Write Concern w=0?
Can the write concern be set during the insert/upsert, rather than as a environment variable?
5
votes
0answers
1k views
ExtJS 4.1 Infinite Grid Scrolling doesnt work with Dynamic store using loadData
I have to load first grid panel on tab and then load data into store using loadData() function which is working fine, but now, i have to integrate infinite grid scrolling with it.
is that any way to ...
5
votes
0answers
909 views
Load another jvectormap on region click
I'm trying to load the specific region map onRegionClick. However it seems as though the region is loading after the change is made. Here's my code
function switchMap(code) {
...
5
votes
0answers
279 views
Rspec periodically hangs when using capybara-webkit with a page that loads an external script with async = true
I'm working on an application that uses uservoice. The uservoice snippet
var uv = document.createElement('script');
uv.type = 'text/javascript';
uv.async = true;
uv.src = ...; // external ...
5
votes
0answers
301 views
getIncoming in UrbanAirship for Phonegap
When I receive a push notification on my phone when my app is minimized. If I click on the notification to launch my app
window.pushNotification.getIncoming( callback )
returns ...
5
votes
0answers
198 views
How can I use closure type annotation with Aptana?
If I enter the follow JavaScript code in Aptana Studio 3 then I expect some errors but it show nothing.
/**
* @type {string}
*/
var abc = 23;
abc.doesNotExists();
How can I enable the support for ...
5
votes
0answers
752 views
Refreshing URL with JSF ajax request
I'm using JSF 2 with PrettyFaces and also the <h:link> and <f:param> tags extensively to get bookmarkable pages (It's great to finally forget about all those POST request in a JSF ...
5
votes
0answers
659 views
How to access webkit-fake-url
Using Safari (5.1.3) on OS X (10.7.3).
When a div is set to contenteditable="true" I am able to paste an image into it and see it. I can also drag an image in and see it.
I can also once it is there ...
5
votes
0answers
556 views
How to change the language of 'Google News' regarding the GSnewsBar object (Ajax API)?
The following deals with GSnewsBar object of the Goolge-Ajax search API which is explained here:
http://www.google.com/uds/solutions/newsbar/reference.html
There are some parameters which allow to ...
4
votes
0answers
67 views
Grails application controller groovy issue
I'm building a grails application and loading my backend by converting my csv tables into json files and rendering them to index.gsp for reading.
Most of the functionality of the dashboard is done, ...
4
votes
0answers
101 views
JSON Circular Object Type Reviver
I am building a web app game that uses custom circular objects that the user can manipulate and save. All of the objects are connected to a circular 'player' object that is stored using Circular-JSON.
...
4
votes
0answers
104 views
Google Maps infowindow tip blinking
White bottom tip of marker infowindow appears in upper left corner of map when moving mouse quickly over both markers left-right-left.
See it in action here http://jsfiddle.net/WGy4g/3/
var map = ...
4
votes
0answers
28 views
Express-hbs: Asynchronous Helper with options/attrs
I'm working with express-hbs and Async Helpers but I need send options to the helper but async helpers doesn't support this feature ( or I don't know how ).
As you can see ( code below ) I'm trying to ...
4
votes
0answers
98 views
Facebook invite in phonegap returns OK
I need to be able to invite friends to my application on Android. I'm using HTML/js with Phonegap. The login with FB is working fine with the plugin but i can't make the invite work.
My code is:
...
4
votes
0answers
82 views
Jasmine mock ajax calls not working in IE
I tried writing a spec that allows Ajax calls to be mocked out. The test case works perfectly fine on browsers like Chrome and Firefox. But I am facing some issues when I run the test case on IE ...
4
votes
0answers
103 views
How to get video RTSP link with Youtube API V3?
I used to get it normally with V2 but what's the alternative in API V3 ?
if not available, is there any hack to do it ? eg. guess the URL ?
Note : V2 is Deprecated now, so i can't depend on it .
4
votes
0answers
80 views
Odd console.memory results in Chrome, negative numbers in timeline memory dev tools, a Chrome bug?
After running for a very long time (a day or more) a web-based app I wrote (JS/HTML5) starts acting "weird". Primarily it stops sending the normal data it should to the backend, where I expect it to ...
4
votes
0answers
224 views
Browserify jQuery is not defined?
So I know how to manually fix this but it's annoying!
I included bootstrap dropdown.js and at the end of the function is
}(jQuery);
Inside my shim I set jquery as a dependency
'bootstrap': {
...
4
votes
0answers
146 views
Asynchronously calling a callback function in Spidermonkey JS engine
Using Spidermonkey v27:
What is the proper way to "retain" and then asynchronously call a temporary JS function from C++?
JS code:
myFunction(function(){
console.log("The function works");
});
...
4
votes
0answers
131 views
session storage using node js and “connect-mongostore”
I am trying to create a session using node js with "connect-mongostore" module. I am able to create the session. But it is not storing it correctly.
This is my server side code
//loading all the ...
4
votes
0answers
208 views
use intro.js on bootstrap dropdown element
I cannot figure out how to use intro.js on dropdown elements.
I found a similar question with no answer there: IntroJS Bootstrap Menu doesnt work
If you want to reproduce the error, follow these ...
4
votes
0answers
698 views
Disable (img) resize handles in IE 8-11 in contenteditable and remove them if possible
This question may have been asked several times before, however I'm still unable to solve the problem.
I'm building my own WYSIWYG and one of the options is inserting image into the contenteditable ...
4
votes
0answers
42 views
Is channelUrl parameter for Facebook init() deprecated?
I remember that there was a channelUrl option for FB.init(), but it seems that it does not exist anymore according to this page
Is this feature deprecated?
4
votes
0answers
923 views
How to create a Three.js 3D line series with width and thickness?
Is there a way to create a Three.js 3D line series with width and thickness?
Even though the Three.js line object supports linewidth, this attribute is not yet supported in all browsers on all ...
4
votes
0answers
171 views
MVC - JS alert message in the wrong encoding
I don't have a problem and I can't figure out how to fix if
var answer = confirm("@Html.Raw(Res.MyMsg)");
in the polish version of that file in the MyMsg iI have a letter ó but I get ó.
I ...
4
votes
0answers
121 views
LaunchOptions.DesiredRemainingView - Split screen launched app
I am trying to open files in their native application from my app.
Windows.Storage.ApplicationData.current.localFolder.getFileAsync("downloads\\" + fileName).then(
function (file) {
var ...
4
votes
0answers
136 views
MutationObservers - Some nodes added are not detected
I have a content script which listens for the insertion of text-nodes on some websites. It's working great, except on Facebook. Some of the text-nodes inserted are not detected by the script.
...
4
votes
0answers
4k views
Safari Web Inspector doesn't debug javascript in IOS 7 simulator
I have Safari 6.0.5 (8536.30.1) and WebKit nightly (8536.30.1, 538+) and I'm trying to debug a website in IOS 7 iPad simulator (XCode Version 5.0 (5A1413)). I choose Develop->iPad simulator in Safari, ...
4
votes
0answers
655 views
How do I add imported files into sequences using Premiere Pro's ExtendScript connection?
I'm trying to create a script (in ExtendScript for Premiere Pro) that will load in specified video files, clip them at specified start and stop times, place them into a sequence, and then export the ...
4
votes
0answers
116 views
Force z-index of series in Kendo UI chart
I need to draw a Kendo UI chart with 2 series of different types: candlestick and line: http://jsfiddle.net/BDAvq/
I want the candlestick series to be drawn behind the line one, but whatever the ...
4
votes
0answers
3k views
hammer.js and preventDefault();
js to also support touch-gestures. I'm bagging my head about prevent default actions. when I set event.preventDefault or event.gesture.preventDefault() or even apply parameter {prevent_defaults: true ...
4
votes
0answers
288 views
How to add Subtitles to Youtube video using Youtube API?
Is it possible to add subtitles to Youtube video using Google Youtube API v3 (important condition - for video's not owner)?
Task: add custom subtitles in selected language using the Google APIs ...
4
votes
0answers
536 views
How to update Django endless pagination content list with new content with ajax response data
I am trying to update my page based on user search query. I am able to get the search results from the server but how do i update my contextList. I have also implemented Django endless pagination but ...
4
votes
0answers
76 views
How to add expiration headers to Meteor static assets
Is it possible to add expiration headers to static assets in meteor? Or a way to configure them?
Thanks!
4
votes
0answers
924 views
Browserify to load dependencies from global scope's require instead of expecting them to be bundled up together
I'm developing library A and library B, B depending on A.
I would like, using browserify, to bundle them up independently, so in my browser I could do:
var A = require("A");
var B = require("B");
I ...
4
votes
0answers
238 views
Google Plus Login not working on mobile browser
Google plus login working fine on computer browser but not on mobile browser.
Here is the link to website:
http://ohyouherodev.elasticbeanstalk.com/
var client_id = gmail_client_id;
var scope ...