Tagged Questions
JavaScript (not to be confused with Java) is a dynamic, weakly-typed language used for client-side as well as server-side scripting. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script). Unless another tag for a ...
0
votes
0answers
5 views
how to upload an image with a text post AJAX, php, and html
Hi i am trying to upload an image with comments added to it into a database using php ajax and html.
here is the html part:
<form name="form1" action="" enctype="multipart/form-data" action="">...
0
votes
0answers
12 views
setting object through variable containing strings not working
I have developed a pretty basic audio player on on my website similar to SoundClouds.
I have managed to successfully finish it, and I am starting to clean up all the markup, including (trying) ...
0
votes
0answers
9 views
content is not showing exactly when i am scrolling in angularjs?
I followed this link https://github.com/oblador/angular-scroll/blob/master/example/index.html.scroll is working but not moving exact position.
<div id="sticky-anchor"></div>
<...
0
votes
0answers
4 views
dynamically update Chart.js draw line chart dataset data
How do i pass back the value after retrieved into the dataset data? Currently it is return empty in value. I know the var durationChartData return in empty due to the intialization of array are empty, ...
0
votes
0answers
6 views
Paging with Firebase using PHP client
I use ktamas77/firebase-php client, which is based on Firebase REST API to bring the data from my real-time database to my website (based on Yii 2 framework).
The point is that my database data grows ...
1
vote
0answers
6 views
loactio.search alternative to remove query parameters
I am new to angularjs and its a very simple question. I need to remove query params from the URL. So, I searched also but all the answers were pointing towards location.search (key,null) or something ...
0
votes
0answers
5 views
SystemJS dependencies and AJAX for performance
I seem to be running around in circles trying to get this to work:
house.js (large file)
export default function(person){
console.log(`this house belongs to ${person}`);
};
john.js
import home ...
0
votes
0answers
5 views
Gravity forms WEBAPI javascript input name with period not working
I have a problem with a field name that has a period "." to it
I can only make it work if the field name is something like input_1 or input_1_2
But when it is something like input_1.2 it doesn't ...
0
votes
0answers
7 views
HTTP Auth with AJAX cross site
I have two servers (under my control) and do AJAX requests from domain_a to domain_b. The cross domain AJAX request works as expected, since domain_b puts a Access-Control-Allow-Origin: * (the * is ...
0
votes
0answers
3 views
Pixi.js - How to separate code to each file as function?
I'm very new with JS and Pixi.js and I want some advices, Below is my example code. I want to know How to separate code to main.js, boss.js as function? I try but it's not work stage is show but boss ...
0
votes
1answer
10 views
Trying to pass a parameter from php file and tag to script tag
Im trying to pass a parameter inside function with on click to a script tag, btw I do not want to use the global $result. I only want to use it from the parameter.
Heres my code:
<?php
$results =...
0
votes
1answer
5 views
Object Oriented D3 JS - How to select object?
Setting up my D3 project, which will have a number of shapes on the screen being animated (Org class). I am trying to maintain an object-oriented paradigm, and take advantage of the D3 animations (...
0
votes
1answer
22 views
Add comma separator to a numbers with 2 decimal points
I've managed to make the user input to 2 decimal points:
Below is my code for two input fields:
$('.ave-daily-accbalance').blur(function(){
var num = parseFloat($(this).val()) || 0;
var ...
0
votes
0answers
19 views
Psychic Game event key - Javascript
document.onkeyup = function(event) {
if (event.keyCode == 82 && event.ctrlKey) {
startGame();
}
else if (event.keyCode >= 65 && event.keyCode &...
1
vote
2answers
22 views
removing the backslashes in json string using the javascript
i have JSON response which is having backslashes and some responses are not containing the backslashes.
I need to show error message based on the response, How do i parse the JSON response using ...
0
votes
0answers
15 views
jquery count to a target number only when the section appears in the browser view
In this website : website link
if you scroll down to the "medal part" and refresh the page,you will see the numbers roll and stop at a target.
now The problem is can we have the numbers roll only ...
0
votes
1answer
4 views
With AWS DocumentClient less than on secondary index query - “Query key condition not supported”
The function below, it should be simple, right? This is what I thought as well. Still, for the life of me, I cannot figure out why I keep getting an error informing me of a, "ValidationException," ...
1
vote
0answers
7 views
jQuery Rateyo rating plugin integration with AngularJS
I am trying to integrate the Rateyo plugin with AngularJS and getting problem in defined rating value from directive, following are codes:
Controller
var app = angular.module('myApp', []);
app....
0
votes
0answers
11 views
Using ng-model-options with ngModelController
I am trying to delay validation of an custom textbox component. I only want to validate the input on blur. The existing component does not use ng-model inside the input but uses the ngModelController ...
0
votes
0answers
7 views
How can I force PhantomJS to wait until MathJax is finished?
I'm trying to pre-render a MathJax html file using PhantomJS. For example, suppose in math.html I have:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="...
0
votes
0answers
8 views
Chrome extension background.js file reload
My chrome extension calling an api service in the background.js file and the value can be successfully use. But, in the next version the api has to pass some additional data based on the user login id....
0
votes
0answers
10 views
Cookies will not execute a prompt and alert through a javascript command
I have been trying to make a login page. It checks if there is already a cookie for the username, if so it asks for login details. Otherwise it goes through register procedure. However, this does not ...
0
votes
4answers
30 views
Sort arrays, variables or objects in Javascript
Im new to javascript but I have already made some scripts that really make a difference in my workflow. However I am now embarking on a project that forces me to sort data in a way I dont know howto ...
0
votes
1answer
6 views
MVC5 bundle url version and content are missing
In my MVC5 web application I use two bundles for a page, one contains the common JavaScript files for all the pages and the other bundle is specific for the page. This works fine in development ...
0
votes
0answers
14 views
Are Front End Developers Really In Demand?
Ok. So I'm a new developer and I've been studying front end development. I've learned html, css, responsive design, and basic javascript with a bit of jquery too. However, several of the job openings ...
0
votes
0answers
10 views
Retrieve images against a word using Angulajs or Nodejs like Google Search
I want to retrieve images using angularJs or Nodejs but how Can I get this?
Example: I created a simple search button with HTML,CSS and AngularJs.
I am using Simple Angular Http GET Method:
$http({
...
0
votes
0answers
23 views
Scroller is not working in javascript
i am running a javascript to scroll down the image when it is zoomed in but the scroller doesn't work
here is script
$(function(){
// Add a custom filter to recognize images from lorempixel ...
0
votes
0answers
8 views
How to show success/fail message after getting response in iframe
I am using iframe for showing downloading the excel transaction files related to customer. Able to download the file, but I want to show the message in toastr, when file is successfully downloaded or ...
0
votes
0answers
14 views
Load multiple videos from vimeo
I've got a problem using fullpage.js framework. I am trying to make whole website slideshow like style with videos as a backgrounds. The problem is that, every source of the video (as a background) is ...
0
votes
0answers
12 views
Data combined in an object is not displaying on new scope view AngularJS
I am trying to send/display the data I am gathering on the service in an object to the next view when my button is clicked. I have the data storing properly into 1 object, but when the the button is ...
0
votes
0answers
12 views
How to add rules Jquery form validate to current rows index of cloned tables
I want to add form validate rulse to some form element (fields_en and fields_kh) after country was selected and equal value to "KHM" and addressTypes = POST so I will apply this rules to current ...
0
votes
0answers
6 views
query about XML requests in JS
There are two XML requests I am making to server, from both of the request I am receiving different data, I want to work on that data when it is prepared means the requests have received there ...
0
votes
0answers
13 views
following error is coming while executing
I am trying to login using the Selenium web driver. The username and password come from the Excel sheet(hari.xlsx). The following error occurs:
" Error: Main method not found in class Test_Pack1....
0
votes
0answers
13 views
How would one create this style of gallery using html, css, javascript and wordpress as the backend?
I have a wordpress gallery set up on my website, so that the client can upload their own photos to it. However, I want to make it so that when they click the image they want to view, the "lightbox" is ...
1
vote
0answers
19 views
How to use session which is created by server in jQuery?
First of all i have a website which is designed by me cause i am a front-end designer. I have API for the back-end server which was created by someone else.
I have successfully made a request and ...
0
votes
0answers
29 views
trigger ctrl+s event when button is clicked
I have a button. Now when I click on the button the cltrl+s will be pressed or triggered in jquery or java script .How to do that/ I have tried,
$("#Save").click(function() {
var e = $.Event( "...
0
votes
1answer
14 views
What is the use of “arguments[0]” when implementing javascriptexecutor?
I have implemented successfully javascriptexecutor but i want to know why we take this array "arguments[0]"?
Here is the code below:
IJavaScriptExecutor executor = (IJavaScriptExecutor)driver;
...
0
votes
1answer
28 views
Error message will show if user is already available in the database
Im validating the textbox whether the values are already available in database or not. in the below code it is working fine also showing alert message(Notification ID Already Available).But If i click ...
0
votes
0answers
8 views
Doughnut Chart: JavaScript runtime error: Unable to get property 'width' of undefined or null reference
success: function (data) {
debugger
var doughnutOptions = {
segmentShowStroke: true,
segmentStrokeColor: "#fff",
segmentStrokeWidth: 2,
percentageInnerCutout: ...
0
votes
3answers
35 views
Changing “+” in textarea to <input type='checkbox'>
I want to convert all the + sign in the textarea field where the user types and parse that + sign and the text after it until the newline character into an HTML input checkbox.
For example, if the ...
0
votes
2answers
27 views
Extracting properties from array
I have this function which takes a json parameter which contains an array of search objects.
function receiveSearch(search, json) {
return {
type: RECEIVE_SCHOOL_SEARCH,
items: ...
1
vote
0answers
15 views
Event won't unbind
I came accross arguments.callee.caller which seemed to solve the problem unbinding anonymous functions, however I don't really understand why this works in some cases but not others.
//Example 1
...
1
vote
1answer
17 views
How to pass parameters from front end to python script
I'm trying to pass the parameters defined by a user in the front end to a python script being run on the server. I'm using a Django framework in the back end (probably too heavy for my purposes at the ...
0
votes
2answers
24 views
Capitalize Words After Each dot (.) & Starting of a String
How to capitalize each words on starting of a string and after dot(.) sign?
I made a research on google and stackoverflow, below are the codes that I achieved but this will only capitalize starting ...
0
votes
1answer
18 views
How to make autocomplete class in sublime text 3?
How do I get when I type container in the sublime, this appears autocomplete : <div class="container"></div>.
I had installed package, but it's not working
Thank you
0
votes
0answers
13 views
Automating embed content in Internet Explorer using Selenium
Table I am trying to access
I am trying to access a table on a webpage that lies in an embed tag. I'm unable to access (I need to check/uncheck the checkboxes) the table using Internet Explorer. The ...
0
votes
0answers
6 views
searchfield sapui5 show data from json
I already bind json data to view sapui5. but I want toast show value from json by selected id.
JSON data:
var data_suggest = [{"key":"1","value":"value dari 1", "description": "Satu"},
...
0
votes
1answer
17 views
Using CSS Modules and 3rd party packages
Here is the relevant part of my webpack.config.js file:
module: {
loaders: [
{
test: /\.css$/,
exclude: /node_modules/,
loaders: [
"...
0
votes
2answers
32 views
solving the 2-sum algorithm in javascript
I'm trying to write a simple solution to the 2-Sum problem in Javascript. The problem goes: given an array of n integers and a target sum, determine what combinations of two integers will sum to the ...
0
votes
0answers
7 views
Connecting to my parse server returns 404
I'm trying to connect to my parse server in javascript with the following code:
Parse.initialize("myappid", "myclientkey");
Parse.serverURL = "http://myserver.com/parse";
And I'm getting the ...