Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Apply this popup feature for infinite users

I made a popup feature, which shows the phone number of a user. I was able to apply this feature to one instance. A single user. Normally, each user has a unique phone number. But then, I thought, what if I have lots of users as they come, ...

moving between section page using next and previous button in javascript

In the same page i have multiple section. One section will be show and this will happen using a class active. In the same page i have li buttons 1, 2 and 3 when i click on one of them the section related appear and the old one disappea...

Data Structures: How to Remove Items?

Hi.  Is there an order of operations of sort when de-constructing or constructing arrays? Example: I have a n array with eight numbers. I want to .shift( ) the the first number in index "0" then .splice( ) the ...

How do I adjust the top position of a div with a dynamically fixed position?

I have a page with a fixed top bar and a section menu that fixes to the bottom of the viewport on small devices and at the top, below the top bar, on devices with viewports wider than 1080px. There's also an element at a certain point down...

Unable to display the screen as a video in the video tag using Javascript code

I am making a kind of proctoring website and for it I needed access to the user's screen and display it as a video to the proctor, so that he can monitor it. here is my code: <div id="userscreen"></div> <script> d...

How to Split String From a Javascript File into Two Array String

I want split string from file into two array string......   file contain this-   Bangladesh= 109.408 India= 92.7478 Pakistan= 200.550 USA= 1.29221 Europe= 1.16989 UK= 1 SA= 4.85180 Australia= 1.90035 Can...

How to Get Coordinates of Shapes Like Triangle, Polygon On Canvas in JS?

See Below Code:   import { Component, OnInit } from '@angular/core'; import { fabric } from "fabric/dist/fabric.js"; @Component({ selector: 'app-p-five', templateUrl: './p-five.component.html', styleUr...

How to Convert Jquery Code in Javascript?

See Below:    var min = 99; var max = 999999; var polygonMode = true; var pointArray = new Array(); var lineArray = new Array(); var activeLine; var activeShape = false; var canvas $(window).load(function(){    ...

Meteor SocketIO Client-server Connection Not Established

I’m trying to connect a client app locally deployed to a server app I deployed to heroku, using socket.io. The app works great locally but I can’t establish the web sockets when deployed to heroku.   My server code: &nbs...

How to Start Developing a Web Application?

Hi there,   I am trying to create a Web Application but not sure where to start! Any ideas or any link for article or tutorial/video/post?   I know HTML, CSS, JS, Python, C and C++   Also, PHP, MySQL and MongoDB ...

POST/GET Method not Working in Heroku with MongoDB / Node.js

I am deploying an small app that was working with my localhost but now on Heroku i am getting some problems with the GET and POST methods. I have tried investigating for several hours but haven't found the correct answer yet.   Bel...

Why my Javascript Ajax Function Return False Always? How to Fix it?

I need to create ajax php registration page but i have some errors i could not solve.   The function (CheckExamineeNameAvailability AND CheckExamineeEmailAvailability) return false value even if the username or email were available ...

JavaScript Validator for String Expression that Allow Arithmetic Expressions

I need a help in writing a validator in javascript or JQuery for a string expression that will allow arithmetic expressions like (),+,-,*,/,min(),max(),avg(). In the string, min(),max(),avg() should allow only two arguments. Sample string...

How to Run One JavaScript Function After Other Using Delays

First things first, I added the JS to the HTML so I don't have to attach multiple files. Hopefully this helps.   I've been having some trouble running one function that slowly displays a message, waits, then fades out. However,...

How to Fix Javascript Code for Getting Href Content of a Link

I am trying to get the href content of a link that i click on with the class of sessionBtn.   Here is my code:  $('.sessionBtn').on('click', function (e) {   e.preventDefault();  var url_string &nb...

Clone a division and creates a unique id for each created division

I want to clone a division and want that each sub division created should have a different id

Why isAuthenticated() Function In JavaScript App Always Returns False in express-passport?

The req.isAuthenticated() function of api.js always returns false regardless whether the user is logged in or not. This particular function doesn't seem to work. I don't know what to do. I am stuck on this for a long time.   I...

How to Resolve Uncaught ReferenceError: TrialScript is not defined

<html> <head> <Title>Demo Script</Title>  <script type="text/javascript">                 function TrialScript()            ...

How to access child components value in parent component in React JS

Currently I am using react create app to build my application in my application had three component those are com1, com2, com3 I want to update userId state value in com1 based on com3 will receive props here com2 is child component of com1....

How to use webui-popover with dynamically generated table (JQuery)

I have a table outputting some results to the screen in tabular form. For each table row, I have a column with an icon (more). What I want to achieve is that for each icon, on click, it shows a pop-over, similar to what Tidal does. But so far, it...

How to eliminate render-blocking JavaScript and CSS in above-the-fold content

Hello Nerds, While creating a project, i found that the pages are rendering very slow. After testing and searching i found that my pages have some blocking CSS resources which are causing delay in rendering my pages. Please help me how to elim...

Which JavaScript frameworks to learn in 2016 according to you?

Hello Nerds,   I am learning JavaScript framework but confused !. :( There were new versions and releases of Frameworks. I don't know which one is best. Any help would be appreciated. Thanks in advance. :)

google maps javascript api - ssl - https - Webview

i have few questions about google map: i make web application based on php, mysql, javascript, jquery, jquery-mobile,Google Maps Directions API, Google Maps Geocoding API, Google Maps JavaScript API, Google Places API Web Service. custo...

How to avoid memory leak with jQuery?

Hello Nerds, I am using jQuery event listeners. As i know jQuery doesn't store any information itself. It stored the information in $.cache object. When ever i call event listner it will create a new entry in $.cache object. How can i get ...

Exploring closures in functions in depth

var ClosureDem = function (arg1) { return function (arg2) { return arg1 + arg2; } } ClosureDem("Hello")(" world!");//-> "Hello world!" Recently, I started learning about closures in functions and found a lot of new things f...

Please guide to a javascript code packet

Please guide to a javascript code packet which I can use to upload file without refreshing the page and the browser does not support File/FileReader object

Embedded one page slider is not working properly

Hello!   Now I'm working on the project similar to this one here. I cant make the one page slider work properly. I tried on many different way but still it's not working. I wish to make the slideshow start to work when it is pi...

prevent form submitting in Jquery ?

how can i prevent submit if i got next :- username is too short first character must a letter user_name is not available invalid E-mail format E-mail is not available password do not match i got other problem password confirmation is not...

send data into php using javascript and ajax

i need to send data into my database using ajax but i don't need to send duplicate data so how can i return false if the username or email already exist in my database or prevent submit also i need to prevent submit if the password fields are...

prevent countdown timer for being restarted

how to prevent countdown timer for being restart when you hit refresh in your browser <div id="quiz-time-left"> </div> <script type="text/javascript"> var total_seconds = 60*10 ; var minutes = parseInt(total_se...

Autofill functionality for website forms

I have a website whose source code cannot be changed.It has several forms which has repetitive fields so for reducing manual filing of repetitive fields i want autofill functionality.I will have another website from where data will be stored and ...

how click ad and my link by single button

I HAVE ADSENSE AD CODE FOR MY WEBPAGE : <!-- Begin BidVertiser code --> <SCRIPT SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=719755&bid=1786221" TYPE="text/javascript"></SCRIPT> <!-- End BidVertiser code --&...

How to hide a content on stacked Bar Chart below X - Axis

I have drawn a horizontal stacked bar chart using d3 js in a box frame on jsp page. But the stack bar chart is huge i.e. SVG content is so big that all the bars of the stacked bar chart does not fit in the box and I have to put auto overflow in t...

Ajax calls start failing if my app is inactive; otherwise they work just fine on WiFi

In my Phonegap based hybrid app: Ajax calls start failing if my app is inactive for say a couple of minutes. My connection is WiFi & what happens is ajax calls fail with status 0; but navigator.connection.type still shows ...

Ser error message fadeoff on hover of field after submit form.

Hi All Developers, http://www.katjaboehm.de/kontakt/ On this page, after submitting the form. I've setup error message gets fade off (hide) on hover of text field. This form is created using contact form 7. I need same functionality on this...

Compare two numbers

Can you tell me why this isn't working with comparing numbers?? All assistance is truly & greatly appreciated. function init(){ var a = document.getElementById("a").value; var b = document.getElementById("b").value; var com...

ngCordova oauth facebook

I want to create a facebook login for my ngCordova hybrid app.In backend i use node js.But in client i've saw a plugin which use clientID(app id) from facebook developers.I don't know how to create this client or how to work with this plugin.Doe...

How to build a native menu using ionic cordova?

I'm using ionic to build an hybrid application.I want to have some menus native (my menus are using ionic css and i think are not native).How i can build a native menu and what i should use ?

On paste event in javascript.

I am using a telerik editor control in my web app which by default has On Paste (Ctrl + V) event handler which open a dialog box. It is working in latest version of IE(Edge), Firefox and Chrome. But I need to make it support in IE 7 and 8. In IE ...

How to detect collision between two elements.

Can any one give me the idea. How I can detect collision between 2 dom element. I have got this code form MDN. But can't go thorough it. Please help me. var rect1 = {x: 5, y: 5, width: 50, height: 50} var rect2 = {x: 20, y: 10, width: 10, heig...

Ionic auth with express and mongoose

Hi! I'm trying to develop an application.But i'm a little bit confused about auth.I've seen more examples from github but their code are realy difficult and it's very hard to understand it .I need if it's possible,a small working example to under...

Avoid Discrete Polygon Colliders in Spritesheet Animations

Scenario :- I am using a spritesheet with a few frames to run my animations in ImpactJS. As using large number of frames can increase my sheet size. Basically it is a shot playing animation in which I have applied Polygon collider to the bat wit...

Need Spine Plugin for ImpactJS

I have found this cool plugin (https://github.com/aceangel3k/Spine) for using Spine animations (http://esotericsoftware.com/) in ImpactJS (impactjs.com). But this plugin has a lot of bugs mainly scaling of child bones to parent bones. Can You...

How to set high velocity in Box2D

I want to throw an object in Box2d by applying a force vector, But it is limited to a certain velocity even if I Apply Force by a very high value? How can I achieve this ? For Ex:- I have to fire a bullet at a very high speed. var force = new ...

How to access frame numbers in Spine Animations

When using Spine (http://esotericsoftware.com/) JavaScript version. How can I access the frame numbers while the animation is playing as I have to perform some tasks based on them ?

create object and object's combination

I need help in javascript friends I have 3 javascript array. var color = ["red", "yellow", "blue"]; var size = ["xl", "xxl", "xxxl"]; var style = ["cotton", "silk", "jins"]; and i want string like bellow line using javascript or jquery. ...

nginx help

Does anyone knows how to work with nginx on windows?I'm trying to run an nodejs application.Can anyone help me ?

Disconnect strophe js from another angular controller

Hello! I make a connection to an xmpp server using node-xmpp-bosh.From my app i'm using strophe js to connect.I have two controllers.I make connection in first controller.In second controller i want to close connection .I've tried but i need to e...

Why cordova geolocation watch doesn't working?

Hello.I'm making an application in ionic.I'm using cordova geolocation plugin.I want when i change my position location to be updated .I should see an alert but i don't see anything.What i should do ? Here is my code: $ionicPlatform ...

Strophe receive only one message

Hi..I want to create a chat app.I'm using Strophe js with and xmpp server.I send a message to another client(Spark) and after that i can send one message from Spark to strophe client.Here is my code.I wil appreciate any help :) var connection ...
prev 1
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: