884 Topics

Member Avatar for
Member Avatar for RobotFX

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 …

Member Avatar for Reza_3
0
1K
Member Avatar for MoreBloodWine

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 & …

Member Avatar for pritaeas
0
312
Member Avatar for Hayezb

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 …

Member Avatar for diafol
0
2K
Member Avatar for Mike Askew

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 …

Member Avatar for diafol
1
373
Member Avatar for sallaudin

{"Data":{"Date":"08:09 20-01-2014","SchoolID":"923214157777","Type":"1","Nic":{"3520135201001","3520135201002","3520135201003"}}}

Member Avatar for pritaeas
0
129
Member Avatar for ignnniter

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 …

Member Avatar for JorgeM
0
341
Member Avatar for JoyBh

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. …

Member Avatar for JorgeM
0
141
Member Avatar for bops

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 …

Member Avatar for Airshow
0
275
Member Avatar for ngonix

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 …

Member Avatar for peter_budo
0
13K
Member Avatar for Gloak

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 …

Member Avatar for stevedaniel
0
202
Member Avatar for kelley82879

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..

Member Avatar for kelley82879
0
1K
Member Avatar for smartidiot

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 …

Member Avatar for fastrecruitment
0
207
Member Avatar for singularity~

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'])) { …

Member Avatar for Dani
0
364
Member Avatar for fheppell

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 …

Member Avatar for snippsat
0
2K
Member Avatar for Dani

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??

Member Avatar for pritaeas
0
83
Member Avatar for brightline

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...

Member Avatar for M.Waqas Aslam
0
212
Member Avatar for Learner010

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 …

Member Avatar for Learner010
0
397
Member Avatar for thorin

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 …

Member Avatar for peter_budo
0
500
Member Avatar for Sanjay_6

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 …

Member Avatar for pritaeas
1
233
Member Avatar for Mallika_P

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 …

Member Avatar for Mallika_P
0
383
Member Avatar for kkjaykamau

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 …

Member Avatar for The Diamonds
0
2K
Member Avatar for sallaudin

{"session_id":"-4y6g2ck_gEU2mvsFY0oZQ","propid":"7169","avail":"2","calendararray":["2013-11-13","2013-11-20","2013-11-27"]}

Member Avatar for pritaeas
0
66
Member Avatar for cool_zephyr

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 …

Member Avatar for cool_zephyr
1
299
Member Avatar for An

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"); } …

0
96
Member Avatar for sallaudin

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 ( …

Member Avatar for decade
0
182
Member Avatar for lauuuer69

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 …

0
262
Member Avatar for jrosh

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 …

Member Avatar for lim.charmender
0
213
Member Avatar for zeeshan_kust

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 …

Member Avatar for anson davis
0
692
Member Avatar for Prithiv_1

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 …

Member Avatar for vegaseat
0
292
Member Avatar for sulfurid

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 …

0
104
Member Avatar for venkyb47

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 …

Member Avatar for venkyb47
0
213
Member Avatar for suraj32

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. :)

Member Avatar for suraj32
0
189
Member Avatar for kkjaykamau

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 …

Member Avatar for Kratoswoo
0
181
Member Avatar for evangelion89

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 …

Member Avatar for spatlola0422
0
1K
Member Avatar for Drugsxxx

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??

Member Avatar for Drugsxxx
0
194
Member Avatar for santoshkumar.palivela.7

<?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; } /** * …

Member Avatar for AARTI SHRIVAS
0
2K
Member Avatar for sugumarclick

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 …

Member Avatar for noelthefish
0
569
Member Avatar for kkjaykamau

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 …

Member Avatar for ddanbe
0
264
Member Avatar for simplypixie

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 …

Member Avatar for simplypixie
0
901
Member Avatar for NewHeart42108

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 …

Member Avatar for pritaeas
0
260
Member Avatar for jonsan32

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 == …

Member Avatar for jonsan32
0
6K
Member Avatar for SCass2010

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 …

Member Avatar for JamesCherrill
0
205
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
218
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
234
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
178
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
158
Member Avatar for kyleo92

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 …

Member Avatar for urtrivedi
0
97
Member Avatar for xmangkan0rx

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> …

Member Avatar for LastMitch
0
183
Member Avatar for umandajayo

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 …

Member Avatar for ryantroop
0
342
Member Avatar for garyjohnson

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 …

Member Avatar for <M/>
0
150

The End.