I am using a tabpanel with two panels, where I am retrieving data through JSON. Retrieving data in the first tabpanel seems to work great, however, I can't parse the data retrieved from the JSON in the second tabpanel. Any ideas?
var registrationformPanel = new Ext.form.FormPanel({
frame:true,
border:true,
labelWidth: 125,
...
I have been dealing with this one for a few hours and am baffled at the work around:
I have a page that contains a form which sends a .post and retrieves html to replace a certain table. It works fine with a string with no crlf, but if there is a crlf, it does not replace the html in the table... Of course, it silently errors.
I have...
Forgive me if this is a really stupid question, but how do I get individual items from a JSON GET with HTTParty? For example:
require 'rubygems'
require 'httparty'
require 'pp'
player = pp HTTParty.get('http://api.dribbble.com/players/1')
will return this:
{"name"=>"Dan Cederholm",
"avatar_url"=>
"http://dribbble.com/system/users...
Hello again! I'm pretty new to PHP and JSON/XML, but we're forging ahead.
Our project entails logging in to a webservice (which we also built) from a handheld device and then accessing our website from that device. The point is to only allow users who have logged in on the handheld device to access the webpage.
Now, I guess this does...
Hi Guys , why I have this kind of error in my code :
"Error: jsonFlickrApi is not defined"
$.getJSON('http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&api_key=669158895706254986e97354a3c7e9a9&photoset_id=72157623477817483&extras=original_format&format=json&jsoncallback;=?',
function(da...
Let's say I have an invoice and an invoice item. I'd like to show a list of invoices in a grid on the top and below I want to show the corresponding invoice items to the selected invoice. I have the SQL and JSON part down fine. I query the invoices, query the invoices items for all invoices returned (only 2 queries). Then I match up the ...
Could i parse JSON string as GPathResult ?
Or something with similar interface... I just have some code which doing some work with XML and i want to add JSON support. But GPathResult is very specific class and slightly differs form JSONObject or JSONArray.
...
Hi all,
I am turning in circles and are hoping for some clarification by you guys ...
1) I have a site, using jquery and a Goolge Maps Plugin (http://plugins.jquery.com/project/gmap).
This all works perfectly and I get my markers set right and I really like this solution. This is how it looks like:
<script type="text/javascript" src...
I have found how to render ActiveRecord objects in Rails 3, however I cannot figure out how to render any custom objects. I am writing an app without ActiveRecord. I tried doing something this:
class AppController < ApplicationController
respond_to :json
...
def start
app.start
format.json { render :json => {'ok'=>true}...
In .Net, I want to generate a json object as follows:
{"1":true}
Can I do so using JavaScriptSerializer?
Can I do it any other way?
...
I'm working on a RoR project and I am passing a JSON object to a script. Specifically, a list of events to a jquery calendar.
First I get the necessary events from active record and convert them to json:
@events = CalendarEvent.find(:all, :conditions => ["mentor_id = ?", current_user]).to_json(:only => [:id, :availability, :starts_at,...
I created a function to take location input, pass it to Google Maps Javascript API V2, and return a latitude/longitude/normalized address that I'll have to split into different fields in a database (i.e. city, state, postal). I'm requiring at least a level 5/post code accuracy for the input so that the returned data from Google will alw...
I have a simple class that overrides to_json to list the attributes in an array -
class MyClass
def initialize(a, b)
@a = a
@b = b
end
def to_json(*opt)
[@a, @b].to_json(*opt)
end
end
to_json works fine for an instance of the class -
irb> m = MyClass.new(10, "abc")
irb> m.to_json
=> "[10,\"abc\"]"
But if I put ...
Hi, I am using TouchJSON to retrieve info for my app and put it in a dictionary. I would like to be able to sort it by values like difficulty and rating. How would I go about this? I have included my .m file.
Thanks, enbr
http://pastie.org/1091334
...
I want to create a simple JSON-based protocol to allow my game to talk to my custom server, but I don't want embed it in HTTP.
If I send a custom text-based protocol request to my server on port 80, will firewalls block it for not using HTTP format, or do they only care about the port number?
I won't use the same server as a web server...
I was thinking about design patterns lately, and I had an idea about one I hadnt came across yet (im sure it exists), so I tried to make it, and to my surprise it was easier than I thought. I thought it was cool, so Id like to share it with ya.
//pass this object a function, and it adds its
//biological and technological distinctivenes...
jQuery - is it possible to dynamically wrap a bunch of generated <li> elements (fetched via JSON) appended to a div id with <ol>, for example?
I know of the wrap() function, but that seems to do it for each element of the li. Applying the prepend("<ol>") automatically closes the tag before the each / append() loop goes through
...
Hi there, im attempting to make a auto preloader via php an JSON my reason being no other preloaders suit my purposes at this time. Im developing off a WAMP installation with php version 5.3.0 an apache version 2.2.11 an using the following php code:
$rootDir = dirname(__FILE__).'/..';
$imgdir = opendir($rootDir.'/images/');
$i=0;
whi...
I am converting my datatable to c# generic list.
DataTable dt = mydata();
List<DataRow> list = dt.AsEnumerable().ToList();
Now how can i convert this list to json using json.net? Any suggestion.
Sample of json format should be like this,
{"Table" : [{"userid" : "1","name" : "xavyTechnologies","designation" : "",
"phone" : "9999999...
I currently have a list of a book object as follows:
public class Book()
{
public int BookId { get; set; }
public string Name { get; set; }
public string Author { get; set; }
}
List<Book> books = BookRepository.SelectAll();
I would like to return a string list/array of Authors for return via a Json Result in my action met...