387 Topics
| |
Hi i am trying to perform a search on a json file called PCproducts.json which has in it various arrays with other data in it.I have seen various examples but seems that either i am doing something wrong in the code or calling the file in the wrong way. This … | |
I am trying to load different data which are all in one JSON data from a drop down menu to a div area on the web page (eg if one clicks PC on the menu then the items related to PC in the json file will load and if Wii … | |
Hello, I am trying to populate the state drop-down based on the country selection. I creates this jQuery scrip that WORKS in firefox, chrome and mobile but for some reason does not work in IE8 (dont have IE7 or IE9 to test). What am i missing? //update states/province drwon down … | |
Hi, I am working on displaying my JSON string beautifully using jQuery. Here is my code: $(document).ready(function() { var jsonp = '[{"filename":"4x6_flower.png","count":1,"zones":[{"x":"198","y":"133","width":"1283","height":"820"}]}]'; var obj = jQuery.parseJSON(jsonp); document.body.innerHTML = ""; document.body.appendChild(document.createTextNode(JSON.stringify(obj, null, "\t"))); }); But output is displayed in a single line like this: [ { "filename": "4x6_flower.png", "count": 1, "zones": … | |
i am using the below script as my basis for my ajax requests However whenever i run them i keep getting the error Uncaught SyntaxError: Unexpected token hr.onreadystatechange and Uncaught TypeError: Object [object Location] has no method 'load' hr.onreadystatechange Here is the code $('#ind_login_submit').on('click', function (e) { var vars = … | |
How to tell whether AJAX give JSON response not a html page in php? | |
Been running a couple of article queries this morning. When running `http://www.daniweb.com/api/articles?forum_id=61` I encountered what looks like a bug. The 11th thread reply coming back in the query is the following: { "title":"please help me .........", "related":[ { "id":"" } ], "posters":[ { "id":"1098860" }, { "id":"46588" }, { "id":"1091071" … | |
Ok, so someone else wrote the below code for me and is on a bit of a hiatus, so I can't ask them for help. In any event, I would like to also pull the following three things which is why I am here asking for help. total_rewards, paid_rewards & … | |
Hello! I'm needing some help integrating HighCharts into my CodeIgniter application and getting data from my MySQL database! I've followed a YouTube video on actually integrating HighCharts and it was extremely straightforward. However, that method included a hardcoded array and I'm needing to generate an array from data stored in … | |
Running Dani's profile as an example I get the JSON back containing: "education":[ { "key":"education", "value":"B.S. Computer Science", "organization":"Hofstra University", "start":"September 2000", "end":"December 2005", "description":"I majored in Computer Science and minored in Business Computer Information Systems. I was in Upsilon Pi Epsilon, the Computer Science Honor Society run by the … | |
{"Data":{"Date":"08:09 20-01-2014","SchoolID":"923214157777","Type":"1","Nic":{"3520135201001","3520135201002","3520135201003"}}} | |
I have 2 dynamic drop down menus using json . Then thing is with the script I'm using only one will work correctly. I'm not sure where I'm going wrong.. | |
Are there any tools available using which json/xml based web services can be generated directly from databases, at least for CRUD operations. Assume, I supply database credentials to the tool which shows me list of tables for which web service need to be generated, I select the tables and it … | |
I have no idea why I cannot get jquery to parse a JSON array from a PHP server side call. Here is my jQuery $.ajax({ type:"POST", url:"/Home/Profile/cb_profile.php", data:{loadProfile: JSON.stringify(itemsToPost)}, success: function(data){ var returnedItem = $.parseJSON(data); }, error: function(e){ console.log("We've had a error"); }, }); Here is my PHP if(isset($_REQUEST['loadProfile'])) { … | |
Dear all, I want to develop a webservice that returns a json like the following: http://niceq8i.tv/mobile/api/cat/get_sounds How to make the functions has a direct link like that and return the json code without any xml code Thanks in advance... | |
i'm using VS 2008 for window application and made an http web request and it returns result in json([click here for json result](http://www.daniweb.com/api/articles/448095)). I am not much familiar with JSON and also newbie in vb.net . So , i don't have any idea to deserialize the JSON result. would you … | |
hi, everyone I am a Java newbie. I have followed a bunch of tutorials and examples from the web but they all failed miserably at teaching me how to properly apply this library: com.google.gson. First how do I receive properly in the java servlet a json request that has been … | |
I am sending data from index.php fiel to another exec.php file using $.ajax method and executing the data on that file now when i am sending back output data using jsonp callback i am getting incorrect data on index.php. I am also writing same output data into a txt file … | |
{"session_id":"-4y6g2ck_gEU2mvsFY0oZQ","propid":"7169","avail":"2","calendararray":["2013-11-13","2013-11-20","2013-11-27"]} | |
i have a simple note and images storing java program that stores data into the server..i'm confused about what to use for building the server..should the server be built using sockets?? or which listens for http requests (the client sends json data)?? could anyone please tell me which one would … | |
Hi, I start learning javascript and ajax currently. The code index.php below is perform Ajax <!--- AJAX ---> <script> function showData(str) { if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } … | |
Array ( [results] => Array ( [0] => stdClass Object ( [status] => No [student_id] => LR0s646RYl [examiner_id] => mA0b2mv51s [audio] => stdClass Object ( [__type] => File [name] => a038ddfc-67e8-4cb9-ba6b-87613f355ceb-test_26-11-2013-10-32-pm.mp3 [url] => http://files.parse.com/96571424-15c1-4ad5-8c56-404c6b4b930a/a038ddfc-67e8-4cb9-ba6b-87613f355ceb-test_26-11-2013-10-32-pm.mp3 ) [createdAt] => 2013-11-26T17:38:46.097Z [updatedAt] => 2013-11-26T17:38:46.097Z [objectId] => NfiG4j80ON ) [1] => stdClass Object ( … | |
i have retrieved mysql data from one table in json using the following script [CODE]$table_first = 'abc'; $query = "SELECT * FROM $table_first"; $resouter = mysql_query($query, $conn); $set = array(); $total_records = mysql_numrows($resouter); if($total_records >= 1){ while ($link = mysql_fetch_array($resouter, MYSQL_ASSOC)){ $set[] = $link; } } echo json_encode($set);[/CODE] how can … | |
I am getting output as json string with the following code. But I require it as JSON dict without leading and trailing quotes. How can I do that? It seems to work if I uncomment line4 but not with raw input. def main(args): f = open(args[1], 'w') inp = raw_input("Enter … | |
I have 5 select tags in a page (user can select number max 10 only). I want to fill this select boxes with dynamic data. I wrote a function for this. This function called on a radio button clicked. Data send to a PHP page and return back result to … | |
Hi, I've got this string when parsed a web page. string(41) "_result_ = {status:"OK", id:"30025", name:"John Doe", location:"India"}" I believe that this code is JSON. but when I use json_decode() , it returns NULL. Someone Please help me parse this string. Thank you. :) | |
Hi, I want to access a web service and get the response in json using javascript. The web services can respond in json and gives me a table of records with a specific campus. I input the campus code in the text box and create the url. Now, I want … | |
I looking for some tutorial that will show me how to send data to .json file and save it one after another like: data1,data2,data3 data1,data2,data3 ...and so on Also i would like to know do i need jQuery and is it hard to use?? | |
Basically I'm having three text input. First is autocomplete (book name). Second is book price and third is book author. Please help me in changing the 2nd and third input text box values according to the selection of autocomplete input box. Fiddle setup is at http://jsfiddle.net/premgowda/UC74L/6/ Json code below from … | |
I am using tinymce on a cms and I want to be able to have a dropdown menu of all pages on the site (stored in a db) to choose from when adding a link but all I am getting is an emtpy set of values. I am using the … |
The End.