387 Topics

Member Avatar for
Member Avatar for vamsicoolman

please help me how to check the validity of the json object if suppose the example of the JSON is as ({type:'AAU', msgid:1265033798233, sel:0, gadinfo:[{ adid:316,adprt:40.0,dur:10,ef:'2009/06/03 10:00:00',et:'2012/06/03 12:00:00',imgfurl:'vaccumcleaner_h.jpg' }]}) SO I want a script in python which would give me the validity of the object as the output by taking …

Member Avatar for vegaseat
0
178
Member Avatar for Calvin Nguyen

Hi all, I have a Windows Communication Foundation service which queries the Entity Framework and retrieves data in the form of Entity objects. I'd like to serialize these objects to JSON and send them back to the client to be interpreted in Javascript. It seems this is tricky, according posts …

0
37
Member Avatar for julzk

Hi, I have the some php/mysql queries that pull data from my database and then echo out json_encode($rows);. In turn I display the data in my divs from JSON array's. My query is, I am trying to work out how to incorporate the an auto refresh on each of the …

0
59
Member Avatar for nccsbim071

Hi, i hava a dropdownlist in asp.net mvc page. On selecting particular select item from dropdownlist i have made an ajax post request to the controller method that returns me the result. Everything is working fine. i also get the required result. But the problem is how shall i extract …

0
109
Member Avatar for JRM

hello, I am S L O W L Y working through learning/writing a JS project. here is the core issue.: [CODE] var pt =<? echo json_encode($prt);?> alert(pt) // for diagnostic purposes [/CODE] json is flattening the PHP array to be used in the script. However, the alert shows me that …

Member Avatar for ShawnCplus
0
184
Member Avatar for benkyma

I'm trying to retrieve values from a database and encode them as JSON for another script to grab. I'm doing this like this: [CODE]for($i=0; $i<7; $i++) { $nextDay = $i+1; $startDateTime = date("Y-m-d H:i:s", strtotime("-$i days")); $endDateTime = date("Y-m-d H:i:s", strtotime("-$nextDay days")); $query = "select count(*) as cnt from app_instances …

Member Avatar for network18
0
104
Member Avatar for awhitley2

I am very new at javascript and programming in general. I am using the following function and 9 more labeled "doAjax1" through "doAjax10" respectively. I have an html file called "ch2_xhrMockServer.htm" that I am calling 10 sets of json data from with the name of each being "response1" through "response10". …

0
40
Member Avatar for garcon1986

Hello, I want to use Graphviz to produce dynamic organizational chart with php array or json. Here is my idea: Use php array or json get the data from mysql database, then save the data to dot file, and then produce the dynamic org chart using pear Image_graphviz and implement …

Member Avatar for garcon1986
0
142
Member Avatar for santiagozky

Hello everyone, first of all, I dont know if this should be in the java or the jsp forum. I put it here since is a web related question. I am making a report module for a web page using java. For this I will use a jquery plugin called …

Member Avatar for santiagozky
0
152
Member Avatar for garcon1986

Hello everyone, I have a problem when i use json and array. And i need your help. Here is my code: [CODE] while($row = mysql_fetch_assoc($result)){ echo json_encode($row); } [/CODE] The result is: [CODE]{"id":"1","title":"event1","start":"2009-11-10 14:18:15","end":"2009-11-03 14:38:22","allDay":"false","url":null}{"id":"2","title":"event2","start":"2009-11-09 15:41:20","end":"2009-11-10 16:41:25","allDay":"false","url":null}[/CODE] But i want the result is like this: [CODE] [{"id":"1","title":"event1","start":"2009-11-10 14:18:15","end":"2009-11-03 14:38:22","allDay":"false","url":null},{"id":"2","title":"event2","start":"2009-11-09 15:41:20","end":"2009-11-10 …

0
106
Member Avatar for agrarian

I am trying to use a Dojo (ajax) table on my page that has detail rows in which I want to draw detail tables. The tables have a format event which calls formatDetail. In this event I would like to build a simple table using JSON data. My problem is …

Member Avatar for agrarian
0
2K
Member Avatar for Chad Gary

This is an AJAX/Prototype problem, which is independent of the server-side scripting language I'm currently using. I have the following multi-demensional nested array, which I have successfuly turned into a JOSN Object as such: [CODE][{"PlayerName":"Ron Artest","Positn":"Forward","Height":"6-7 l","Weight":"260","College":"St. Johns"}, {"PlayerName":"Kobe Bryant","Positn":"Guard","Height":"6-6 l","Weight":"205","College":"Lower Marion High Sc"}, {"PlayerName":"Andrew Bynum","Positn":"Center","Height":"7-0 l","Weight":"285","College":"St. Josephs"}, {"PlayerName":"Pau Gasol","Positn":"Forward","Height":"7-0 …

0
68
Member Avatar for arunajasmine

Hi, i am doing an application which make use of JQuery and Cakephp . In this i am using like the following to retrieve the values from my controller side [CODE] var getformid; $.getJSON("http://localhost/FormBuilder/index.php/forms/getFormEntry", function(json) { getformid=json.forms[0]["id"]; alert("Form id inside "+getformid); });//json alert("Form id ouside "+getformid);[/CODE] In the above code, …

Member Avatar for Airshow
0
1K
Member Avatar for Thirusha

Hi I have been struggling with this for some time now, and am not sure what is wrong. I am using the org.json package I have this json String which looks like this: [CODE]{"2009-08-04":[{"Status":"1","Description":"sdfsdf","Task Name":"task 2","TaskId":"2"},{"Status":"1","Description":"testing 3","Task Name":"testing 3","TaskId":"3"}],"2009-07-31":{"Status":"1","Description":"read POC","Task Name":"task 1","TaskId":"1"}}[/CODE] As u can see the one object is …

Member Avatar for Thirusha
0
131
Member Avatar for prax072

I am trying to dynamically populate a select box with Jquery and JSOn in my VB.Net ASP.Net application. The event is triggered in the selectedindexchanged of another ASP Dropdownlist in the page. I am getting my selectlist populated (thanks to [url]http://www.codedigest.com/Articles/jQuery/224_Building_Cascading_DropDownList_in_ASPNet_Using_jQuery_and_JSON.aspx)[/url]. i am passing two values to the select box. …

Member Avatar for prax072
0
165
Member Avatar for abhinav.sharma

So, Python 2.6.2 is supposed to have the following JSON module: [url]http://docs.python.org/library/json.html[/url] I have the standard MacPython 2.6.2, but the attributes of my JSON library are different, can someone help me fix this? Here's mine: [url=http://img30.imageshack.us/my.php?image=picture1axb.png][img=http://img30.imageshack.us/img30/481/picture1axb.th.png][/url]

Member Avatar for abhinav.sharma
0
135
Member Avatar for hannahwill

hello Question: i get "Access denied" error.Can anyone convert the code below in JSON i need to access data from some other domain. OR any other fully explained efficient method to access cross domains plz. ---------js file-------------- [code=JavaScript]window.onload=makeRequest; function makeRequest() { var http_request={}; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request …

Member Avatar for ShawnCplus
0
81
Member Avatar for jayeskay2211

can anyone tell, how to fix this double clicking display problem on a browser(IE7 & FF3.0.x), whenever I click the find button for a text search, the alert box which was setup by me for debugging purpose is showing all that json(records) but the browser displays nothing. Now I try …

0
49
Member Avatar for twistedind

Below is my javascript code. It seems to hanging up at the "var data = transport.responseText.evalJSON();" part. Here is a link to see how my html is made. [URL="http://twisted.visionsminis.com/price/compressors"]http://twisted.visionsminis.com/price/compressors[/URL] [CODE] if (!window.WAUpdater) var WAUpdater = new Object(); WAUpdater.Methods = { options: { redirectOnError: true, baseUrl: "", updateColor:'#666666', mode:"add", removeRow:null }, …

Member Avatar for kvdd
0
411
Member Avatar for dpd

Hi all, I'm not overly proficient at Javascript, but have fumbled my way through some tutorials to come up with the following code to create a tab mechanism. It works perfectly in Firefox, Safari, Chrome and IE8. However, in IE6 and IE7 it fails to operate as of the 'for …

Member Avatar for serkan sendur
0
110
Member Avatar for Kelicula

Hi all, I am usually a Perl programmer, I have some background in javascript and am attempting to create a Googleish selector div. [I]Please bear with me, excuse the long introduction...[/I] Here's the details: Our site filters content by location. I use zip codes to find radius's. So if a …

Member Avatar for hielo
0
234
Member Avatar for ishFady

Hi I am working with java project, using jsp, struts 2.1 and servlet technology. I would like to create a json file or a object from the data from the database using sql query on fly. Then pass this data to jsp page dynamically. Please can someone help or put …

Member Avatar for ~s.o.s~
0
64
Member Avatar for Thirusha

Hi I have passed my json string to a jsp page, i would like to loop through this string to create a sql statement. Any ideas how i would go about looping through the json string in the jsp page? a snipet of thejson string looks like this: [CODE]{"CREATEDBYNAME":"TEST_ADMIN","NAME":"test001","TYPEID":"1900000000"}[/CODE] Any …

Member Avatar for Thirusha
0
92
Member Avatar for Thirusha

I am very new to json and havent used much ojects in javascript. I have created a json object, and after i move through a couple of forms in my app i want to access that same object, is there a way to do it? Any help will be greatly …

Member Avatar for Thirusha
0
99
Member Avatar for Thirusha

Hi i have been searching around the net, but have not have any luck(most probably i m searching for the wrong thing). I am able to get json data from my database, i now want to populate the text fields in my form how do i go about doing it?

Member Avatar for Thirusha
0
64
Member Avatar for Oxiegen

Hi. As suggested by ~s.o.s~ in another thread, I'm posting this question here in the high hopes that someone might be able to help me. I have a JSON string coming in from a javascript that I need to convert to a predefined class object. I'd even settle for a …

Member Avatar for Oxiegen
0
342
Member Avatar for smruti_patra

Hi, I want to create the Json(Java Script Notation Language) String in the struts2 action class and pass in to my jsp page. I am new to Json and struts2. Please guide me if any body has any idea on same. Thanks In advance.

0
43

The End.