387 Topics

Member Avatar for
Member Avatar for Shari_1

Hello. I'm trying to print out some information using JSon. However, I'm not getting the numbers I expect. Can anyone see what I'm doing wrong? Let me tell you about my code. Price is supposed to hold the price for a product. Variable out is my output. The function getBill …

Member Avatar for Shari_1
0
215
Member Avatar for tastybrownies

Hello everyone, I am trying to write a website that allows a user to input a stock symbol(ie. APPL, GOOG) and get basic information back. I have a html/js file and how it looks is fine but I am running into trouble when doing an HTTP GET using the XMLHttpRequest. …

Member Avatar for LastMitch
0
233
Member Avatar for jakubee

Hi All, My problem is: i'm trying to convert byte[] into image. The byte[] comes from JSON and it's in this format: `"4oCwUE5HDQoaCgAAAA1JSERSAAAAfwAAAFAIBgAAADBHwqrDsAAAAAlwSFlzAAAAJwAAACcBKgnigJhPAAAgAElEQVR4xZPCrMK9ecWSZcOZfcOfw7c5w5vCvW/CqXp..."` it goes for another 100 lines. The code where the problem occurs: DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(PlayersListActivity.URL); httpPost.setEntity(new UrlEncodedFormEntity(parameters, "UTF-8")); HttpResponse httpResponse …

0
173
Member Avatar for Evil_genius82

Hi All, I have a few questions regarding Ajax and Json if anyone could help clear up for me. I am designing a mobile application (as a small project) which will send continious live data to a php file which will then forward this to be stored in a MySQL …

Member Avatar for allualtaf
1
156
Member Avatar for kshahnazari

I have a ajax fucntion that gets a json array from the php , 8 numbers formed like this ["0","0","0","0","0","0","0","1"] , As I get this in a var called data , data[0] and this kind doesen't work , how can I access this numbers ?

Member Avatar for Bachu
0
352
Member Avatar for asaidi

Hi i have a form <input type="text" /> <button id="submit">Go</button> and i have a json document i want to put a name in my search box and look for name or age any of the field of json.. can you pls help m eon this as i m new on …

0
81
Member Avatar for donelliewhyte

I want to work with the json below in andoroid, but I am getting an error in my app.I will be working extensively with the yummly api but the data i need resides in the matches array, but I am not sure what is the problem. I have also attahed …

Member Avatar for peter_budo
0
171
Member Avatar for nlkm

Which books is the best suitable for me?I am a beginner studying JSON and XML.Could you help me,everybody?

Member Avatar for Pilot122x
0
159
Member Avatar for zack000smith

I need to add the following features to my existing code (posted below) in Rails using Jquery, JSON, Ruby and HTML. I have a lot of ideas and researched a bit but Itd be great if someone can help me with integrating them: I need to add a feature to …

Member Avatar for LastMitch
0
314
Member Avatar for kresimir

How many bytes does it take to encode the JSON string "STR\uD834\uDD1E" in UTF-8, in UTF-16 and how many in UTF-32?

Member Avatar for LastMitch
0
123
Member Avatar for asaidi

Hi i m just starting learning jquery,javascript ajax and json.. 1-can i import my data from mysql and use it in json the data is nearly 3000 records and it is growing.. 2-if i want to add a new record into my json file how i can do this please …

Member Avatar for IIM
0
134
Member Avatar for davy_yg

Method saving: JSON on file “content.txt” Data Serving Method: 1. Get content for file “content.txt” every page load and put in on parameter. 2. JSON Decode the parameter. So the parameter will be array type. 3. Use desired data for that page. Hello can anyone help me understand the content …

Member Avatar for paulkd
0
131
Member Avatar for layman114

Hi there, here is the code... <script type="text/javascript"> function ajax_json(){ var hr = new XMLHttpRequest(); var url = "news.json"; hr.open("POST", url, true); // Set content type header information for sending url encoded variables in the request hr.setRequestHeader("Content-type", "application/json", true); // Access the onreadystatechange event for the XMLHttpRequest object hr.onreadystatechange = …

Member Avatar for TomH.PG
0
150
Member Avatar for layman114

Hi there, json is working fine on apache but not on iis. On IIS, if I try to load .json file, it gives me this error --" HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is …

Member Avatar for layman114
0
241
Member Avatar for cgull

Hello, This is my first time trying to make an ajax call with JSON. I am developing a site with CodeIgniter 2.1.4. I am on the verge of throwing my computer away and find a job selling flowers.... Here's the story: In my view I have a dropdown box: `<?php …

Member Avatar for paulkd
0
2K
Member Avatar for Venom Rush

I have no previous knowledge of connecting to a web service using JSON and I haven't been able to find any examples online that clearly explain how I would go about connecting using authentication. I have the following documentation: Credential (type: Credential) - An object used to authenticate the client …

Member Avatar for Szabi Zsoldos
0
365
Member Avatar for joshmac

I have a query in which I insert data with json_encode(), and I am trying to receive that data with json_decode(), however, I get an error message that is something like this: stripslashes() expects parameter 1 to be string, array given in I have this database table that has about …

Member Avatar for joshmac
0
606
Member Avatar for nazmule27

Foloowing is my out put of data, Now I need to show in label the 'amout' and 'trxID'. Please help me. { "transaction": { "amount": "29", "counter": "1", "currency": "BDT", "receiver": "01811700563", "reference": "a", "sender": "01711643998", "service": "Payment", "trxId": "270413065", "trxStatus": "0000", "trxTimestamp": "2013-07-02T00:00:00+06:00" } }

Member Avatar for mrvijayakumar
0
178
Member Avatar for layman114

Hi all, I have a .json file on a server. And I had simple app(phonegap) built which I uploaded into build.phonegap. So my question is will my app be able to pull data from .json file which is on a server? Regards layman114

Member Avatar for TomH.PG
0
118
Member Avatar for pawan768

Hey , I tried to send some data to different page and want to use it response ... But the problem i face is the code is working properly on my local host but when i put it over web it always gave me an error ... catalog_no=$('#srno').val(); //alert(catalog_no); query="select …

Member Avatar for pritaeas
0
266
Member Avatar for sobias

Hello there! Been a long time since I visited it DaniWeb :) I have a very wiered problem with my JSON data I'm getting using CURL. The returned json is 100% valid - you can copy and check it from here: http://pastebin.com/mdF1Vd7k When I try to do the following: `$result->data[0]->username; …

Member Avatar for jkon
0
246
Member Avatar for patk570

Hey guys, I am new to programming and doing everything on my own here. I have a website that I am working on, and i want to add things to a list that is on the side of the search page, and then i want to have it be able …

Member Avatar for patk570
0
165
Member Avatar for mattsheets

Hello I am trying to parse a .json file.. it only has 1 set of data I don't think the $.each is the best approach but it's all I can find.... Here is my code: <script type="text/javascript"> function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var …

Member Avatar for mattsheets
0
229
Member Avatar for klemme

Hi, I have this bit of php returning the response, just for testing : header('Content-type: application/json'); $response = array(); $response["status"] = "ok"; echo json_encode( $response ); 1) Is this a wrong way to send a json encoded string back via jquery ajax? 2) I get NOTHING, No response from this …

Member Avatar for klemme
0
304
Member Avatar for Xytheron

Hello all! I'm a bit confused on how to use JSON. So far I've been doing fine but now that the format includes arrays I'm hitting a wall. I'm using weather underground's API to to pull weather data. My file is http://api.wunderground.com/api/658c0f8b283e4b98/tide/q/VA/Norfolk.json This may help for visualizing if you haven't …

Member Avatar for veedeoo
0
196
Member Avatar for Gloak

I have tried to fix this problem but can't make it to work. I have intalled all the data in my computer, tried a json file (.php), but can't figure it out. I have also tried the CSV format, but it didn't work. Where is my mistake? This is from …

Member Avatar for Gloak
0
170
Member Avatar for thilipdilip

Hi all, I'm having one problem with disapling the json data into ul and li based content with using of foreach() json data from database is [{"id":1},{"id":2,"children":[{"id":3},{"id":4},{"id":5,"children":[{"id":6},{"id":7},{"id":8}]},{"id":9},{"id":10}]},{"id":11},{"id":12}] $loop = new RecursiveIteratorIterator( new RecursiveArrayIterator(json_decode($get_menu, TRUE)), RecursiveIteratorIterator::SELF_FIRST); foreach($loop as $mydata) { echo $mydata foreach($mydata->values as $values) { echo $values->value . "\n"; } …

Member Avatar for mrvijayakumar
0
169
Member Avatar for rouse

I am having problems accessing what for me is a complex JSON object. I successfully interrogated the Open Weather API and received a good response. What I am not accessing, and don’t know how to, is the individual items of the weather portion of the list group while in a …

Member Avatar for rouse
0
252
Member Avatar for jelly46

Hello I am unable to to edit a json file i need to add some updates but i keep getting Error: Parse error on line 8: ... "text" : " company name -----------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined' I am trying to add a paragraph …

Member Avatar for paulkd
0
155
Member Avatar for blivori

I am trying to search through a JSON file and display only the result matching the input form. When I click the 'Search' button, nothing happens. How can I resolve this? This is the code: <div id="search"> <form name="input" action="search()" method="get"> Search: <input id = "searchField" type="text" name="search"> <input type="button" …

Member Avatar for theHop
0
175

The End.