Welcome to our forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Forum Statistics

  • Forum Members:
  • Total Threads:
  • Total Posts: 2
There are 1 users currently browsing forums.
JavaScript Coding JavaScript allows rich, browser-based web-applications with interactivity and complex visual effects. For discussion on JavaScript, use this forum.

Reply
  #1  
Old 04-04-2009
C^2 C^2 is offline
Child
 
Join Date: Mar 2008
Posts: 70
Rep Power: 2
C^2 is on a distinguished road
javascript and DOM

Hey

I'm having a bit of trouble with a firefox extension I'm trying to write.
I want to get all the data from the web page that the user is viewing.

I don't understand what I am doing wrong:

Code:
//this is to get the data from the tab selected
var links = gBrowser.selectedBrowser.contentDocument.getElementsByTagName("body");
//displays this data
alert(links);
Reply With Quote
  #2  
Old 04-04-2009
C^2 C^2 is offline
Child
 
Join Date: Mar 2008
Posts: 70
Rep Power: 2
C^2 is on a distinguished road
Re: javascript and DOM

[object XPCNativeWrapper [object HTMLCollection]]

btw this is what i get instead of my data...i need to access this somehow to get my data
Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A JavaScript and Cascading Style Sheet expandable vertical menu bfsog Javascript Articles 10 12-30-2009 11:15 PM
Javascript tutorial? hot_cakes JavaScript Coding 4 04-09-2008 08:25 AM
I'm a javascript moron pls help.. Paz JavaScript Coding 6 03-09-2006 06:26 PM
I'm pretty sure you do this with javascript. ralxz JavaScript Coding 5 06-19-2005 03:07 AM