388 Topics

Member Avatar for
Member Avatar for rpv_sen

Hi I am working on displaying json data in ul li with href, i can able to print only ![Capture01.JPG](/attachments/large/3/db569cebc3c426d0b02202cde151137c.JPG "align-center") but my expected output should be as below ![Capture-01.JPG](/attachments/large/3/133e4688d5b3f612fb3dbe8ba2f26f17.JPG "align-center") <script type="text/javascript"> var data= {"query":{"simple_query_string":{"query":"A*"}}}; $.ajax({ type: 'POST', //url: 'data.json', url: 'urllink', dataType: 'json', success: function (data) { arr= …

Member Avatar for jkon
0
2K
Member Avatar for Hilal2009

I want to get results from this API as specified. But from what I know, I have tried to write some codes but it seems it doesn't work. I there any one can help me? here is the API http://1XX.XXX.XX.66:4848/SmartMeter/vms/credit?meterNumber=51751100044&amount=10&method=0&referenceNumber=12345678&return=JSON Request Parameters - meterNumber: Meter Number(Like 51931000049) amount: Amount(like 10 kWh,10 …

Member Avatar for pritaeas
0
548
Member Avatar for Andre_5

I use VB.net 2012 and Newtonsoft.Json Here my code Public Class Order Public Property nb As Integer Public Property product As String Public Property price As String End Class Public Class Person Public Property nb As Integer Public Property name As String Public Property address As String End Class Dim …

Member Avatar for PerplexedB
0
3K
Member Avatar for SimonIoa

Hello this is going to be a long post so thanks in advance for just reading it. I think it will help many users. I want to store additional data and to add new rows to a table. I know about mysql and php but i am not familiar with …

Member Avatar for SimonIoa
0
381
Member Avatar for _1_14

I designed app to make order for pizza food restaurant I show userid,menu id ,address,longtiude,latitude then press on button make order Error show after I press button and found in async task doin background It give me fatal exception error An error occurred while executing doInBackground() and it show to …

Member Avatar for rproffitt
0
1K
Member Avatar for toxicandy

I am trying to create a table in html/php that is dynamic sized but allows users to edit rows of the table, I have 99% of this done and the last piece is to send edited values VIA ajax to an edit page where I update to the database and …

Member Avatar for hielo
0
2K
Member Avatar for Abhishek_26

> i have bind 10 random post form json file in to marquee but the problem is arising , its show like list and showing as marquee works kindly check the code and the output , do some suggestion what to do . Thanks in advance <html> <head> <meta charset="UTF-8"> …

0
278
Member Avatar for Seung Hwan

I have a basic question. I collected some gps signal to some columns by python code. I want to read them and use some data in html-javascript. In this case, what kind of file is the easiest to read and use in html/javascript?? I made a text file but people …

0
86
Member Avatar for Seung Hwan

I made a json file and its contents are like these. [{"pdis": "pdistance", "time": "time", "lon": "longitude", "tdis": "totaldistance", "secsp": "sectionspray", "lat": "latitude"}, {"pdis": "0.000555", "time": "10:01:43", "lon": "126.952741667", "tdis": "0.000555", "secsp": "3343.0", "lat": "37.4805016667"}, {"pdis": "0.027396", "time": "10:01:57", "lon": "126.952753333", "tdis": "0.027951", "secsp": "3320.0", "lat": "37.4807483333"},~~~,{"~~~~~"}] I want to …

0
84
Member Avatar for arctushar

Hi I m developing a mobile apps which will fetch json data from my server. My server address is http://need4engineer.com/api.php this is not working. But same data from another server https://randomuser.me/api/?results=5 is working well. Both the cases header is same. Please help me

Member Avatar for rproffitt
0
181
Member Avatar for nunu_psu

Greetings everyone, I'm still new to android programming and currently leanrning how to connect to DB. I'm following a online tutorial but I'm still facing problems. The tutorial is about creat a registration form and sending it to the database through volley. I'm using .hostinger.ae as host and Android studio. …

0
189
Member Avatar for didinadeen

I'm trying to populate a multidimensional html table with data from a JSON. The idea is that the first row is with the dates and the next ones start with with the name of the value and for the value for the date in the first row. Just like and …

Member Avatar for panduranga_1
0
399
Member Avatar for RikTelner

Currently I have something like this (a bit modified): function function1($param) { $ans = @file_get_contents($param); if (!$ans) return ("Failure"); return json_decode($ans, true); } Extremely straight forward. However, the `file_get_contents()` gets answer from an API, that has proven to be a little stinky boa. It sometimes answers incorrectly, or "Access Denied" …

Member Avatar for RikTelner
0
779
Member Avatar for reminem

Hello Everybody, I searched the the internet and this forum, but cannot find the solution for my problem. Started with python and have this code (part of): import requests `def Send_invitation(): data = {"bsn": e3.get(), "initialen": e2.get(), "achternaam": e1.get(), "geslacht": e4.get(), "geboortedatum": e5.get(), "postcode": e6.get(), "emailadres": e7.get(), "screening_type": e8.get()} response …

Member Avatar for reminem
0
331
Member Avatar for Siberian

Anyone familiar with how to add a Galaxy S5 & S6 running Android Lollipop (5.x) to Chrome Web Device List; from what I know JSon is involved but I'm not familar with JSon, I hope I can get some help ?

Member Avatar for rproffitt
0
2K
Member Avatar for jmishal

Hi, I know parsing json data has been discussed lots but what I want is probably a little simpler I need a little editing to the bleow php script to work as convert json data and push it into MySQL table since the script work as reading the json data …

Member Avatar for cereal
0
3K
Member Avatar for newprogrammer14

First let me confess that I'm a beginner with little knowledge of Java. I'm facing a problem with XML to JSON conversion. The XML that I need to covert is complex with elements that will repeat throughout the document. And the order in which the elements appear need to be …

Member Avatar for milil
0
2K
Member Avatar for Smith5646

I am trying to find information on best practices for json data. I am working on a client server app that will contain family information. For purposed of this question, this is an oversimplification of the database. I have a family table, an address table, and a family members table. …

Member Avatar for AleMonteiro
0
290
Member Avatar for Abdulkabir_1

ID Arrival Departure ArrivalDate DepatureDate 1001 New York Holland 2009-09-23 2012-07-23 1301 Florida Germany 2010-10-23 2012-10-11 1401 New York Holland 2009-09-23 2009-09-25 1301 New York Beijing 2009-09-23 2010-09-21 1201 New York Holland 2008-01-01 2009-09-23 1001 Virginia New York 2008-01-01 2009-09-22 1021 New York Holland 2009-09-23 2009-09-25 1001 New York Holland …

Member Avatar for rproffitt
0
352
Member Avatar for shany0786

I am have debugging some javascript code in firebug,then i have seen some strange POST thing in firebug this is worrying me? I have registration form when i reload page i see in firebug following "POST http://api.adsrun.net/post" Response Header Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection keep-alive Content-Type application/json Date …

0
195
Member Avatar for Arun_15

I want to parse json to html, with angularjs, i am converting an xml rss feed to json with npm xml2json I am using angularjs http to get an xml from the server, i am using node module xml2json to convert it to a json object. I get the document …

0
167
Member Avatar for UK-1991

Getting an unexpected error don't know what the hell is wrong as everything is perfect as far as I noticed Parse error: syntax error, unexpected '=' in C:\wamp\www\dropbox-sdk\index.php on line 18 <?php session_start(); require_once "lib/Dropbox/autoload.php"; $_SESSION["user_id"] = 1; $dropboxKey = ''; $dropboxSecret = ''; $appName = 'puttiapp/1.0'; $appInfo = new …

Member Avatar for diafol
0
262
Member Avatar for UK-1991

Hello recently I downloaded dropbox SDK and Ii's located in my downloads folder and it's dragging me to hell how do we install it no proper description provided nor a good details so we would be able to install it can anyone help me out there is no code to …

Member Avatar for cereal
0
293
Member Avatar for silent lover

Dear Daniweb friends, I created adapter like this: public class PromotionAdapter { String code = null; String name = null; String continent = null; String region = null; public PromotionAdapter(String code, String name, String continent, String region) { super(); this.code = code; this.name = name; this.continent = continent; this.region = …

Member Avatar for silent lover
0
1K
Member Avatar for nosfa

Hi all. I cannot pass the values from the textboxes onm a form to the controller. view code <script type="text/javascript"> $(document).ready(function () { $("#btnSubmit").click(function () { var presc1 = $('#p1').val(), aviad1 = $('#a1').val(), $.ajax({ type: "POST", dataType: "json", contentType: "application/json; charset=utf-8", url: "comparar", data: "{'presc1':'" + presc1 + "', 'aviad1':'" …

Member Avatar for nosfa
0
206
Member Avatar for rchawdhari

Hi all, My project is on ruby on rails. I have one of ruby api returns json.jbuilder But I want that my api should not return json , it will display html.erb file Is anybody can help me???

0
309
Member Avatar for dawbin

I need to get user manipulated data out of my WinJS listview and convert it to JSON, but I can't figure how to access the data? Any help would be appreciated!

0
221
Member Avatar for cambraydesign

I have a JSON decoded array in php with foreach that includes a select option in a form every time I select an option from this drop down it returns the last value in the list. The option is just the selector not the value I'm trying to save. I'm …

Member Avatar for cambraydesign
0
2K
Member Avatar for Aeonix

I made an API request using AJAX request, I received JSON, I tried my best to use JavaScript to parse it, but to no avail. Instead I used jQuery which made it as painless as 2 lines of code. Now I have JSON array translated into array-ish object in JavaScript. …

Member Avatar for Aeonix
0
404
Member Avatar for divyakrishnan

Hi All, I am using php to create a Webservice API calls. I am checking all the service calls in Chrome's Postman and sending the data in JSON format. I want to upload an image in JSON format with other datas.Actually I have converted the image to base64 before uploading.Its …

Member Avatar for cereal
0
2K
Member Avatar for Mushfik

Hi. Below is the code which parse data from mysql into json, but for the name column i want to have <a href="http://example.com">column name</a> instead of jst the column 'name'. is it possible in any ways. <?php $link = mysql_pconnect("localhost", "user", "pass") or die("Could not connect"); mysql_select_db("userdb") or die("Could not …

Member Avatar for diafol
0
360
Member Avatar for Himanshu Chawla

I newbie in JSON Programming . I have scratched to much youtube and also google about the retrieve of data into string json using C# windows form application .. I haven't found anything till now. Please give a example and step by step procedure of how to retrieve the data …

Member Avatar for aclx
1
14K
Member Avatar for new_2_java

Hello all, I have a function in JS, that I need to translate in Java to be used in my JSP as part of server side script. I need to find out what's the equavalent of JSON.stringify() in Java? This is my current JS function. This functioin takes a CSV …

Member Avatar for peter_budo
0
2K
Member Avatar for Israel_2

I need help parsing json data to a specific format so I can put it on a line chart. More specifically a line graph using [highcharts](http://www.highcharts.com/demo/line-basic) This data comes from a query $data['graph']=$this->mymodal->graphmodal($id); foreach ($data['graph'] as $row) { //modify array.. } echo json_encode($data['graph']); The result this produces is the following …

Member Avatar for Israel_2
0
201
Member Avatar for gcardonav

I created a sample webservice that will ask the user for some information and return in JSON form all the information required. I have two issues here 1. I don't want to make it required that the user enter bot the new dates and renewal dates, I want to make …

Member Avatar for pritaeas
0
837
Member Avatar for phoenix254

I am new in programming languages.I was trying to learn web socket with javascript to this [site](http://socket.io/get-started/chat/), but i am not understanding something that why i need to use **Package.json**. I tried to google a lot, but can not find something useful. One more thing if i create Package.json then …

Member Avatar for cereal
0
185
Member Avatar for philjen

Hi Im a newbie in asp.net, im a php programmer though, and i've been working on a pop up div with a search engine on it, in php i have no problem working with json but in asp it took me already two days to find a similar problem, yet …

Member Avatar for philjen
0
644
Member Avatar for ramsiva

I have DB s_id sn_id sec_id 1 1 1,2,3 Based on sn_id i want to display sec_id and sec_name. I want to convert into json array format like this [{"sec_id":"1","sec_name":"A"}, {"sec_id":"2","sec_name":"B"},{"sec_id":"3","sec_name":"C"}] Any body helo to get json array format

Member Avatar for pritaeas
0
74
Member Avatar for blueguy777

how to store json output into seperate PHP variables? {"msg":"success","msg_text":{"9912345678":"N"}}

Member Avatar for diafol
0
274
Member Avatar for OsaMasw

hello guys, am very new to android development, ans am trying to do my best to learn it,I have json output created from one of my PHP projects here is my output [ { "id": "1", "name": "BEiN HD 1", "link": "http:\/\/www.mysite.com\/tv4.ogg", "image": "http:\/\/www.mysite.com\/images\/jsc8.png" }, { "id": "2", "name": "BEiN …

Member Avatar for peter_budo
0
417
Member Avatar for rpv_sen

Hi I am trying to read the datas from mysql using php in json. but i am not getting my expected output. Please help me to fix the issue. **code** <?php include('../config.php'); //mysql_query("SET NAMES 'utf8'"); $tdate = date('d-m-Y'); $url = 'url'; $sql = "SELECT * FROM pimage where date<='$tdate' and …

Member Avatar for rpv_sen
0
3K
Member Avatar for rpv_sen

Hi I have written a json file using php. But i am unable to display the css style. can any please help me to fix the issue. **my json code** <?php require_once('config.php'); function jde_date_conv($jde_date) { $ct = substr($jde_date,0,1); $yr = substr($jde_date,1,2); $dy = substr($jde_date,3,3); if($ct == 0)$yr_pfx=19; if($ct == 1)$yr_pfx=20; …

Member Avatar for rpv_sen
0
524
Member Avatar for Vivek_13

{"courseId":"116","question":"asdasd","ansIndex":"1","ans0":"sadsa","ans1":"dsad","ans2":"sadasd","ans3":"asdasd"} This is my Json String......How to Convert In to Xml File

Member Avatar for diafol
0
313
Member Avatar for blueguy777

my json decode script throwing error i.e. Error : DATA FETCH My code: <?php $api_url = '{"msg":"SUCCESS","msg_text":"DATA FETCH","data":[{"sn":1,"mob_no":"9602858989","date":"06-May-2015","time":"12:02:33 PM"},{"sn":2,"mob_no":"7795055128","date":"06-May-2015","time":"12:29:44 PM"}]}'; $output = file_get_contents($api_url); if($output=="") { echo "No output received"; } else { $arr_output = json_decode($output, true); if(isset($arr_output['msg'])) { $msg = $arr_output['msg']; $msg_text = $arr_output['msg_text']; if($msg == "success") { if(isset($arr_output['data'])) { …

Member Avatar for blueguy777
0
317
Member Avatar for chichi9

hi, so im trying to get the course names and teachers printed from the JSON file and having trouble linking it to the drop down please help :) html code <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Course Info</title> </head> <body> <h1>Course Information Search</h1> <form action="" method="GET"> <select name="course" id="course"> …

Member Avatar for mrsixcount
0
196
Member Avatar for amaya Gimhani

model controller function viewdashboard(){ $this->load->model('AgentPerformance/agentPerformance_model'); $value = $this->agentPerformance_model->dashboard(); //echo $value; return $value; view <html> <head> <script src="http://code.highcharts.com/highcharts.js"></script> <script src="http://code.highcharts.com/modules/exporting.js"></script> <script> $(function () { $('#container').highcharts({ chart: { plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false }, title: { //alert('ttttt'); text: 'Browser market shares at a specific website, 2014' }, tooltip: { pointFormat: '{series.name}: …

0
167
Member Avatar for Bchandaria

angular .module('abc') .factory('dashboard', dashboard); function dashboard($http, notifier) { var service = { getAllMasterJobsNames: getAllMasterJobsNames }; return service; function getAllMasterJobsNames(request) { return $http.post('/JSONServices/JSONCampusManagementService.svc/GetAllMasterJobsNames', request).then( function (response) { if (angular.isUndefined(response.data) || (angular.isDefined(response.data.IsException) && response.data .IsException)) { notifier.error('Error fetching the Active Events : ' + JSON.stringify(response)); } return response; }, function (response) { …

0
196
Member Avatar for jchimz

Hi guys I am attempting to get data entered in an HTML form through PHP then converting this data into a JSON object which will be saved on a server and retrieved to the form incase someone wants to edit entries. Please help and advice on an alternative if you …

Member Avatar for jchimz
0
397
Member Avatar for rouse

I the objective of the code that I attached this note is to Collect data in a form. Post to a PHP file where the collected information is turned into a JSON Write the JSON information to a file Return the JSON and print it to the an ID in …

Member Avatar for rouse
0
577
Member Avatar for Prince_9

I'm trying to make a curl through php below is the command line : curl -i -H "Accept: application/json" -d "{"username": "divmesselibrary", "password": "677Sure1@"}" https://openlibrary.org/account/login Please I need your help

Member Avatar for broj1
0
336

The End.