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.

learn more… | top users | synonyms (5) | javascript jobs

0
votes
0answers
2 views

JS codemirror modify text using the object returned by onchange

I have a codemirror text box with onchange event which stores the object returned by the change function. Now , in some other text box I have the original text ( the one before the change occurred ) ...
0
votes
0answers
16 views

Disable browers #link action and scroll using jQuery

I've a query: is it possible to disabled browsers default action on links such as http://example.com/page.html#part-123? I am not talking about disabling click event on Anchor tag( PART 123) using ...
0
votes
0answers
9 views

Get url from external window

I am trying to make a PhoneGap application which opens a webpage using the Android Browser. For this I used the following: navigator.app.loadUrl(url, { openExternal:true }); The problem is on that ...
-3
votes
0answers
33 views

Calculating discounts in JavaScript or jQuery

I tried the following. It almost worked but when I added discount_rate into it, the results were incorrect by miles. var total_amount = 0; var room_type_id = ...
0
votes
0answers
9 views

Is there any way to find a timer in DOM?

I have 2 div´s, the first where i have to click with right button, the other one is the custom context menu. I wish to hide the menu when user move the mouse away from both of the div´s. So i use ...
0
votes
0answers
2 views

How to get tamplateData into javascript files in Docpad?

Is there a DocPad plugin that could pre-process the js files and use templateData variables and helpers to get configuration values available? I've tried Hogan, I can get the variables but not call ...
0
votes
5answers
44 views

How to have a function call itself only once?

This code keeps repeating, but i want it to happen twice, after the functions call and then after the set period of time using setTimeout. function alertit() { alert('code'); ...
0
votes
2answers
21 views

Getting text value without any nested element within span tag in JavaScript

I know how to do this in jQuery: $('span').contents()[0].nodeValue = "new text "; How do I do it in plain JavaScript?
0
votes
0answers
10 views

Javascript Combination Inheritance - Unexpected Result

So I've read up and down on the topic of combination inheritance in JavaScript. I get that the intent is to use prototype chaining for to inherit properties and methods-- and use constructor stealing ...
0
votes
1answer
10 views

Making web page accessible through iframe

Because of the Same Origin policy, content inside an iframe is not accessible to the parent context, if they are from different domains. This applies to XMLHttpRequests as well. But using CORS web ...
0
votes
0answers
2 views

Extjs , how to render a button to template

i'm new with Extjs and was wonder if there is an option to render a button inside a div in the template. I'm adding the files: Ext.define('itfm.application.view.SystemStatusHeader', { extend: ...
0
votes
2answers
36 views

json object vs array of objects

I'm querying a remote server and receiving a json reponse. The format of the reponse depends on the number of objects in the response. If there is a single object it looks similar to: "results": { ...
0
votes
0answers
12 views

Save Element of html page as image format

having a webpage where on div (a square box) which will be used to drag and drop image icons write some text change background color , I want to make that div after dropping elements saved as jpg, bmp ...
-3
votes
5answers
42 views

How does new operator in Java Script work? [duplicate]

In the following code how to access "hello" which was returned by a(); function a () { this.c = 2; this.add = function(a,b){ alert(a+b); } return "hello"; } var b = ...
1
vote
5answers
32 views

Jquery: Check if all links in a list have been clicked on

I am making an avatar creator. The user has a list of links that they have to click on to customize the avatar options. Under the list, is a submit button. I only want the submit button to appear ...

1 2 3 4 5 27143
15 30 50 per page