387 Topics
| |
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 … | |
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. … | |
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 … | |
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 … | |
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 ? | |
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 … | |
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 … | |
Which books is the best suitable for me?I am a beginner studying JSON and XML.Could you help me,everybody? | |
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 … | |
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? | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
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" } } | |
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 | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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"; } … | |
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 … | |
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 … | |
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" … |
The End.