This is probably a super easy question but I'm banging my head on it for some reason.
Here is the jQuery I have
$(function() {
$.get(urlGetContainerNumbers, function(data) {
console.log(data);
for (var idx = 0; idx < data.length; idx++) {
var containerNo = data[idx];
console.log(containerNo)...
In my JavaScript I want to access the properties of a JSON serialzied object that was produced via a .NET web service. How do I deserialize the JSON data into an object that I can maniuplate in the JavaScript?
...
I have a fair sized config file in my asp.net application that I would to have access to in my client side script. Can anyone think of a good way to cause a section of my configuration to be serialized out as JSON and made available as a cacheable url? this is .net 3.5, and the config doesnt have any security issues.
...
First let me explain the data flow I need
Client connects and registers with server
Server sends initialization JSON to client
Client listens for JSON messages sent from the server
Now all of this is easy and straightforward to do manually, but I would like to leverage a server of some sort to handle all of the connection stuff, keep-...
I have a database at zoho creator. They feed me a json of the database content. I have trouble to parse and display that data with jquery or php or in html
Question : So how do I capture json data, and save (convert) it to file as XML. With the xml file I can parse it with jquery xpath easily... the "file" will be a local database, as a...
Within an ASP.NET application, I'd like to serialize a collection of plain-old-CLR-objects (POCO) to a JSON string, which will then be sent down to the client as part of a web response.
Is there a light-weight C# library that does this?
...
I have a little problem and because my WEB development skills are not the sharpest I hope you can help me.
The problem is that I am working on a digital SCRUM task board and one of the core functionality would be that browsers having the same project taskboard open would have to show the same picture. So that if person A moves a task pe...
How would I use Ajax do a filtering on a list view in MVC.
Scenario:
List all the news items. To the left is a filter list of categories. Check which categories to show and click the filter button ( or as you check and uncheck it performs the filter ?)
to filter the list of new stories.
Here's my View code for iterating the items in ...
I'm using Prototype 1.6.1 to create a POST to a page. The POST data is a complex JSON object. Can someone tell me how on the receiving page I can access the raw body of the POSTed data?
Sending page:
myObject = {"key":"val",
"has many":{"key1":"val1",
"key2":"val2"}
}
new Ajax.Request('...
I have a json feed from zoho : here, you can acces the same file unencrypted here
I like to be able to display and parse the data from that feed int html
I have ask a similar question yesterday, but the solution was a javascript, and having java disable client side can lead to nothing to display... so i will go with php. I can parse a v...
I read a post about making JSON calls (with jQuery) safer by adding a dataFilter to parse the returned string.
However in the post it's explained (more specifically in a previous post linked from the above post):
It’s important to note the removal of the dataType parameter in the $.ajax() code above. This is required in order to pre...
Because of performance tuning I would like to return only necessary properties. Is there a possibility/workaround? Pseudo / sample code to understand:
[DataContract]
public interface IMemberOverview
{
[DataMember]
public int Id { get; set; }
[DataMember]
public string Name { get; set; }
}
[DataContract]
public interfac...
Here is my JSON data :
{"Liste_des_produits1":[{"Added_Time":"28-Sep-2009 16:35:03","prod_ingredient":"sgsdgds","prod_danger":["sans danger pour xyz"],"prod_odeur":["Orange"],"prod_nom":"ceciestunproduit","prod_certification":["HE • Haute Efficité","Certifier Ecologo","Contenant recyclable"],"prod_photo":"","prod_categorie":["...
I have a table of data on my page. The columns are "start", "end", "comment", and "options". Within the options column is a button to delete the row, and a button that makes a row of the table editable. This allows the values of "start", "end", and "comment" to be changed. Clicking it again finishes the editing process. Finally, there is...
I've been racking my head for two days trying to find a solution for this. I'm using jQuery.ajax() to grab values from the database to update a box when another box is changed. The php script grabs the values from the database and then spits out json. IT works fine in FF but in all versions of IE the select box doesn't get updated. I'v...
I am trying to serialize an extended UIComponent (com.esri.ags.layers.GraphicsLayer) to send and store in a MSSQL Server database using WebOrb.
Apparently, these types of objects aren't meant to be serialized, and I haven't had much serializing/deserializing using the flash byteArray. I have also tried several other libraries(FlexXB,as...
Hello,
I have this json, and when i get this json i need to run the function which comes at callback object.
{
formId: 'snn_service_item_form',
item_id: '1',
item_title: 'some item',
item_description: '',
item_duration: '10',
item_price: '120',
item_level_1 : 1,
item_level_2 : 0,
item_level_3 : 1,
...
I have a json file/stream, i like to be able to make select SQL style
so here is the file
the file contain all the data i have, I'll like to be able to show, let said :
all the : odeu_nom and odeu_desc that is : categorie=Feuilles
if you can do that with PHP and json (eval) fine... tell me how...
on the other part in sql i will do :...
I am populating a select menu with getJSON. I am wondering if there's a way that I can use jQuery's .each function to bring in these values?
Surely there must be an easier way to accomplish this...maybe?
PHP file:
<?php
$queryMonth = "SELECT monthID, month FROM months";
$result = $db->query($queryMonth);
while($rowMont...
Hi,
I have a strongly typed View that accepts a Customer model, this customer model is a LINQ2SQL partial class that has a property called Journeys which returns all Journeys that are associated with this Customer.
I was wondering if it would be possible to access the Customer.Journeys property as a JSON object from within the Javascri...