Hi all, here a very fast example on how to read json data from file in Javascript,
here the content of *.htm file:
<!DOCTYPE html>
<html>
<head>
<title>LWebCode Javascript Read JSON from file</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script type="text/javascript" src="mydata.json"></script>
<script>
function ReadData()
{
var dataLstAz = JSON.parse(jsLstData);
alert(jsLstData.length);
for (var key=0, size=jsLstData.length; key<size; key++)
{
var obj = jsLstData[key];
liout = obj.Name + ", " + obj.Age + "<br/>";
$("#Output").append(liout);
}
}
$( document ).ready(function() {
ReadData();
});
</script>
</head>
<body>
<div id="Output">
</div>
</body>
</html>
Here the content of "mydata.json" file,
put this file in same folder of *.htm file, or change path in *.htm file:
jsLstData = '[{"Name":"MyName1","Age":"20"}, {"Name":"MyName2","Age":"22"}]';
//End of file "mydata.json"
Now simply open *.htm file in browser and you'll get this output:
MyName1 20
MyName2 22
That's it, hope it helps
Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts
Tuesday, 18 April 2017
Saturday, 18 March 2017
Send Mass Mail C#, PowerShell, Visual Basic, ASP, PHP, Curl, Node, Ruby, Python, Java, Go
Hi all, here some example and links to send Mass mail,
All this site can works with most common language: C#, PowerShell, Visual Basic, ASP, PHP, Curl, Node, Ruby, Python, Java, Go,
have lot of report and statistics graph, offering high level of personalization, and allow you to create your custom Marketing campaign
http://www.mailjet.com
Free Account has:
Month Max Limit: 6000
Day Max Limit: 200
Developement Support: SMTP , API
http://www.mailgun.com
Free Account has:
Month Max Limit: 10000
Day Max Limit: 400
Developement Support: SMTP , API
http://mailchimp.com
Free Account has:
Month Max Limit: 12000
Day Max Limit: ?
Developement Support: API
All this site can works with most common language: C#, PowerShell, Visual Basic, ASP, PHP, Curl, Node, Ruby, Python, Java, Go,
have lot of report and statistics graph, offering high level of personalization, and allow you to create your custom Marketing campaign
http://www.mailjet.com
Free Account has:
Month Max Limit: 6000
Day Max Limit: 200
Developement Support: SMTP , API
http://www.mailgun.com
Free Account has:
Month Max Limit: 10000
Day Max Limit: 400
Developement Support: SMTP , API
http://mailchimp.com
Free Account has:
Month Max Limit: 12000
Day Max Limit: ?
Developement Support: API
Subscribe to:
Posts (Atom)