Linked Questions

327 votes
9 answers
552k views

I would like to see the structure of object in JavaScript (for debugging). Is there anything similar to var_dump in PHP?
Adriana's user avatar
  • 8,644
0 votes
0 answers
69 views

I'm wondering if there is a function or method in JavaScript such as var_dump() in PHP that prints or returns detailed information about the content of a variable, i.e. value(s) and data type. ...
gretarsson's user avatar
16 votes
3 answers
28k views

Does jQuery have a JSON/Javascript object to HTML pretty print function similar to PHP's var_dump? If yes, what is it?
Fletcher Moore's user avatar
9 votes
5 answers
8k views

I was wondering if there was a quick way to get all of an object's variable's values, similar to php's var_dump() method. So if I had an object var myObject = { Up: 38, Dn: 40, Lf: 37, ...
Hans Z's user avatar
  • 4,754
3 votes
2 answers
14k views

I have this simple code to query against the web service:- $.get( url , function(xml) { var hello = $(xml).find("hello").text(); ... alert(xml); // displays [object ...
limc's user avatar
  • 40.3k
0 votes
4 answers
5k views

simple thing. $.getJSON is used and the result from the .php file being called is caught as response in the jquery callback function. The json encoded php array is an associative array. $.getJSON("...
Istiaque Ahmed's user avatar
2 votes
3 answers
580 views

My first attempt at it, and the testing function does not seem to work: $.getJSON('questions.json', function(data) {alert(data);}) I am trying to alert all the contents of the JSON file which is ...
ilyo's user avatar
  • 36.5k
2 votes
1 answer
3k views

Ok, so I have this function designed to return a desired computed style from a specified element. It works in all desktop browsers that I have tested, however, it does not work in mobile safari. If I ...
rcooper102's user avatar
1 vote
1 answer
2k views

I'm trying to inspect the $ionicTabsDelegate variable on my hybrid app using this "dump" solution which can be found here. function dump(obj) { var out = ''; for (var i in obj) { out +...
Mauker's user avatar
  • 11.5k
1 vote
3 answers
163 views

I have an [object Object] being passed as an argument through a jQuery function and I want to learn more about it. I don't want to know anything about this specific situation (unless there is no ...
Andrew Jackman's user avatar
1 vote
2 answers
1k views

For counting the number of clicks in java script i see some sample code using localStorage.clickcount, this code works very well, but how can we learn about what are all the properties present in ...
shalinir's user avatar
1 vote
1 answer
72 views

I'm trying to create a two dimensional Array - but in the JS console it keeps saying my "Randarray" function isn't defined. I can't seem to figure out why it's undefined, maybe I just need another ...
Danny Garcia's user avatar
0 votes
0 answers
63 views

I'm developing a mobile application and am having trouble debugging my server-side code. I make cross-domain AJAX requests from the app. Normally, I would use var_dump() to display the contents of ...
Frumples's user avatar
  • 433