I need to send a JSON (which I can stringify) to the server and to retrieve the resulting JSON on the user side, without using JQuery.  If I should use a GET, how do I pass the JSON as a parameter? Is there a risk it would be too long?  If I should...
I suppose I could use PHP to access $_GET variables from JavaScript:  <script> var to = $_GET['to']; var from = $_GET['from']; </script> <script src="realScript" type="text/javascript"></script&g...
I have json file mydata.json, and in this file is some json-encoded data.  I want obtain this data in file index.html and process this data in JavaScript. But a don't know how to connect.json file in .html file?  Tell me please.  Here is my jso...
Is there any difference between these solutions?  Solution 1:    function doSomething(id, value) {   console.log(value);   //... } <input id="theId" value="test" onclick="doSomething(this.id, this.value)" />     ...and...
I'm trying to get my function to return the http get request, however, whatever I do it seems to get lost in the ?scope?. I'm quit new to Node.js so any help would be appreciated  function getData(){   var http = require('http');   va...
On w3schools.com(url) there is an example of how to do an AJAX call with plain Javascript. If you look at the example you will see the call is triggered by a button:  <button type="button" onclick="loadXMLDoc()">Change Content&l...
i've recently tried to get some Response from an URL using jQuery. Therefore I copied a get request sample of jQuery API Get Request Tutorial into my project and tried to run it, but my debugging messages showed me, that it can't go further....
I have tried to set a cookie using document.cookie = "tagname = test; secure" but this does not set the secure flag. Am I setting it wrong? Can you only set it from a server response? I am also wondering that, because I have had a difficult t...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.