387 Topics

Member Avatar for
Member Avatar for premminister

Hi, I am currently getting JSON data from the discogs API (mp3 tag data) and wish to sort the results by the key's value. In this case I am trying to get data for a Guns n Roses song and the output has 1988 as the first one while the …

Member Avatar for Lardmeister
0
11K
Member Avatar for Jazerix

Hi there :) I'm trying to request the info from "https://www.googleapis.com/sj/v1beta1/tracks". It should give me a full list of my google music tracks. To get the list, it requires you to do a request with an authorization. You get the auth from "https://www.google.com/accounts/ClientLogin?accountType=GOOGLE&Email=EMAIL&Passwd=Password&service=sj". The thing is, I'm doing a webrequest …

Member Avatar for darkagn
0
156
Member Avatar for spowel4

Using java, I need to parse a json text file that will contain data according to the layout shown below. The number of email addresses per store will vary. The point is to get a list of stores & corresponding email addresses, then send emails to the addresses. I have …

Member Avatar for boobalan006
0
273
Member Avatar for chr.s

Hi there, I'm currently working on a site using [Big Cartel](http://bigcartel.com/) - an e-commerce online CMS. This means I'm limited to using their own proprietary language for grabbing data content (no PHP support etc...). I'm also using the [Supersized](http://www.buildinternet.com/project/supersized/) jQuery plugin to try and present present data to the user. …

Member Avatar for blocblue
0
195
Member Avatar for ita_info

Hello All my friend ..... I have the following code it work well .... but in some case the image which round(ajax image ) continue rounding , I mean that the code in reponse section doesnt work , becuse I put in response section code to hide image which tell …

Member Avatar for AleMonteiro
0
132
Member Avatar for davidp994

hi, I am generating records through php/sql, as u can see the code displays 5 records, what Im trying to do is program so that when the next button is pressed the next 5 records will show?? any help much appreciated thank you, the code - function show(qstring,qtype){ $("#vsdiv").show(); var …

Member Avatar for dcdruck
0
139
Member Avatar for randomkid73

I'm having an issue accessing values of an AJAX response from a PHP script. I'm using an `alert()` for debugging purposes to show the data and it shows "undefined" as things are done below. Here's what I have so far. jQuery AJAX request: $(".edit").click(function(event) { var id = $(this).parents("tr").attr("id"); alert(id); …

Member Avatar for GliderPilot
0
12K
Member Avatar for devgud

Hi I need a general xslt to convert XML to JSONX My input is <Login> <Groups> <Group> <Name>john</Name> <Password/> </Group> <Group> <Name>john</Name> <Password/> </Group> </Groups> </Login> I need output as below <json:object xmlns:json="http://www.ibm.com/xmlns/prod/2009/jsonx"> <json:object name="Login"> <json:object name="Groups"> <json:array name="Group"> <json:object> <json:string name="Name">john</json:string> <json:null name="Password"/> </json:object> <json:object> <json:string name="Name">john</json:string> <json:null name="Password"/> …

0
58
Member Avatar for Buppy

Hi, I have the following HTML: <ul> <li> <div>Something</div> <ul> <li> <div>Something</div> <ul> <li> <div>Something</div> //more lists can come </li> <li> <div>Something</div> </li> </ul> </li> <li> <div>Something</div> </li> </ul> </li> <li> <div>Something</div> </li> </ul> The list can continue endlessly and the count of sublist is unknown (user defined). Is there …

Member Avatar for stbuchok
0
102
Member Avatar for mbhanley

Hi all I am stuck trying to figure out the best way to get data as at the moment I have tried a few different ways to achieve this with no luck. What I am trying to do is update a block of php code that is in my sidebar …

Member Avatar for mbhanley
0
2K
Member Avatar for rayidi

I want to working with login system jQuery ajax and json. I'm facing no problem with success function. I dn't know how to through custom errors like "incorrect login". Here is my code, Please help me. <script> $(document).ready(function(){ $("#login").click(function(){ if($("#defaultEmail").val() == ""){ $("#defaultEmail").addClass("field-err"); $("#defaultEmail").focus(); }else if($("#defaultPassword").val() == ""){ $("#defaultEmail").removeClass("field-err"); $("#defaultPassword").addClass("field-err"); …

Member Avatar for rayidi
0
3K
Member Avatar for rotten69

Hi everyone, I'm sure there are people who are using highCharts framework. I'm having a trouble passing the values to jquery code from PHP json. Your help is so appreciated. This is my php section <?php header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 01 Jan 2013 00:00:00 GMT'); // The JSON standard …

Member Avatar for rotten69
2
402
Member Avatar for Dan_iweb

Hi, I have this script, it attempts to place JSON data into a MySQL database. The problem is it duplicates records, this does not happen when the “news_added” field is not NULL. That’s the only thing I can see different. I would like the script to update a record, replacing …

Member Avatar for Dan_iweb
0
132
Member Avatar for venkyb47

Hi I am unable to retrieve values from json object.The json data as coming like this when observe from firebug : [{"PROJECT_ID":"CASEENO"},{"PROJECT_ID":"DARKROOM-2"}] This is my ajax code: $.ajax({ type: "POST", url: "getdata.php", dataType: "json", data: { 'dataString': projectid }, cache:false, success: function(data){ alert(data); for (var i = 0; i < …

Member Avatar for venkyb47
0
246
Member Avatar for jstfsklh211

Some browsers will resort a json array by index to make access faster, I understand this. The problem is that when I pass my json object to jeditable using the data setting, in those browsers my options dont come out in the order I need them (Alphabetic). PHP creating the …

0
109
Member Avatar for persianprez

Right now I'm trying to get multiple callbacks from a single feed, however I keep getting "val parameter is undefined" Here is the code: var m,i=100,s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],b=["#","@","http","www","tweet","twit","Twit","TWIT","tweep","blog","text","follower","Follower","Text","Twee","txt",".ly","follow",".com",".COM",".net","yahoo",".org"," DM"," RT","RT:"]; var count = 0; var rand; u=function() { if (i--<1) { location.reload(); return false; } document.getElementById('w').innerHTML = "<h2><font color =\"red\">Error :(</font></h2>" ; …

Member Avatar for AleMonteiro
0
136
Member Avatar for phanisk

I have a php web service returning json data. My problem is that when i call the json data from url returns nothing but when a call a local file with exactly the same data (copy from the url) works fine. The json data i receive are for example {"ResponseData":[{"Code":"91010001","Description":"ISADORA …

Member Avatar for ko ko
0
284
Member Avatar for *sharath*

I am using a json function to parse a link and return a json object. the code is below : public JSONObject getJSONFromUrl(String url) { // Making HTTP request try { // defaultHttpClient DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(url); Log.v("url", " " + url); HttpResponse httpResponse …

0
109
Member Avatar for aldm

Hi, I'm working on rails project where I use json file for storing some data. Basically data are stored and get using ajax calls from jquery. But there are some strange issues. For example, when I add data in json file using AJAX and then open file in Chrome: localhost:3000/example.json …

0
130
Member Avatar for Danny159

Hey guys, I am having some trouble with json_decode... I used json_encode to encode a string that is the following: {"id":"121","firm":"DSD","address":"Test","address2":"Test","city":"Test","region":"Test","postcode":"Test","countryid":"13","firmtype":"Marketing","phone":"01545454587","fax":"","email":"dan@test.com","url":"http://www.test.com","mainuser":"Dan","contacts":"dan@test.com","info":"","numstaff":"15","numoffices":"1","disc":"","cat":"{"35":"1"}"} And I am using this php code to try and get it back into an array... however its just not working... the print_r(); doesnt echo anything out at all... …

Member Avatar for Danny159
0
194
Member Avatar for Violet_82

Hi all, I wonder if you can help me again with some more json. I have this json fragment: cars_data={ "haveAlook": { "xmlns:fo": "http://www.w3.org/1999/XSL/Format", "xmlns:inlineData": "Lookup", "CategoryAttributes": { "attOne": "MyattOne", "attTwo": "MyattTwo", "attThree": "MyattThree", "attFour": "MyattFour", "attFive": "MyattFive", "attSix": "MyattSix", "attSeven": "MyattSeven" }, "TheThumbnails": { "thumb1": "first.png", "thumb2": "second.png", "thumb3": …

0
99
Member Avatar for Violet_82

Hi chaps, I wonder if you can help me with this. I have the following script: $(document).ready(function(){ init_get_data(); }); var cars_data; function init_get_data(){ my_data={"data1":{"-xmlns:fo":"http://www.w3.org/1999/XSL/Format","-xmlns:inlineData":"Lookup","TheAttributes":{"-price":"Price","-other_attribute":"other_value"... console.log(my_data.data1.TheAttributes.price); } Being very new to json I am trying to write on the firebug console to check how to get the values out of the …

Member Avatar for Violet_82
0
116
Member Avatar for adishardis

Hi, I have a json encoded array ($dataTable) that looks like this: {"cols":[{"type":"string","label":"Analys"},{"type":"string","label":"Test 1"},{"type":"string","label":"Test 2"}], "rows":[{"c":[{"v":"Top"},{"v":"78"},{"v":"71"}]},{"c":[{"v":"In"},{"v":"88"},{"v":"91"}]},{"c":[{"v":"Pref"},{"v":"60"},{"v":"72"}]},{"c":[{"v":"Int"},{"v":"13"},{"v":"9"}]}]} I think that's right but when I try to display the graph it says "table has no columns"... Copied from google I have this in my head section: <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("visualization", …

Member Avatar for adishardis
0
2K
Member Avatar for adishardis

Hi, I have a database table filled with interesting data. On my webpage I would like to let a user pick two rows in the table and compare the data to see how it differs. Picking what rows to compare would be done by two dropdown lists. The data in …

Member Avatar for adishardis
0
129
Member Avatar for noelthefish

Hi, I have looked at this code and I cannot see the problem. If anyone can spot the error then I will be very grateful. Basically I am returning an array from a .PHP in json format the code is here. echo json_encode($anarray); the array is made up like "vegetable" …

Member Avatar for Airshow
0
137
Member Avatar for sdr001

I am trying to add an username and password into a database using JSON. I cannot get it to work, any ideas? Thank you. <?php mysql_connect("localhost","sdr001","************"); mysql_select_db("tristate"); $userID = $_POST['userID']; $password = $_POST['password']; $q=mysql_query("INSERT INTO users VALUES(>'".$_REQUEST['userID']."'"); while($e=mysql_fetch_assoc($q)) $output[]=$e; print(json_encode($output)); mysql_close(); ?>

Member Avatar for pritaeas
0
98
Member Avatar for dany12

Are thyere any security issues that can affect data integrity or theft by other party and si there a solution to avoid this using the cool efects of jquery and json?

Member Avatar for pritaeas
0
130
Member Avatar for hisan

sample_json1={{ "globalControlId": 72, "value": 0, "controlId": 2 }, { "globalControlId": 77, "value": 3, "controlId": 7 } } sample_json2={ { "globalControlId": 77, "value": 3, "controlId": 7 }, { "globalControlId": 72, "value": 0, "controlId": 2 } }

Member Avatar for Schol-R-LEA
0
115
Member Avatar for swissknife007

<?php mysql_pconnect("localhost","root",""); mysql_select_db("AppDevelopMenu") or die( '1'); $sql1=mysql_query("select Question from questions where QId ='1'"); if(!$sql1) echo '2'; else{ $question=mysql_fetch_assoc($sql1) ; $outputq[]=$question; $sql=mysql_query("select OptionId,OptionContent from options where QId ='1'"); if(!$sql) { echo '3'; } else { while($row=mysql_fetch_assoc($sql)) $outputq[]=$row; print(json_encode($outputq)); } } mysql_close(); ?> i have to modify this code to read json …

Member Avatar for diafol
0
99
Member Avatar for manus26

Need an xslt to convert xml into json. I have a xml file which is having 3 attributes. The value in the 3rd attribute is another xml file. I need an xslt which can read the value of the 3rd attribute as another xml (not just a value) and can …

Member Avatar for Mike Askew
0
225

The End.