Hello,
My problem is the folowing:
I am trying to retrieve the postvalue, but whenever I put that statement in the php code the ajaxcall will fail.
I cannot see what I am missing here??
$.ajax({
url: "includes/livetabs.php?actie=sessiegebruikersnaam",
data: {gebruikersnaam: tbgebruikersnaam},
cache: false,
...
I have a query on a PostgreSQL system returning a boolean:
my $sth = $dbh->prepare("select 'f'::boolean");
$sth->execute;
my @vals = $sth->fetchrow_array;
According to the DBD::Pg docs,
The current implementation of
PostgreSQL returns 't' for true and
'f' for false. From the Perl point of
view, this is a rather unfortunate
...
I am very new at jQuery ... I've used Javascript many times and am quite familiar with DOM manipulation but simply not the API or gears of jQuery.
I am dynamically adding DOM elements via a JSON call like so:
$(document).ready(function() {
var url = "jsonMenuItems.js";
$.getJSON(url, null, function(data) {
v...
var query1 = urlencode($('input[name="searchTerm"]').val()); //user1
$.getJSON('http://twitter.com/friends/ids.json?screen_name='+ query1 +'
});
This is a simple code that gets the json data from the url
http://twitter.com/friends/ids.json?screen_name=Planemad&jsoncallback=?
(click url to view the json data)
The data looks like...
var query1 = urlencode($('input[name="searchTerm1"]').val()); //user1
var query2 = urlencode($('input[name="searchTerm2"]').val()); //user1
var rpp = 20; //number of tweets to retrieve out
var c=0;
var f1=new Array();
var f2=new Array();
var common=new Array();
$.getJSON('http://twitter.com/followers/ids.json?screen_name='+ query1 + '
...
What is the best way to pass JSON to and from a Flash movie?
Currently to communicate between javascript and Flash :
I'm using 'flashvars' to pass data to the flash movie when it initially loads
I'm using 'ExternalInterface' at runtime to transfer single values, such as booleans at runtime
I want to move to the next level and do th...
I have two JSON objects. One is python array which is converted using json,dumps() and other contains records from database and is serialized using json serializer. I want to combine them into a single JSON object.
For eg:
obj1 = ["a1", "a2", "a3"]
obj2 = [
{
"pk": "e1",
"model": "AB.abc",
"fields": {
...
Hello,
I'm building my own ajax website and I'm contemplating between REST and RPC.
If my server supported Servlets I'd just install persevere and end the problem but my Server doesn't support Servlets.
RPC is simpler to code (imo) and can be written in PHP easily.
All I need is a database query executer.
I'm using the Dojo Toolkit an...
I am creating a calendar list system, that has tabbed dates on top, with data listings below it. I think I know how to use JSON and load the data with JQUERY into a div, but I am not sure how to load it dynamically, based on which tab I selected.
How would I do this, and what's the best practice? I am using the codeignitor framework.
...
Summary: How do I map a field name in JSON data to a field name of a .Net object when using JavaScriptSerializer.Deserialize ?
Longer version: I have the following JSON data coming to me from a server API (Not coded in .Net)
{"user_id":1234, "detail_level":"low"}
I have the following C# object for it:
[Serializable]
public class Dat...
Hi all,
I am trying to create a UIImage from a byte array that is actually held within a NSString.
Can someone please tell me how I can do that?
Here is what I was thinking of doing:
NSString *sourceString = @"mYActualBytesAREinHERe=";
//get the bytes
const char *bytesArray = [sourceString cStringUsingEncoding:NSASCIIStringEncoding];...
Hi
I've a little question about decoding special characters from a JSon result (in my case, \x27 but it could be any valid html encoded character). If the result doesn't contains any escaped characters, it works well but if not, I get a Unrecognized escape sequence exception. I try to do an HttpUtility.HtmlDecode on the Json string bef...
Here's my code, its based off the flickr example, as I am trying to learn how to use JSON.
My Question:
How do I get the var title to show up correctly in HTML, I am still new to programming trying to teach my self.
I am getting [object object] which I think means its not a string. Not sure how to write it as one, probably really simpl...
Dear all,
Let's say I have a perfectly fine JSON serialized string, like so:
{"Page":0,"Total":0,"Records":0,"Rows":[{/*blah*/}]}
This isn't returned by a particular URL, it's just sitting there, happy as it can be (harcoded). How do I add it to jqGrid? I've tried every conceivable variation of the loadComplete function or a addJSONDa...
I am trying to implement a feature similar to the Related Questions on StackOverflow, I am doing this in MVC.
$().ready(function() {
var s = $("#Summary").val();
$("#Summary").blur(function() { QuestionSuggestions(s); });
});
function GetPastIssues(title) {
$(document).ready(function() {
$.ajax({ type: "POST",
url: "/Issue/G...
Hi folks,
I'm just doing a simple graph using Open Flash Chart http://teethgrinder.co.uk/open-flash-chart/ which shows the visits on my site.
I have produced the following json data but I'm getting back a syntax error from this:
&title=Traffic,{font-size: 20px; color: #736AFF}&
&x_label_style=10,0x000000,0,2&
&x_axis_steps=1&
&y_legen...
So I know that I can communicate between those two using JSON, but I also know that I would have to manually recreate all Django objects in JS.
Do you know of any tool or library that could help me do that? Or maybe even a better way of achieving the same goal?
I only found these two: http://palantar.blogspot.com/2006/06/agad-tutorial-...
I have this code:
$.getJSON("Featured/getEvents",
function(data){
$.each(data.events, function(i,event){
var title = event.title.substr(0,20);
$("#title-"+i).text("Text");
if ( i == 4 ) return false;
});
});
I am doing this in conjucti...
The Project
I've been asked to work on an interesting project -- what amounts to a basic Web CMS -- that uses HTML/CSS/jQuery with PHP. However, one requirement is that there won't be a database to house the data (they want flat files for the documents/pages -- preferable in JSON format).
In a very basic sense, it'll be used to genera...
Hi,
I am trying to provide a simple RESTful API to my ASP MVC project. I will not have control of the clients of this API, they will be passing an XML via a POST method that will contain the information needed to perform some actions on the server side and provide back an XML with the result of the action. I don't have problems sendin...