printing out variables
- From: Milagro
- Date: Mon, 11 Feb 2008 10:46:01 -0500
Hi,
I'm pretty new to Javascript but I do come from a programming background.
I have a script from a book (on Ajax) that doesn't work, which isn't
much of a surprise since half the scripts in this books source code
don't work (Ajax for Dummies).
Anyway, I'm printing out variables using an alert statement but when I
get to the statement below the message I get back is
"[objectHTMLCollection]". Can someone tell me how I can print out the
contents of that object?
-- Snip --
options = xmlDocument.getElementsByTagName("option");
alert(options);
---
Thanks!
M
.
Relevant Pages
- Re: printing out variables
... I'm pretty new to Javascript but I do come from a programming background. ... I have a script from a book (on Ajax) that doesn't work, which isn't much of a surprise since half the scripts in this books source code don't work. ... (comp.lang.javascript) - Re: Onload from within Ajax
... Ajax scripting. ... Google will provide plenty of links: "innerhtml javascript not executed" ... then extracting the script parts and eval'ing them. ... var el = document.getElementById; ... (comp.lang.javascript) - Re: Onload from within Ajax
... Ajax scripting. ... The suggestions recommend something like appending the innerHTML string, ... then extracting the script parts and eval'ing them. ... var el = document.getElementById; ... (comp.lang.javascript) - Re: YUI Libraries
... scenario where some bonehead decides he wants an "AJAX site" and simply ... Never thought I would see a 3200 line script to load dependent files though. ... What YUILoader appears to be for is loading dependent files and nothing more. ... I don't care to make a test case, but, if anybody is using it then you can possibly tell me how it deals with a case where it retrieves a document via AJAX that has script blocks in it. ... (comp.lang.javascript) - Re: IFRAME & AJAX ; point me out
... Well 'to AJAX or not to AJAX' that is the question I was asking my self. ... Do I realy need AJAX and when I saw a script developed with javascript and that the script created an ActiveX object, ... After being defribillated :-) I thought of remote scripting using an IFRAME, after all I read a lot about how to do this and I tried to give it a shot. ... (comp.lang.javascript) |
|