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 ...

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

0
votes
0answers
3 views

Is it possible open a francybox into another francybox and the closure of the second the first must not to be closed?

Hy guys! I open a francy box into another francy box. But when I close the second francybox olso the firts is closed. The first francybox contain a div for contact and the second show a pdf! I wish ...
0
votes
0answers
10 views

Re-use data from a 'closed' ng-repeat

Ok, so I basically have a table where I need to use ng-repeat. I'd like to use data retrieved from my first ng-repeat in the second (the index). But unfortunately, I can't access it when my is ...
0
votes
0answers
9 views

Collapsible table change chevron icon on click

I'm working on a table which contains hidden details for each row. Table rows are made with Bootstrap accordion. Accordion rows and hidden details are working fine but the JS that changes the chevron ...
0
votes
1answer
21 views

The function does not return a proper array

The first console.log displays the array correctly but when I call it from outside it displays a pair of empty curly braces. var tofind = function (){ var userss = []; user.find(function ...
0
votes
0answers
11 views

jquery Tag-It doesn't autocomplete

I want to put a tag system. I choose http://aehlke.github.io/tag-it/. I have the code: var availableTags = [ { value: 1, label: 'tag1' }, { value: 2, label: 'tag2' }, ...
0
votes
0answers
15 views

How to highlight specific text shown in a multiline textbox?

In my application i have to highlight some text (incorrect words) which are returned by an API to show in a multiline textbox. How to highlight specific words in the string returned by an API.
2
votes
3answers
24 views

Webpage is not zoomed all the way out when loaded

When I load Kickstarter.com on my iPhone, it loads like this But when I load the site I created, it loads like this As you can see, for KickStarter, it zoomed all the way out upon load. For my ...
-5
votes
2answers
45 views

Increase number in php using Javascript/jQuery

I've got a simple question that I don't seem to find an answer to. I've got the following php code: $load_more = 19; I want to increase my $load_more variable to 38 with one button click using ...
0
votes
0answers
1 views

Isolating Kindle Fire SILK Javascript error?

I have an AngularJS / Rails 4 page with a few thousand JavaScript LOC, which runs fine on IE9-11, Chrome, FF, Safari in raw or minified form using the standard uglifier gem. Oddly the page runs fine ...
0
votes
4answers
22 views

jquery.form.js - How to get current form on submit?

I have this markup <form action="..." id="form1" class="foo">...</form> <form action="..." id="form2" class="foo">...</form> ... and I have this Javascript code ...
0
votes
0answers
6 views

Capture only errors that are within namespace (raven-js)

Is it possible to configure raven-js to ignore errors that are not within a defined namespace? var Foo = Foo || {}; Foo.raiseWithinNamespace = function(){ //bar is not defined, raises return ...
0
votes
0answers
5 views

Ember.js find() does not work with parameters

I'm trying a simple post retrieval app with ember. Everything works fine as long as i'm not passing arguments to the find() function: This works great: return this.store.find('post') But not ...
0
votes
0answers
3 views

Issue with embeding SWF object with javascript in IE

I want to embed SWF object to my HTMl file dynamically. So I'm using embedSWF function. It works in chrome browser but it doesn't work in IE. (Now I'm testing on IE11 but it must work on IE8) Here ...
0
votes
4answers
24 views

Optional string in RegExp

I want to catch if the url is a blog page or not. A blog page can be: /blog /blog/page/1 /blog/page/143 So, page/pageNumber is optional. How can I create a regular expression that being tested ...
1
vote
2answers
12 views

Angularjs: Can't add class to ID

Got a little situation here. I'm just learning Angular and I'm stuck with the following problem. I've a list that repeats itself (ng-repeat) and when it is rendered, you can click on it and I add a ...
0
votes
0answers
5 views

Dynamically adding functions to QObject exposed to Javascript in Qt

I have objects with dynamically generated set of functions. For each object, I can retrieve, at runtime, its sets of functions. This object is inheriting from QObject and is meant to be exposed to the ...
0
votes
5answers
33 views

what does && return in javascript expression

I was reading the javascipt code in some application and code was this getTotalFees:function(){ return this.grid &&this.grid.getStore().sum('fees'); } Now i am confused what ...
-1
votes
4answers
35 views

html in javascript not working

I have a form with email id and submit button. If I am registered user, I want to show an error which says "already registered" outside of email textbox. Here is code, if((data == "register")) { ...
1
vote
1answer
45 views

Load a js file using onclick

I have a javascript file that has more than one function. I found this script online that allows me to call a js file by clicking on a button. Assuming that the js file is called black.js, is there ...
0
votes
0answers
11 views

Abort AngularJS $http request, deeply nested in multiple service calls

I'm using a deferred promise to abort a $http request (like explained in this post). However, I'm unsure of how I should propagate the abort() function added at the root level. Everytime I call ...
0
votes
3answers
32 views

Check box not toggling - jsfiddle

The toggle check box function is only working once and after the first instance it doesnt work. Any help? Here is the jsfiddle: http://jsfiddle.net/66gmK/ <script> ...
0
votes
0answers
10 views

How can i screenshot a javascript chart?

I wanna get a screenshot of js chart on webpage. Html and css side works perfect but js percentage chart is not show.. How can i do that ? int width = 920; int height = 440; byte[] ...
2
votes
2answers
28 views

How to get upload file name using upload field “name” attribute in jquery

How do I get upload file name after click the submit button. Below in the file upload field. <input class="required-field" type="file" value="" name="cover_image"> I've tried with below but ...
1
vote
1answer
13 views

HTML Open html file when choose combobox item

I have this combobox on my web site, and I want it so upon choosing the English option it will open an html file called "index-eng.html", and upon choosing the Spanish option it will open an html file ...
0
votes
1answer
15 views

How can we set the javascript variable as jsf parameter

In this code I want use script variable in jsf page <script> var str; function demo() { str = 'This is demo'; } </script> <h:commandButton value="Confirm" ...
0
votes
0answers
8 views

how to handle <br> , \s like strings in json in classic asp

I am writing application in which i am creating json file for this via classic asp. json ccontains various character that may cause json error. such as /s or <br> . i have replaced manually this ...
0
votes
2answers
23 views

CSS hack for no-svg support browser

My code: Kiwi Corp .logo { display: block; text-indent: -9999px; width: 100px; height: 82px; background: url(kiwi.svg); background-size: 100px 82px; } How to make a rule ...
0
votes
3answers
22 views

alert function in JavaScript is not working

I have an old page created in clasic asp, contain a form, I am trying to submit the form using JavaScript function after checking the values available in the form. HTML: <form method="POST" ...
0
votes
3answers
22 views

Replace particuler text message of a div using js or jquery

I need to replace the text "Form+validation+failed.+You+cannot+submit+this+record." inside <div class="alert alert-error"> with "You are not eligible to make this purchase." <div ...
0
votes
1answer
7 views

Add buttons to webpage with Chrome Extension

I am trying to build a Chrome Extension that will add a button on Deezer's album page. My manifest is as follows: { "manifest_version": 2, "name": "Deezeet", "description": ".", "version": ...
0
votes
6answers
33 views

Switching between two images

I have this simple code <a title="disable music" id="mute_link" name="mute_link" style="position:absolute;right:15px;top:15px;cursor:pointer;"> <img src="images/icons/stopmusic.png" ...
0
votes
1answer
14 views

session variable in javascript not updating

i am working on two jsp(index and navigation). I am calling some part of html code through ajax on index. I am calling a function "demo()" from navigation.jsp page and defined function in a script ...
1
vote
3answers
16 views

Randomly choose font out of array and don't repeat

I'm learning javascript and I'm trying to do an exercise where every half second a header's font will change. I got that working, but every one and awhile it will pick the same array number back to ...
0
votes
0answers
15 views

jQuery Slideshow wont fade in and out

My slider wont fade in since i removed .end() cause that give me some problems in the slideshow but how can i make it fade in and out again. It works in the fiddle i made but not on my site. ...
0
votes
1answer
8 views

Pass size and name to the .onload event of JavaScript's FileHandler

How is it possible to pass the name and size of a file to the .onload event of JavaScript's FileHandler. As you can see I'm using the (still undeclared) variables size and name in my Ajax call below. ...
0
votes
0answers
55 views

reload a div again without using load()

I have a form through which I want to upload a user's name which works fine but want to display it right after he uploads it by clicking "Save" button(of submit type) without reloading the page.Right ...
0
votes
0answers
8 views

Ember Nested Model: Find and remove child element from model

I have a nested model which is used to construct the tree view. Here, I have two action handlers which is used to delete the folders based on the passed "id" param. So when I pass the first level ...
0
votes
0answers
2 views

kjscompiler gives errors on javascript built-in functions (google closure compiler)

When compiling with kjscompiler (which uses google closure compiler), I get errors like this: Error #3: variable Date is undeclared Error #4: variable NaN is undeclared Error #5: variable Error is ...
0
votes
0answers
10 views

Server Sent Events with SQL

I didn't seem to find a way to do this, so I decided to ask here. I am doing asp.net site which uses data from SQL Server database. I am using javascript to get the data and format it as I want. ...
0
votes
1answer
13 views

How to fire event if the app is in the background, the app should timeout in phonegap application

I want in my application After 1 hour of no use or if the app is in the background, the app should timeout to the login screen when the user returns to the app using phone gap and jquery.
0
votes
0answers
4 views

Google Apps Script for spotting the differences between two columns of a google sheet, ignoring blank cells and multiple instances

I'm a newbie JavaScipt developer and I need some help in the following situation: I have two columns of data ("COLUMN A" and "COLUMN B") in Google Sheets, where each cell contains product names, but ...
-4
votes
0answers
21 views

show and hide a div child on select option change [on hold]

I have some data arranged in no. of divs. According to select option change I show some div and hide some. On selecting a particular option I have to show one child only of a div and hide rest all. ...
0
votes
0answers
11 views

how to load map in amx page using javascript?

i have been trying to load map from javascript to amx div(thematic map) load map using javascript(google maps) getting errors(illegal usage of API in application) and blank screen when tried
0
votes
0answers
11 views

How set a page title into Openui5

I want to set the title of a page. I use this js code: sap.ui.core.Core().byId("operationDetail").getController().changePageTitle("HELLO"); ...
0
votes
1answer
8 views

Mustache is returning previous data with new

Im using mustache.js to return json data in a template, but when im making a $.ajax post with a json responce, mustache is returning previous responce data and the new one. How can i prevent mustache ...
0
votes
0answers
6 views

Yii - Disable window tab on basis of parameter

i have an application open in multiple tabs in the same browser. If a user changes the value of a dropdown , they i have to disable all the previous tabs. FYR, Once dropdown is changed , it post ...
1
vote
1answer
26 views

angularjs directive not working (strange issue)

This is my app.js code (main js) var currentUserId; window.myApp = angular.module('myApp', ['ajoslin.mobile-navigate', 'ngMobile', 'myApp.Registermdl', 'ngProgress', 'myApp.login', ...
0
votes
0answers
11 views

Unable to read first element from querystring using HttpUtility.ParseQueryString (Chineese Text)

I have to pass values via query string that has Chinese text so I have encoded it using encodeURIComponent() in java script of the parent page window.open('../ParentPage.aspx?' + 'firstvalue=' + ...
0
votes
1answer
55 views

Adding class to javascript selector?

createDocumentStructure('h3, .twistytext'); is the line I am having problems with - last line. It works if I just have h3 in there but wanted to add a class too. Tried a bunch of different ways to ...
1
vote
0answers
15 views

How to refresh/renew link download video from google+

At first sorry for bad english. This is the example link download video, from google+: ...