884 Topics
![]() | |
So, I've found this code somewhere on the net (don't remember) and I'm trying to embed it into my site, just in case some of the visitors would need to use it. It creates short URLs (from 4 services) of a particular address. What I don't understand, and I hope … | |
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 a website and i need to make a feature that when a user post a link(s) it will become short, by means of a url shortening service API. Here's the API using Php JSON $api_url="http://s.ourbyte.org/api?api=cSuPDdLzHmPq&url=$message"; $res= @json_decode(file_get_contents($api_url),TRUE); if($res["error"]){ echo $res["msg"]; }else{ echo $res["short"]; } } And here's the … | |
I am an Finance and Accounting professional and am interested in Application design and development. I have been trained in-house by my organisation in Core Java, PHP and MySQL. My experience includes the design and development of a PHP web application whch takes care of main activity of my organisation. … | |
Hi My issue is that I want to either call 2 AJAX functions one after the other OR call just the second one. Let me put this into context.. I am writing a "store locator" application. By default all the results are loaded in alphabetical order. A user is able … | |
Hello, I am developing an android application that sends an sms message to a certain number depending on what is dispayed in the webview. The text in the site that is loaded when the app starts is as follows: YES 0772334556 VOTE ME Here is part of BrowserActivity.java (excluding sms … | |
Hi all, I am not sure if I am in the right place. But I don't know where to start. I had a web page that was working properly, almost at the end of a year of work (housweb.com). Last week, I tried to work in a different site, diferent … | |
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'])) { … | |
I'm writing a script that downloads files for web design, and this line produces Traceback (most recent call last): File "bootlace.py", line 60, in <module> download(data['jquery'], 'Downloading jquery. (File size %s)', 'js/') File "bootlace.py", line 11, in download file_size = int(meta.getheaders("Content-Length")[0]) IndexError: list index out of range That line is … | |
I'm trying to create an ATOM activity stream ala http://activitystrea.ms/ However, I'm confused a bit by the proper format, and also wondering if the JSON version is replacing the ATOM version?? Here's what I have so far: http://www.daniweb.com/stats/activity_stream Is there a place I can validate it?? | |
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 … | |
The following error occurs in nexus7 android 4.4 device 12-11 12:53:15.708: E/AndroidProtocolHandler(5245): Unable to open asset URL: file:///android_asset/www/cordova_plugins.json 12-11 12:53:15.798: D/CordovaNetworkManager(5245): Connection Type: wifi 12-11 12:53:15.798: D/DroidGap(5245): onMessage(networkconnection,wifi) 12-11 12:53:15.798: D/CordovaNetworkManager(5245): Connection Type: wifi 12-11 12:53:15.808: D/DroidGap(5245): onMessage(spinner,stop) 12-11 12:53:15.848: D/dalvikvm(5245): GC_FOR_ALLOC freed 119K, 5% free 7745K/8148K, paused 16ms, total … | |
I am trying to get a value from a DataGridViewComboBoxColumn cell that is named "Item". When I run the program and make a selection from the combobox, string itemValue always returns ""; ie string.null. What am I doing wrong in getting this value that I need to set price on … | |
{"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 ( … | |
Hello, Coders! I'm a professional backlink builder and I work for a company for 2 years right now. One of the services I provide is Social Bookmarks. I have a "semi automatic" system that gets the job done but due to recent changes in my company I need to make … | |
I have this ajax request. $.ajax({ type: 'Post', dataType: 'json', contentType: "application/json; charset=utf-8", url: 'https://********/***/*******.asmx/Login', data: "{ userID: '" + userName + "', pwd: '" + password + "' }", success: successCallBack, error: failureCallBack }); Problems is this works fine in older chrome browser. Eg. 20.XX.XX But it does not … | |
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 … | |
Hello, I have develop an Android and J2me app that send contact list to my localhost webserver with Json format to store these data to mysql and its works fine, the problem is when I have accomodate my php folder online the values are not stocked or are not sensed … | |
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. :) | |
I am new to using datagridviews and wanted to know how to populate certain fields. I have created a form and added a datagridview (named GridSellProducts) with Visual Studio designer and added 8 columns with the first named Item. I have also changed the column type for Item to DataGridViewComboBoxColumn … | |
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?? | |
<?php class Jcart { public $config = array(); private $items = array(); private $names = array(); private $prices = array(); private $qtys = array(); private $urls = array(); private $subtotal = 0; private $itemCount = 0; function __construct() { // Get $config array include_once('config-loader.php'); $this->config = $config; } /** * … | |
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 have the following code that is returning an error - not all code paths return a value. static class Products { public static List<ProductResponse> GetProducts(string productsURL) <---- error thrown here. { //List<ProductResponse> products = new List<ProductResponse>(); try { var w = new WebClient(); var jsonData = string.Empty; // make … | |
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 … | |
I have a javascript function that works fine when it is included in a <script></script> statement in the header of my php file, but when I move it to a separate .js file, it throws two errors. The function is function calculate() { var i var optCount = <?php echo … | |
My button uses the following. It produces a random post within my blog whenever a user clicks it. <div id="myLuckyPost" class="random button"></div><script type="text/javascript"> function showLucky(root){ var feed = root.feed; var entries = feed.entry || []; var entry = feed.entry[0]; for (var j = 0; j < entry.link.length; ++j){if (entry.link[j].rel == … | |
Hi all, Wondering if anyone could help - I have a project I'm working on - part of it involves loading a list of resource files at runtime. I can hardcode each file and use the ClassLoader.getResource("....") to get each file, but I was wondering is there a way to … | |
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'm wanting to develop some simple tables for my newspaper to cover an upcoming election. I would like to be able to easily enter in precinct data in a form, have the table show precinct-by-precinct data as well as total and the show the percentage of votes for a certain … | |
I tried the instructions on the website on how to use it. But it doesn't work. Btw here are my codes: **select3.php** <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script type="text/javascript" src="dynamic_table.js"></script> <script type="text/javascript" src="jquery.jCombo.js"></script> <script type="text/javascript"> $(function(){ $("#category").jCombo("getCategory.php"); $("#type").jCombo("getType.php?id_cat=",{parent:"#category"}); $("#desc").jCombo("getDesc.php?id_subcate=",{parent:"#type"}); }); </script> </head> … ![]() | |
I have a requirement which is getting cross domain json data via Ajax. I need to maintain 2 different server (Server A and Server B). Server A only contain static contents. ie: JS, Images, Css Server B only contain dynamic contents ie. php driven scripts According to above requirement I … | |
I can not access the database with Mysqli_connect(). I have all the correct information into the funciton but it wont let me. This is the syntack that I use $link = mysqli_connect("hostname", "username", "password", "db_name"); I get this error 10-01 22:20:27.182: E/JSON(8700): <br />n<b>Warning</b>: mysqli_connect() [<a href='function.mysqli-connect'>function.mysqli-connect</a>]: (42000/1044): Access denied … |
The End.