Reverse-engineer a Javascript object?

Posted by TruMan1 on Stack Overflow See other posts from Stack Overflow or by TruMan1
Published on 2010-05-24T14:56:15Z Indexed on 2010/05/24 15:01 UTC
Read the original article Hit count: 467

I have a Javascript object that I want to pass in more parameters, but the documentation is non-existant. My only option seems to be to reverse engineer the Javascript object to see what parameters and values I can pass in.

For example, I want to see if there is a "zoom" parameter for the object and what values I can pass into the "mapType" parameter:

<script type="text/javascript" src="http://maps.google.com/maps?oe=utf-8&amp;file=api&amp;v=2&amp;key=your-gmap-key"></script>
<script type="text/javascript" src="https://share.findmespot.com/spot-widget/js/SpotMain.js"></script>
<script type="text/javascript">
 var widget = new Spot.Ui.LiveWidget({ renderTo: "spot-live-widget",
   feeds: [ "0Wl3diTJcqqvncI6NNsoqJV5ygrFtQfBB" ],
   height: 400,
   width: 500,
   mapType: "physical"
 });
</script>
<div id="spot-live-widget"/>

Any ideas on how to do that?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about debugging