884 Topics

Member Avatar for
Member Avatar for denizen08

I have been trying to mimic GoogleReader's Json output, particularly the subscription listing. I started out creating classes for deserialization but I don't have a full grasp of the concepts. It crashes when I really try to consume the Json file, but when I generate my own serialized file it …

Member Avatar for denizen08
0
111
Member Avatar for Acute

When we send ajax request to some php file via post, we get the variables in php file from $_POST['varName'], and then send response as a text or html or JSON or whatever with echo or print. So, what if a lot of such ajax requests come simultaneously? what server …

Member Avatar for pritaeas
0
103
Member Avatar for Nathan666

Hi I have 3 dropdowns on the following page, http://gilt.martinduys.com/index.php/places I managed to get the region dropdown to get filtered based on the country selected in the first, the problem is when a user selects a region, all the regions disappears. So to see what the problem is first select …

Member Avatar for pritaeas
0
91
Member Avatar for ello

Hey guys, Im going to try and explain this the best I can, maybe a bit difficult, but here goes anyway: I have AJAX calling a php function which displays a random quote when a user clicks a link. Every 5th click a div is echoed over the quotes, that …

Member Avatar for ello
0
315
Member Avatar for sjgoodjob

I am have pass Zend PHP 5.3 Certification ,i will list what should you care for about this test (just advise !!!!!!!!!!!!) but i think if you follow it,i think it will be better for you pass Zend PHP 5.3 Certification. HTTP Headers Object Oriented Programming (Reflection,Late Static Binding,SPL) Security(Cross-Site …

0
52
Member Avatar for Ambislm

This is my sample application which provides result as follows: [CODE]Array Values : arr[0][0] :6 arr[0][1] :0 arr[0][2] :0 arr[1][0] :0 arr[1][1] :0 arr[1][2] :0[/CODE] am using the jQuery Highcharts: [CODE]chart = new Highcharts.Chart({ chart: { renderTo: 'container', defaultSeriesType: 'column' }, title: { text: document.chart.chartTitle.value }, series: [{ name: 'USA', …

0
84
Member Avatar for sumeetdesaeee

I am new to JSON... I have been told to use it with XStream in my project.. I searched on net... But, I did not get any satisfactory information.... So, can anyone please tell in simple language what is JSON n basically why is it used?

Member Avatar for sumeetdesaeee
0
38
Member Avatar for Nathan Campos

I'm trying to adapt the opensource code from the page [url=http://tlrobinson.net/iphone/lighttable/]Drag and Drop in MobileSafari[/url], here is a snippet of the code I've changed from: [code] function jsonFlickrApi(data) { for (var i = 0; i < data.photos.photo.length; i++) { var p = data.photos.photo[i], img = document.createElement("img"); img.src = 'http://farm'+p.farm+'.static.flickr.com/'+p.server+'/'+p.id+'_'+p.secret+'_m.jpg'; img.className …

Member Avatar for Airshow
0
295
Member Avatar for diafol

Hi All. I have been struggling with a form wizard all day. I'm using jquery stepy (form wizard) along with validation plugin. To cut a long story short, my first step is to get MySQL connection from form controls details. On submit ('next' button) a check is made on an …

Member Avatar for diafol
0
1K
Member Avatar for cj333

Here is the json show: [CODE]{ "results": [ { "title": "Conflicting Reports on Iran\u2019s Arrest of a Foreign Woman", "multimedia":[ { "caption": "Moktada al-Sadr spoke to thousands of supporters on Saturday, stating conditional support for the Iraqi government." } ] } ...] }[/CODE] I tried this code, but I can …

Member Avatar for cj333
0
82
Member Avatar for gecata83

Ok I'm having a problem with this code. The problem occures when I set the POST request and alert me with 411 error. Without this two lines [CODE]curl_setopt($session,CURLOPT_POST,true); curl_setopt($session,CURLOPT_POSTFIELDS,$xml)[/CODE]this code output nice xml which shows all the info in my spreadsheet. With this two lines we should put in the …

0
57
Member Avatar for logicslab

Hi pals , I am really stuck in parsing a JSON string and take it's values. I got the json string as {"user":{"id":"1","firstname":"Freelogin","created":"0000-00-00 00:00:00","lastname":"Administrator","email":"fred@websecurify.com", "usergroup_id":"1","status":"1","ip_enable":"N","priv":"0","expire":""},"data":{ "1":{"5":{"last_update":"2010-12-13 16:16:16","status":"0"},"3":{"last_update":"2010-12-13 16:41:48","status":"1"}},"2":{"6":{"last_update":"2010-12-13 16:41:48","status":"1"}}},"server_array":[{"id":"1","name":"anes.yyy.net"},{ "id":"2","name":"neseema.xxx.net"}],"service_array":[{"id":"5","name":"POP3"}, {"id":"6","name":"Cpanel"},{"id":"3","name":"SMTP"}],"sort_by":"servername", "sort_order":"ASC","pagelinks":"","totrows":"2","offset":"0","limitvalue":"10", "rows_monitor":2,"current":"monitor","uri":false} Friends How to Parse this and take the Results for further processing in javascript.... I am waiting …

Member Avatar for NightLight
0
153
Member Avatar for kafro

I'm trying to create a Tkinter that will search through a webiste and import a picture. My codes is a bit messy but I'm able to use the Search button and grab a URL and print the URL in the Python Shell, but I'd like to show the URL image …

0
82
Member Avatar for anandhikrishnan

Hi All, I have a app.js file. In that for a textarea if i entered data with single qoute eg: TEST'S it gets stored in DB as TEST'S to avoid DB problem. I return the textarea value from java file in json array to app.js. If the array name is …

Member Avatar for anandhikrishnan
0
123
Member Avatar for vishalkhialani

Hi, Below is the data format which I am passing to php via javascript in json format. [CODE] {"name":"Secret","value": "checked","name":"OldSpice","value": "unchecked","name":"Degree","value": "unchecked","name":"Dove","value": "unchecked","name":"Axe","value": "unchecked","name":"Maxim","value": "unchecked","name":"Nivea","value": "unchecked",}[/CODE] I can access the data successfully using the code [CODE]echo $_POST['name'];[/CODE] I want to convert it to an array. I tried to use json_decode() …

Member Avatar for vishalkhialani
0
296
Member Avatar for aurawind2k

Is there an equivalent option to curl's -d option for pycurl? What I want to do is specify multiple parameters in the URL for instance this does not work: [CODE] USER = aurawind2k PASS = XXX STREAM_URL = "http://status.dummy.com/status.json?userId=12&page=1" class Client: def __init__(self): self.buffer = "" self.conn = pycurl.Curl() self.conn.setopt(pycurl.USERPWD, …

Member Avatar for joehms22
0
115
Member Avatar for jfarny

I am trying to create a commenting system that is linked with videos hosted on my server. The videos are displayed on a watch page (watch.php) and the commenting system is included below the video player. When new comments are posted from the watch page they are then processed and …

Member Avatar for jfarny
0
713
Member Avatar for Asset

How would I write a code to read in this book.txt [CODE]title*Programming PHP author*Lerdorf, Tatroe and MacIntyre publisher*O'Reilly Media description*3 This book covers the PHP programming language. It assumes the reader has some programming experience. It covers connecting to Oracle and MySQL databases. title*Core PHP Programming author*Atkinson publisher*Pearson Education description*3 …

Member Avatar for Asset
0
343
Member Avatar for Capt Spaghetti

I am able to present the organizations for a user selected city and state and I am then able to "down select" using the id which presents me with the json encoded data for a single organization. The problem is that along with the json encoded data I am getting …

Member Avatar for Capt Spaghetti
0
129
Member Avatar for cmhampton

Has anyone ever tried returning a ColdFusion structure through a web service? The WSDL type CF assigns to this is apachesoap:Map, but when I consume this in VB.NET, the data is null. I have converted the entire thing into a JSON string, and that seems to work, but it requires …

Member Avatar for Ragen
0
636
Member Avatar for Capt Spaghetti

I am allowing the user to select a city and state and presenting them with a list of organizations from a MySQL table which is formatted by the code shown below. The user then selects a particular organization by clicking on the ID for their chosen oranization at which point …

Member Avatar for Capt Spaghetti
0
158
Member Avatar for serena5

I am writing Spring web MVC app whereby the client and the server communicates by sending json messages. On the client I am making asynchronous calls to update textboxes. Could you please let me know if I am using the right syntax? I have hit a brick wall and cannot …

0
62
Member Avatar for Capt Spaghetti

I currently have two php files that I need to combine so I can eliminate the use of the "<a href" construct. The first file allows the user to enter a city and state to search for organizations. After entering the city and state the user is presented with a …

0
65
Member Avatar for RossCode

I will be building a site soon that requires the use of CSV files zipped up on an ftp which I have never tried before. I will have to connect to an FTP server via PHP, collect a zip file, unpack the CSV file and then use the values in …

0
62
Member Avatar for benhowdle89

hi i'm using this, its working great, but if someone has a hyperlink in their status it doesnt pull it across - is there anything someone can think of? Thanks [CODE] $(document).ready(function(){ var username='xxxxxxxx'; // set user name var format='json'; // set format, you really don't have an option on …

0
90
Member Avatar for UncleJoe

I hope this hasn't been beaten to death...I looked through the forums and didn't find what I needed. I have a form where an input (textbox) Change event populates several other inputs within the form via ajax...everything works famously when I comment out the Form::open('edit_product'), Form::button('submit', 'Save Product'),and Form::close() in …

Member Avatar for UncleJoe
0
215
Member Avatar for lgriess

I've posted this problem on several forums and no one has come up with the correct answer, but anyway here it goes: I've tried stringifying and querystring'ing the parameter but the Response error continues to be {"Message":"Object reference not set to an instance of an object.","StackTrace":" at ProvaReportLocale._Default.GetColumns() in \\ProvaReportLocale\\Default.aspx.cs:line …

0
60
Member Avatar for lgriess

I'm having a problem with the following code: I have the following jquery call: the problem is that I have several `<select name="^DDLColumns1..2..3..4`. etc.. controls on my page, however this is only populating the first one: `<select name="^DDLColumns1"` anybody know why the select would do this? <script type="text/javascript" language="javascript"> $().ready(function() …

Member Avatar for Airshow
0
179
Member Avatar for Capt Spaghetti

If I run my php file manually I am getting the output as follows: [{"org_id":"39575","orgname":"ARTHRITIS FOUNDATION - VIRGINIA CHAPTER","orgcity":"RICHMOND","orgstate":"VA"}] The php code is as folows: [code=php] <html> <body style="background-color:#33990f"> <?php // connect include require ("connect.php"); $query = "SELECT * FROM orgs WHERE org_id = 39575"; $result = mysql_query($query)or die(mysql_error()); if …

0
91
Member Avatar for ruwanaru

[B]This is the code that not getting the result[/B] [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head> <title>Nice select</title> <script Language="JavaScript"> function checkData() { var myTest = me.D1.value; //alert(myTest); var req = new Request.JSON({ url: 'dbselect.php', method: 'post', data: 'brand=' + encodeURIComponent(myTest) }); req.addEvent('success', function(response) { var …

Member Avatar for hielo
0
155
Member Avatar for lobas

Your help would be most appreciated. I'm dong this jquery ajax GET right. Although it submits and sends as a $_GET and is processed fine by process.php for some reason it is not reflected in the url. [CODE]jQuery('#results-submit').click(function() { jQuery('#waiting').show(0); jQuery('#container').hide(0); jQuery('div.carpark').remove(); jQuery.ajax({ type : 'GET', url : 'process.php', dataType …

Member Avatar for hielo
0
142
Member Avatar for cpu278

Hi, quick question. For inventories with very heterogeneous items, what's the best approach? Say a company is keeping different kind of pieces, like memory, hard drives, monitors, but also they could have cables, LEDs, scrap items, etc. So that brings in different specifications. How do you store those? Do you …

Member Avatar for pritaeas
0
68
Member Avatar for new SE

Hi, now i'm working to export the gridview in asp.net to xml.. anyone have any idea.. just now,this is my code but there is some error that i can't figure out.. [CODE] Response.ContentType = "text/x-json"; XmlDocument xmlToExport = new XmlDocument(); string toExport = MethodToReturnXMLString(id); xmlToExport.LoadXml(toExport); Response.Write(xmlToExport); xmlToExport.Save("Filename.xml"); Response.End(); [/CODE]

Member Avatar for dnanetwork
0
78
Member Avatar for cpu278

Hi there, I couldn't find a solution to this small problem so posting it here. I have some hardcoded values I want to send back to the browser. When I have this code: [code=php] ... $cr1 = '{"date_added":"8/3","type":"1","contact":"John Smith"}'; $cr2 = '{"date_added":"8/7","type":"2","contact":"Jane Smith"}'; $company_reqs[0] = json_decode($cr1,1); $company_reqs[1] = json_decode($cr2,1); $company_data['reqs'] …

Member Avatar for cpu278
0
95
Member Avatar for lifeworks

Simple issue... If my website is storing text in a database (MySQL) - and will ordinarily be outputted in good ol' HTML... but possibly via XML, or JSON... how do I store the text, allowing for eg. paragraph breaks, but not using HTML to format it?? lworks

Member Avatar for Lsmjudoka
0
99
Member Avatar for spac_e

Hey- First time posting here so hopefully I explain everything correctly. [CODE] class sendbackcurricula(app.page): def GET(self): query = models.Curricula.query.all() map = dict() for x in query: x = x.to_dict() map[x['owner_id']] = x['title'] return json.dumps(map); [/CODE] The above code will return the last element held in the database at 'owner_id' and …

Member Avatar for TrustyTony
0
80
Member Avatar for manisvembu

Hi ... I Need to work with more AJAX Content, So i want a JS Function with Arguments like URL(the url to Ping), Parameters to Send , ctype(Content Type XML,JSON or TEXT). All i need is when i Call the Function with these Arguments , the Function should return the …

Member Avatar for manisvembu
0
118
Member Avatar for jrock2004

Ok so I am trying to setup on my site to have 6 of my recent tweets. I am trying to use the .getJSON method and it is just not working. [CODE] $.getJSON("http://api.twitter.com/1/statuses/user_timeline/jrock2004.json", function(data) { $.each(data, function(){ $('<div></div>') .hide() .append('<span>' + this.text + '</span>') .appendTo('#tweets') .fadeIn(); }); }); [/CODE] Any …

Member Avatar for JJenZz
0
103
Member Avatar for cmhampton

I am having issues parsing JSON data from a web service. The web service is local on my machine, and I have added it as a Web Reference. Simple data types from the service work perfectly. However, if I call a method that returns a complex structure (such as an …

Member Avatar for cmhampton
0
515
Member Avatar for maplax

I have a list of books that I need to access from 3 or 4 different functions of my program. It's 250 books with unique names. Would it be wise to use simple array to store the list? Or is there any easy way for a newbie to manually create …

Member Avatar for mrnutty
0
110
Member Avatar for dan_ord

Hi there, I've found quite a nice flash / javascript / php based multiple image uploader called FancyUpload. [URL="http://digitarald.de/project/fancyupload/"]http://digitarald.de/project/fancyupload/[/URL] I've got it working fine, however i need to be able to insert the data into a database Below is my database structure: photo_ref event_ref photo_thumb heat Basically i want to …

Member Avatar for kyawswarthant
1
203
Member Avatar for julzk

Hi all, I have a problem. I have a menu and when clicked it loads the data from that menu into my main page divs. However, I want to be able to auto refresh my div#mainview_json every 5 seconds. When I try to implement the auto_refresh = setInterval(blah, 5000); it …

0
51
Member Avatar for julzk

Hi, In a previous JSON feed, I am passing through a market id on click to the below function. I then run another JSON feed within the below function, but I am trying to place the getmarketid var within one of the appending .html JSON div tags below to pull …

0
62
Member Avatar for sakhi kul

hi to all, I written a web method ListTask() which returns array ob object of class TaskList which give me result in xml form I want to bind that result to table in asp.net 3.5 aspx page by calling that webMethod in jQuery ajax call. I have tried many ways …

Member Avatar for sakhi kul
0
131
Member Avatar for AbhikGhosh

Hi I have a simple jsp page in which there is an ajax call on an input string which returns the upper case of the string in json. This is working for the first time but not on successive requests. I am using the GET method. Why is it not …

Member Avatar for AbhikGhosh
0
370
Member Avatar for dhanapal86mca
0
66
Member Avatar for Kedora19

The problem is, I'm beginner with php and have no idea what the difference between ajax and json. So if someone could clear that up first, that would be great. Now on to the bigger problem I found this validation script on this website: [url]http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/[/url] I have it working succesfully …

Member Avatar for Kedora19
0
172
Member Avatar for k2k

i wanna try to use ajax to async something from the mysql database.. i have read many tutorial/book/article recently and there are many things that I don't clearly understand. it looks like json is a good pick to do stuffs like loading things from a database. however, the examples i …

Member Avatar for scrappedcola
0
325
Member Avatar for anishp83

function ShowAvailability() { $.ajax({ type: "POST", url: "CS.aspx/CheckUserName", data: '{userName: "' + $("#<%=txtUserName.ClientID%>")[0].value + '",userName1: "' + $("#<%=TextBox1.ClientID%>")[0].value + '" }', contentType: "application/json; charset=utf-8", dataType: "json", success: OnSuccess, failure: function(response) { alert(response); } }); }

Member Avatar for scrappedcola
0
87
Member Avatar for colon3l

Hi there ! I'm building my first GC extension, and I am having a problem using this function. I would like to get the url of the current tab, and to do so (after some google research, of course), I use the [I]chrome.tabs.getSelected()[/I] function. Here it is in my code …

Member Avatar for colon3l
0
434

The End.