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

Change product image by selecting only one attribute in Woocommerce Variable Products

This relates to an online clothing store. We have variable products set up with colour and size attributes, for example a product might have 2 variations; Green/Any Size and Black/Any Size. There is an image of the product in the corresponding...

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

Truncating Collection description text in Shopify

I am trying to add "Read more" and "Read less" buttons to collection descriptions for my Shopify store how can I add Html with liquid conditions? Currently, {{ collection.description }} is the only thing on collection.descrip...

Modal dialog getting closed on submit and without processing form

I have a modal that when opened through ajax displays a form with a submit button. The modal is getting opened successfully but when I am submitting the data in the form the modal disappears without doing the requisite function. I have tried m...

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 to Canvas HTML script Animate shapes

I have created a Canvas and I am working with HTML and inside the HTML script tags I have created shapes that I want to move to animate. I want to add an animation to my Canvas. I Want to animate the Triangle and the Hexagon so that they rotate a...

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 write the following Java Program

design and implement the following structure for your organization. You must follow the instructions given below 1 – Name of you organization is your surname. For example, if your name is “john wicki”, then “wicki”...

I need help making JavaScript remember user input

I used HTML and JavaScript to allow a user to enter text and then push submit. When the user pushes submit, his text is displayed on the page. The problem is that when the page is reloaded, the text goes away. Obviously. Here is the code I have: ...

How to Read Data from Firebase in NoSQL?

//Signup const signupForm = document.querySelector("#signup-form"); signupForm.addEventListener("submit", e => { e.preventDefault(); // feel free to change the object keys to match your data model db.ref("users/").push({ ch...

How to Create Server for Multi-user Quiz using HTML, CSS, & JavaScript?

I am designing one quiz for my team members using HTML, CSS, and JavaScript but don't know how to make it available to multiple users at the same time. I want to build a real-time quiz as we have in any online entrance exam.   I kn...

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

Getting Error When Trying to Pass JSON PHP to JS with Ajax!

Hey, I'm in desperate need. I have made a JSON object with PHP named userAuth and I am trying to pass it to a JS file with Ajax, here is my PHP code (auth.php):   $userAuth->access = 1; json_encode($userAuth);   ...

How to Get the API Calling in AngularJS Application?

Assume that there are 3 APIs. Each API does exactly the same task(to give you weather details) but has different endpoints as follows: API 1: Can only be used for India. Has methods named requestWeather(), requestWeatherDataForWeek() ...

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 My Quiz Web App Not Displaying Result on Submit?

Every time I click the button to submit my answers the page refreshes and no grade is shown and I don't know why.   Any help would be greatly appreciated.   My code is below: <!DOCTYPE html> <html> <h...

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 Understand Semantics Bootstrap Package so as to Edit JS?

Having a hard time understanding this bootstrap package. I used NPM to install it. I've done everything in the doc file (which is pretty limited). I'm trying to use the search dropdown. I want to edit the JS because putting it in the HTML...

While creating PHP login script using Javascript Ajax, Why I ain't getting response?

create php login script using javascript ajax ? i have this script for php login and i need to use ajax to login the users but i can not make it work i can't get response form processing page and i use alert function to alert response text...

How to do styling of a page header layout to fit in tablet & smart phones?

I have this page header and i need to make responsive so it can fit in tablet and smart phones and i need to direct form right to left and how can i use pure javascript to achive that (no Jquery needed)    <!DOCTYPE html> ...

How to Resolve Uncaught ReferenceError: TrialScript is not defined

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

How to capture image from front camera in backend on button click using phonegap?

I Want to learn about how to capture image on login button click from the front camera of smartphone without knowing user and display the pic on the next page. For development I am currently using PhoneGap. Please help.

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

using ajax to load content from php file without jquery ( TABS)

i want to make a tabs that generating content from database based on what users click. i want to have a script which uses PHP, ajax and JSON if needed. but i don't want to use jquery. Could you please Help me? here is what i hav...

Repeat form on add form button

Hello everyone when I click on button repeat, the form is repeating. In this form I am using bootstrap color picker but when form repeat color picker not works in repeated form. this is my form:   <div class="col-sm-12 "> <...

Attachment Download Feature : Streaming huge(> 1 GB) data string from javascript to JSP

Hi All, Feature Goal : To send a huge(sized) string data from javascript side to JSP and download that data as an attachment to user's machine. Current behavior : We are sending limited sized data in post body (<= 25M...

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

What are some of the best hybrid apps and what level of programming experience is needed to build one?

I've heard that a hybrid app is built with a combination of web technologies like CSS, HTML and JavaScript and it can easily access hardware capabilities of the mobile device. Please enlighten me with some examples of the best hybrid apps ...

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