Tagged Questions
JavaScript is a dynamic language commonly used for scripting in web browsers. It runs on virtually every OS, and a JavaScript engine is included in virtually every mainstream web browser. Standalone JavaScript engines or interpreters are available as well. For example: Mozilla offers Rhino, an ...
0
votes
0answers
5 views
Calling External function from within function - Javascript
I am using Phonegap and JQueryMobile to create a web application. I'm new to javascript and am having an issue.
My issue is with calling a function I have in a file named "testscript.js".
Within my ...
0
votes
0answers
5 views
canvas scale X and Y with cake.js
I need to scale the whole canvas, I use cake.js library and I can't do canvas.scale(1,2);
I need to scale X and Y separately, in this documentation I only have a scale of both X and Y at the same ...
0
votes
2answers
14 views
Prepend Objects to Objects in JavaScript [closed]
Possible Duplicate:
Self-references in object literal declarations
Hey Guys,
i have a small question regarding JavaScript Objects.
I have the following Object in JavaScript:
var CONFIG = ...
0
votes
2answers
16 views
Delay Loading Javascript to speed my Joomla
I'm using joomla site, and Forced to use extra java script.
My Question is:
How to force loading the javascript ONLY after page complete
I dont mean DELAY them, But make them in Queue till the page ...
0
votes
2answers
22 views
Getting elements title's with javascript
I am trying to retrieve the title of elements with the following codes
function highlight(elem) {
var e = new Array();
if (elem.style.border == '2px solid blue') {
elem.style.border ...
0
votes
0answers
4 views
How to remove from google directions right section of polyline under clicked marker?
I have infinite polyline in google directions which got with help in stackoverflow: How to make infinite polyline in google directions and fit draggable markers to the line?. Now I trying add ...
0
votes
2answers
26 views
Don't understand where the image redirects me
I'm trying to make a batch which takes you to a link, but this is not the problem, the problem is that I'm trying to get the link from the website and I don't know why I'm bad. I explain it better, in ...
0
votes
0answers
10 views
RequireJS: how do I handle different module dependencies for code shared between the browser and server?
I have a requireJS module loaded on both the browser and the server, to implement some shared functionality.
The module however has different dependencies in each environment:
In node, it needs the ...
2
votes
6answers
34 views
getting unmatched values from 2 arrays jquery?
Suppose we have 2 Arrays say :
A [] => 1 2 3 4 5
B [] => 1 2 7 4 5
is there any method in jQuery which will give the unmatched values of 2 arrays in this case :
Result [] => 3 7
1
vote
2answers
19 views
Browsers\Javascript - any way to know the user's current IP
I'm writing a browser extension using Kango framework.
As part of its functionality it must know where the user is located. I have that part covered with an API, but the said API requires an ip ...
0
votes
0answers
7 views
WebView + addJavascriptInterface + javascript = issues, webcore crashes
I use WebView + addJavascriptInterface to control my app from html page shown in a WebView control.
It works fine on some API versions, but for example on API 10 in emulator it behaves wrong, crashes ...
0
votes
0answers
3 views
How do you make chrome automatically scale the content of an iframe when you scale it's parent like it does in firefox?
I need to scale a page containing iframe down. When I use this code
document.body.style.zoom = '0.50';
document.body.style.MozTransform = 'scale(0.50)';
document.body.style.MozTransformOrigin = '0 ...
0
votes
1answer
14 views
Using Labjs i get a “$ is not defined” error but the js still works, not sure why :(
i'm using LABjs for some parallel js loading goodness.
But, for some odd reason, i get a error in the debugging console of "$ is not defined".
My code is as follows:
<script>
...
0
votes
0answers
3 views
How to set keylistener to hide the topmost yui panel
I have two or more YUI panels overlapping each other. I want to close the uppermost panel, when I will press the escape key.
How can I do that in context of YUI?
I have tried this YUI example ...
0
votes
0answers
7 views
Javascript, unable to parse XML child nodes
i've some troubles while parsing a xml response in my Javascript code (using extjs 4, but i think it doesn't matter here).
The xml response is something like this:
<response>
...