15,688 Topics

Member Avatar for
Member Avatar for vizz

my connection to **WebSocket** is getting Disconnected continuously. I'm working in folder `realtime` on `localhost`. How to keep WebSocket connection live? How to use WebSocket in javascript? **Link:** http://localhost/realtime/ <script language="javascript" type="text/javascript"> var myWebSocket = new WebSocket("ws://localhost/realtime"); myWebSocket.onopen = function(evt) { alert("Connection open ..."); }; myWebSocket.onmessage = function(evt) { alert( …

Member Avatar for anthonydaly
0
3K
Member Avatar for PureManurea

Hit upon [this thing](https://hcaptcha.com/) recently. Seems like a good alternative to Google's reCaptcha. Website users solve the captcha, website owners get paid and AI companies get their data labeled. What do you think guys?

Member Avatar for rproffitt
0
491
Member Avatar for dwlamb

I am working on a project for drag and drop items in a shopping cart. For an item dropped into the cart, I am trying to implement jQuery $.ajax. The result back from the PHP is pre-pended with '`' and I can not figure out why. This is the javascript: …

0
2K
Member Avatar for retroisbest

I have multiple HTML tables which is generated by PHP, Each table has a dynamic ID assigned to it What i would like is a total of the time in the "Worked Time" column for each table. [![enter image description here][1]][1] <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta …

Member Avatar for retroisbest
0
1K
Member Avatar for Mr.M

Hi DW. If you check [this](https://iwpe.000webhostapp.com/iwpe/) you will notice that at the bottom right hand side there's an added image which is also a link for the hosting site, note that I own the site you will see and I'm not the one who added that image but it was …

Member Avatar for Mr.M
0
1K
Member Avatar for shraddha_patel
Member Avatar for Gloak

I have been trying to get Lat Lng from this code using the same call to Google Geocoding API, but I have not found a way. Any suggestion would be greatly appreciated! /*! * geotext v1.0 * * https://github.com/Frizzled/geotext * * Copyright (c) 2014 Vladimir Loscutoff * Released under the …

Member Avatar for Gloak
0
1K
Member Avatar for Rushabh Verma

I am trying to create copy to Clipboard Component. Here is my code: import React from 'react'; import logo from './logo.svg'; import './App.css'; class CopyClipboard extends React.Component { constructor(props) { super(props); this.state = { copySuccess: 'Copy to Clipboard!' } } copyToClipboard = (e) => { this.textContent.select(); document.execCommand('copy'); e.target.focus(); this.setState({ copySuccess: …

0
184
Member Avatar for herdhemhola

I am having problem in submitting this form when I select "1" on the number of setting in html form. The submit button is working if I select 2 in the number of sitting from html form as it will show all the form fields but when I select 1, …

0
433
Member Avatar for aveeva7

My code about filterable audio searching, here how can i add Add-To-Cart functionality? code : index.php <?php //index.php include('database_connection.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Voice Repository</title> <script src="js/jquery-1.10.2.min.js"></script> <script src="js/jquery-ui.js"></script> <script src="js/bootstrap.min.js"></script> <link rel="stylesheet" …

0
328
Member Avatar for Simona_1

Hello, I am making a website ... I have a body class with background color, and a div container inside that has some content. What I want to do is to make the background clickable, and when you click it it should redirect to another page. In other words, I …

Member Avatar for gentlemedia
0
421
Member Avatar for designershiv

Menu sub links overlapping when select box opens , how to fix this Check this below link for reference http://i.stack.imgur.com/lCCWO.gif

Member Avatar for Sujay808
0
3K
Member Avatar for kesavankani

Hello Frds, select box option add new state in add.already same state in condition check already exist using php pdo.please help me.

-1
323
Member Avatar for Georgia_1

currently working on a project for college. when searching coffee names from the array list , it will only show the first object in the array list but when searching others, it says 'coffee not found' any help would be appreciated public static void search () { if (numberOfCoffees > …

Member Avatar for JamesCherrill
0
301
Member Avatar for kesavankani

Hai Frds, My question is i have create select box using state,district,city and town.select state box click add option select box change text box add/edit in text box add tha value save in state select box. How do please help me

Member Avatar for Dani
0
390
Member Avatar for engrjd91

I have performed some query operations in nodeJS with mySQL and now I want to have a reactJS form to be embedded with it to display the results on web page. Can anyone give an idea how can I achieve the same? var mysql = require('mysql'); var con = mysql.createConnection({ …

Member Avatar for pankaj_patel
0
507
Member Avatar for alabamalox
Member Avatar for rproffitt
0
216
Member Avatar for alabamalox

browser application to draw, print the text. in programming language typescript. in not found google source... help! Help me find I need source code

Member Avatar for rproffitt
0
352
Member Avatar for tun712

I'm working on site preloader. I need help to animate div width on every image load **Concept** Check every image in container is loaded. On every image load increase width of loader in percent to match **100% loader width** ( 100% of viewport) on last image load. After last image …

Member Avatar for RuhiAngel
0
439
Member Avatar for sagar_14
0
297
Member Avatar for ddc1975

Hello everyone, I am new to this daniweb community and I really hope you guys will help me with this as I am baffled at what I couldn't come up with or was it not possible to do that? I want to have a checkbox on either PHP page or …

Member Avatar for ddc1975
0
2K
Member Avatar for sagar_14
Member Avatar for Cedo

Hi, I want to make online shop and I made most of it but I have problem on product page.I want for "customers" ( this is my personal project so ... ) to be able to choese and then what they choese to be store into table. I struggling with …

Member Avatar for AndrisP
1
524
Member Avatar for aveeva7

Here my form auto responce based on drop-down list, <tr> <th>Shipping Cost (Rs) : </th> <td id="findata"></td> <input type="hidden" name="shipping_cost" id="shipping_cost"/> </tr> <tr> Same page Ajax : <script> $(document).ready(function(){ $('#new').on('change',function(){ var zip = $("#zip_postal_code").val(); var country = $("#country").val(); $.ajax({ type: "POST", // url: "ajax_ship_cost_data.php", url: "sp_cost.php", dataType: "text", data: { …

0
351
Member Avatar for aveeva7

I have magento shipping charge code : <?php ob_start(); // require_once(__DIR__ . '/app/Mage.php'); require_once('./../app/Mage.php'); umask(0); ini_set('display_errors',true); ini_set('memory_limit', '1024M'); Mage::app()->loadArea('frontend'); function getShippingEstimate($productId,$productQty,$countryId,$postcode ) { // $quote = Mage::getModel('sales/quote')->setStoreId(Mage::app()->getStore('default')->getId()); $quote = Mage::getModel('sales/quote')->setStoreId(Mage::app()->getStore('english')->getId()); $_product = Mage::getModel('catalog/product')->load($productId); $_product->getStockItem()->setUseConfigManageStock(false); $_product->getStockItem()->setManageStock(false); $quote->addProduct($_product, $productQty); $quote->getShippingAddress()->setCountryId($countryId)->setPostcode($postcode); $quote->getShippingAddress()->collectTotals(); $quote->getShippingAddress()->setCollectShippingRates(true); $quote->getShippingAddress()->collectShippingRates(); $_rates = $quote->getShippingAddress()->getShippingRatesCollection(); $shippingRates = array(); foreach ($_rates as …

0
267
Member Avatar for tun712

Got Client with need of **"online print shop"** Client is providing paper printing (like business cards, flyers), printing on cloths, office stationary, logo embroidery on any type of clothing. Client provided some examples. **Links** * [rockdesign](https://www.rockdesign.com/) * [moo](https://www.moo.com/ca/) * [readyprint](https://www.readyprint.ca/) * [vistaprint](https://www.vistaprint.ca/) * [printshop](https://printshop.ca/) * [printvenue](https://www.printvenue.com/) **Where do I start?** …

Member Avatar for Mara_2
1
4K
Member Avatar for annya

Dear , We have an billing script when we enter value on the submition page it will create an recipt number and other details we have entered in the form on the page recipt.php that was the first code. Past year the script was working fine but now it was …

Member Avatar for rproffitt
0
4K
Member Avatar for Mr.M

Hi DW. Can someone with Windows 10 help me out by testing my library on Edge browser and open the developers console and see if there are any errors that are causing the library not to work on Edge browser. The library is http://iwpe.000webhostapp.com/iwpe This should encrypt your password on …

Member Avatar for Mr.M
0
3K
Member Avatar for aveeva7

I have predefined value like shipping_weight = 10$, my form consisting two dropdown list, if the dropdown selected based on the selection how to return my ajax value, Index.php : <tr> <th>I have : </th> <td> <select id="old" name="i_have"> <option value = "select_option">Select Option</option> <option value = "three_compact">3 Compact</option> <option …

0
2K
Member Avatar for digrev01

I have downloaded phantomjs library and created a test.js file inside bin folder and wrote some code and execute it using command prompt it works great so far so good But I am required to call this test.js file from a php file The problem is including test.js file like …

Member Avatar for rproffitt
0
271

The End.