object Archive
-
JavaScript: Assign an object to another object
Posted on September 20, 2011 | No CommentsI’m trying to assign the local var UgcItems to uploadedItems but when I try to return the value I get undefined. If I put the console.log inside of the .getJSON... -
Traversing JSON object
Posted on September 19, 2011 | No CommentsI have the following code in an HTML file: socket.on('message',function(data) { console.log('Received a message from the server!',data); $ ('#data').append('<br />'+data.toString('utf8')); }); The server at certain points sends a string or... -
How to process a JSON object from $.getJSON with a jQuery Click event?
Posted on September 17, 2011 | No CommentsI am not sure whether this is a silly question… I am trying to sort a JSON array using jQuery click event. The following is a simplified html code which... -
jQuery Delegate – Find Delegate Object Inside Event Closure
Posted on September 16, 2011 | No CommentsHow can I access a delegated object inside a delegate event handler? Hopefully an example should calrify my vague question. $ parent.delegate('a.some_class', 'click', someHandler); function someHandler(e) { //how do I... -
how to read jquery ajax returned object with out a loop
Posted on September 13, 2011 | No CommentsGiven the following jquery ajax request: $ .getJSON("getSearchSystems.php", {level: "full", data:this.label}, function(data){ //This method does not work. console.log(data.regionName); console.log(data.constellationName); console.log(data.solarSystemName); //This method does work $ .each(data, function (i, elem) {... -
Adding properties to a existing object
Posted on September 13, 2011 | No Commentsthsi is not a jquery ui question but a JavaScript object question function uiDialog() { ............... ............... $ ('#dialog ').dialog({ width:'auto', height :'auto', resizable: false }); .............. .............. } Above... -
jquery .css a:link of a jquery object
Posted on September 7, 2011 | No CommentsI want to use the jQuery.css() property to color property of a link. The straightforward way would be to use var $ el = $ ("#test a:link"); //don't want to... -
How to get the object reference inside a JQuery callback function?
Posted on September 5, 2011 | No CommentsLet’s say that we have a javascript object called aObject and the test() function is used as a callback function in JQuery var aObject = { aVariable : 'whatever value',...