I am trying to call via ajax a WebMethod hosted in a traditional ASP.Net WebForm code-behind page. Here is the code for the WebMethod:
[WebMethod]
public static object States()
{
StateProvince[] states = new StateProvince[] { };
ApplicationServiceClient proxy = null;
try
{
proxy = new ApplicationServiceClient()...
If I have a STOMP/JSON AJAX app, does that mean that JSON is functioning on top of STOMP?
...
Hi, I am using $.getJSON(url,data,callback) method.
and from url it returns a JSON object of list type (e.g. states.ToList())
so how can i read that object?
states.ToList will have records of ID, and Name,
and I want to bind it with select tag (for selection list at client page.
...
I have a form in a PHP sending variables to a PHP file which duly inserts them into a MySQL table.
I currently have a div displaying the response from the PHP (which is anything that is printed by the PHP).
All works fine. The problem is I want to use variables that are created/updated during the PHP MySQL insert process. I.e. not only...
Hi,
I have a JSON string that I read in and would like to parse / map it to a JavaBean so I can use it in my Java code. What is the easiest way / library to achieve this?
...
Hi, I've the following XML output from an asp.net webservice:
<ArrayOfArrayOfString><ArrayOfString><string>1710</string><string>1711</string><string>1712</string><string>1713</string></ArrayOfString><ArrayOfString><string>Teleszkóp 350mm gázas</string><string>Teleszkóp 150mm olaj</string><string>Teleszkóp 260mm olaj sárga</string><strin...
I found http://www.ibm.com/developerworks/xml/library/x-xml2jsonphp/ , but I don't know how to use this code to get the xml from my web server. any ideas?
...
I'm developing now API for developers feature, which gives users API access to some functions of our product.
All responses are in json format.
HTTP Content-Type header in our server's response is text/plain; charset=utf-8
Should I send one of this:
application/json
text/x-json
text/json
instead of text/plain.
Or for API feature ...
There is a lot of documentation on how to serialize a Model QuerySet but how do you just serialize to json the fields of a Model Instance?
...
I am looking to return some JSON across domains and I understand that the way to do this is through JSONP rather than pure JSON. I am using ASP.net MVC so I was thinking about just extending the JSONResult type and then extendig Controller so that it also implemented a Jsonp method. Is this the best way to go about it or is there a bui...
I know this issue has been touched on before eg here
But the solutions doesn't seem to fit my problem.
Here is my html. The number of rows are variable
<table id="workPlanTable">
<tr>
<th>
Begin
</th>
<th>
End
</th>
</tr>
<tr itemId="1">
<td><input class="begin" id="begin_1" name="beg...
I cant seem to get my JSON file to work when pulling it in from another domain using JQuerys getJSON. I have placed the callback part at the end of the url but still have no joy. Firebug tells me its a cross domain issue, which seems to make sense as if I place the json file locally the below code (excluding the ?jsoncallback=? works f...
I need to install the JSON gem to start my app but I get the error below whenever I try to install the json gem. Can anyone help me out. Im using rails 2.2.2 and gems 1.3.1; thx for any help you can provide.
Arions-macbook-pro:.ssh arion$ sudo gem install json
Password:
Sorry, try again.
Password:
Building native extensions. This cou...
One of the features in Rails 2.3 was json key quoting. I was wondering if there was an easy way to turn the key quoting off or modify the way quoting is done (change to single quotes for example).
I'd like to output a json format that Google's Visualization API will accept (http://code.google.com/apis/visualization/documentation/dev/im...
I want to have a JSON object with the value of an attribute as a string with the character " .
For example
{
"Dimensions" : " 12.0" x 9.6" "
}
Obviously this is not possible. How do I do this?
With python.
...
Hi!
I am trying to obtain the url from the innerHTML of a web page using javascript.
This is what I'm doing:
var goog = newTabBrowser.contentDocument.getElementsByTagName("pre")[0].innerHTML;
alert(goog.responseData.results[0].url);
BUT it wont work :S
I outputted goog (using alert) and copied that into my program as follows:
v...
Okay, my situation is such: I need to send the contents of a JavaScript array to server where a PHP script will persist individual array entries in a MYSQL database. I am NOT using jQuery but I am about to integrate Prototype framework into my project.
I gather that the JS array can easily be converted to JSON using the toJSON() method ...
Hi,
I am making a ajax call, and the backend is gonig to return a JSON array.
Can someone give me an example of what my json array should look like so I can do the following in javascript?
if(myJSON.ErrorCode == 100)
{
alert(myJSON.Response.Message);
for(var x = 0; x < myJSON.Response.Values.Count; x++)
a...
Any idea on how to do it? If not possible, what's a good JSON library for C#?
...
I need a format to transfer data from program A to program B, and obviously I'd prefer to use a standard format. On the face of it XML would be perfect for this job, or possibly JSON.
The fly in the ointment is that I need the format to be incremental: program A appends data to the file from time to time, then program B slurps the whole...