[jQuery] How to compare an object with different instances using jquery

2009-04-25 Thread KG
var foo = new Object(); var v1 = new foo(); var v2 = new foo(); //attaching click to v1 v1.click($(this.anchor1)); //attaching click to v2 v2.click($(this.anchor1)); v1 is not equal to v2 I would like to differentiate the object instances when a click event handler is triggered ... I know

[jQuery] JSON Serializer

2008-05-08 Thread KG
I'm having an issue using an asmx web service to return json to a jQuery ajax call. If I run the web service stand alone i get a nice json response as follows: {"City":"nyc","Country":"usa","PostalCode":null,"State":null,"Street":null} I'm using the DataContractJsonSerializer in .NET to create