Questions tagged [jquery]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
98 views

is not a function at HTMLInputElement.onclick error [closed]

I have this error > App.validate is not a function at HTMLInputElement.onclick The code is here : i get error in the last ( >) input type="submit" name="submit" onclick="App.validate()"
2
votes
1answer
63 views

How to set the call back in WEB3 with Jquery

I have 2 functions in blockchain contract to get the investors and funds for an address and tried to save that in excel. 1st Function To get the list of investors getInvestorsList() 2nd Function ...
1
vote
0answers
52 views

Metamask mapping calls receive inconsistent return

Below is my js function that takes an array of orderId and call them one by one - to get the creator address and go on. It is chained in a series of promises with similar Ethereum smart contract ...
0
votes
1answer
434 views

web3.js token approve function show null / 0 in Metamask

EDIT The allowance is set, the issue is just that metamask detect no token name nor amount that is allowed. In my HTML/JS amount = parseInt(web3.toWei(amount, "ether" )); tokeninstance.approve(...
0
votes
1answer
447 views

Calling a “view” function using web3js

--- HEAVILY EDITED --- Solidity contract: pragma solidity ^0.4.24; contract PatientRecords { struct Patient { string ID; string weight; string height; string diseasehistory; ...
1
vote
2answers
590 views

MetaMask Web3 object does not support synchronous methods without a callback parameter [duplicate]

I'm new around here and would appreciate some intuitive help. I wrote a contract and made a UI for it, and it's all working fine with ganache-cli. However, now that I've launched it on Ropsten and on ...
0
votes
1answer
86 views

Store ABI Value in var

I've finally managed to get my web3.js to work.. I did this only for the purpose to display one specific value on my website.. I'm not so good with jquery and hope you guys can help me out. This is ...
0
votes
1answer
162 views

Metamask stuck at Unknown network ID

I'm getting unknown network ID error on transferring a token in meta mask as in the image below. I'm using local network with ganache. I can transfer from metamask account to another after ...
0
votes
1answer
184 views

Solidity How to pass argument to constructor from client side

How to pass from argument to constructor function in solidity that can be received as msg.sender . This is my constructor code constructor(uint256 _initialSupply)public{ totalSupply = ...
0
votes
1answer
133 views

The MetaMask Web3 object does not support synchronous methods

Hi I'm having this error when I try to set a variable in remix. inpage.js:1 Uncaught Error: The MetaMask Web3 object does not support synchronous methods like eth_sendTransaction without a callback ...
1
vote
0answers
84 views

Should I connect to the blockchain from the client or server side? [closed]

I am trying to build a simple Dapp for buying and trading tokens. Which of the following would be a better way to integrate with blockchain: On the server side On the client side Which is more ...
1
vote
0answers
70 views

How to connect with different node if main node get down in private ethereum blockchain?

I have created private ethreum blockchain,It is hosted in LAN network and connected with 3 nodes, i am using one main Node IP (e.g 192.168.1.27:8546) to connect my application(created using web3.js ...
1
vote
1answer
2k views

How to pass a parameter to a function in web3?

I have a button that executes a function in a solidity contract like this: <a href="#" onclick="solidityFunction()" class="btn btn-primary btn-block">Execute Function</a> The ...