H
horos
hey all,
I'm a heavy perl user, not so much a java script user, and was
wondering...
perl has an extremely nice utility called Data:umper, which allows
you to dump out the contents of an arbitrary data structure. I'd like
to do the same with javascript.
print Data:umper(document)
print Data:umper(document.form)
etc. etc. etc.
Is there a utility that lets you do this?
Also, is there any particular reason why a function wouldn't be able to
see a certain variable? I'm calling javascript with the form:
<script type="text/javascript" >
function download_submit()
{
alert(document.form.filecheckbox.value);
}
</script>
<form name="form">
<a href="javascript:download_submit()">
<img src="...." ...>
</a>
<input name="filecheckbox" value="myval" type="checkbox"
onchange="this.form.foldercheckbox.value=this.value"</form>
For some reason, when I check the checkbox, I don't see the results in
the javascript. I'd like to dump out the document to see exactly *what*
the javascript function is seeing...
Thanks much for any help...
Ed
I'm a heavy perl user, not so much a java script user, and was
wondering...
perl has an extremely nice utility called Data:umper, which allows
you to dump out the contents of an arbitrary data structure. I'd like
to do the same with javascript.
print Data:umper(document)
print Data:umper(document.form)
etc. etc. etc.
Is there a utility that lets you do this?
Also, is there any particular reason why a function wouldn't be able to
see a certain variable? I'm calling javascript with the form:
<script type="text/javascript" >
function download_submit()
{
alert(document.form.filecheckbox.value);
}
</script>
<form name="form">
<a href="javascript:download_submit()">
<img src="...." ...>
</a>
<input name="filecheckbox" value="myval" type="checkbox"
onchange="this.form.foldercheckbox.value=this.value"</form>
For some reason, when I check the checkbox, I don't see the results in
the javascript. I'd like to dump out the document to see exactly *what*
the javascript function is seeing...
Thanks much for any help...
Ed