I am working on the XML proyect and I have a problem when I try to connect a json file in my Xquery.
I explain you my problem with more details.
I do not know how to read a json file in Xquery, I got a URL(this URL has a json file) in Xquery, and that URL is the next:
http://discomap.eea.europa.eu/ArcGIS/rest/services/Admin/EuroBounda...
All,
I've moved on to using the ui autocomplete rather than the plugin, took me a while to figure out extra params based on an example I found here, but that part works.
I'm having problems with dealing with the return data. In the code below I can alert out the title being returned, but I get a drop down of 'UNDEFINED' in the browser....
I'm trying to reload a JSON file every 10 seconds with JQUERY.
The page is here: http://moemonty.com/chirp/chirp.html
The Code is here:
<html>
<head>
<title>the title</title>
<!-- included Jquery Library -->
<script type="text/javascript" src="./js/jquery-1.4.2.js"></script>
<!-- jquery library -->
</head>
<body>
<script>
...
g,day. could someone help me make sense of why my code is not returing the results to json? i am sure there is an error in my code but cannot seem to find it. what is supposed to happen is the values of $dept and $box are supposed to be returned in an alert, but this does not happen. thanks
<?php
function runSQL($rsql) {
$hostname = "...
Hi all,
I apologize if this has been asked previously, but I haven't been able to find an example online or elsewhere.
I have very dirty data file in a text file (it may be JSON). I want to analyze the data in R, and since I am still new to the language, I want to read in the raw data and manipulate as needed from there.
How would ...
Hi,
I have a JSON request that check to the server if a username has been already taken during the registration procedure.
This is the jQuery call:
// Instant check availability of the username
$("#txtUserName").blur(function() {
if ($("#txtUserName").val() == "") return;
$.ajax({
type: 'post',
url: '/Login/Chec...
I'm trying to set up an input tag with jquery autocomplete function, but it's doesn't work when Im referring to an external JSON data. It works perfectly, however, with local JSON-like array... Let me explain this in my code:
HTML file:
<html>
<head>
<meta charset="utf-8">
<script src="jquery-1.4.2.min.js" type="text/javascript"></s...
This question came to my head while working with a map in silverlight that displays some harbours, and after mouse_overing the harbour, its data gets displayed in the screen. I did it and now it works, using WCF service, but I get some big delays. My friend told me that maybe Json could handle better with this delay, but I have no idea.
...
I'm researching some JSON parsers, but some are home-grown. Is there a validation test that can be run against a json parser which verifies that the parser is "valid" and serializes/deserializes JSON string properly?
...
$class = new Class;
$foo = json_decode($_POST['array']);
In this highly contrived example, I have a class with its own functions and variables, blah blah.
I also just decoded a JSON string, so those values are now in$foo. How do I move the elements in $foo over to $class, so that:
$foo->name becomes $class->name?
Would be trivial if...
I would like to use a library like the Google Visualization API to draw charts, but taking the data as JSON from an external source. The context is to use some SPARQL service to extract the data from a XHTML+RDFa source, as described here. But that latter page has to use a trick, but points out that it would be great that these visualiza...
I have trouble wrapping my head around a peculiar feature of the JSON data format.
The situation is as follows: I have a string containing a Windows (sigh) directory path, backslashes escaped. For some reason, the jQuery JSON parser thinks that a single escape is not enough.
<script type="text/javascript" src="http://ajax.googleapis.co...
I've been using the DataContractJsonSerializer class to send data from a Silverlight 4 control to the server (currently as a serialized string via Http Post at the moment). The class in question serializes great on the silverlight / client side but deserializing back has been a problem on the server. The closest I've gotten is inclusio...
im having trouble extracting the trend name and search query from the json response
$init = 'http://api.twitter.com/1/trends/1.json';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$init);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result = curl_exec($ch);
curl_close($ch);
$obj = json_decode($result);
foreach ($obj->trends as $trend)...
I am working with the FullCalendar module (great, btw) and I'm having trouble populating events from the database. I am receiving a JSON string created by a C# web service. However, when I try to parse it and print out test alerts, I get nothing but "undefined".
My response string looks like this in Firebug:
{d="[{"ScheduleRecId":9,"Em...
I have a list that I need to fill using a JSON collection of object. Here is what my action is returning:
public ActionResult GetProductCategories()
{
var categories = _entities.ProductCategories.ToList();
var result = new List<SelectListItem>();
foreach (var category in categories)
...
The following code works fine in FF and Chrome, but not in IE8.
I have 5 related category select boxes. The below code relates to selecting a category from the first select box.
In IE8, I get a blank subcategory select box, after selecting a category.
In Chrome and FF, I can browse through categories and subcategories normally
CODE
$...
I have implemented Autocomplete and I'm having trouble with the label vs. value in the text box after the item is selected. When I type in a zip code, I see the label in the dropdown:
but after I select one, instead of the label showing in the text box, the value (which is the ID that needs to be saved to the database) is displayed:
...
Can Rails automatically parse datetime recieved from form text_field?
<div class="field">
<%= f.label :created_at %><br />
<%= f.textfield :created_at %>
</div>
params[:product][:updated_at].yesterday
Currently i get following error:
undefined method `yesterday' for "2010-04-28 03:37:00 UTC":String
...
I would like to know how to properly escape my json code. I am using the datatables plugin and this is the json that is failing.
"6\\\\\\\' 5\\\\\\\" Ford HD ",
It originally looks like this (without the opening/closing brackets and the comma):
6\\\' 5\\\" Ford HD
How would I properly escape this?
...