Discussion Forum

Post Reply in Data Extractor

Post Reply To "JavaScript Help extracting DOM data help requested"
I have improved the JS a bit...

I've commented out the 'with(document) {' line in my 'improved' version, as I haven't been able to get it to work reliably...

Here's my improved version (still doesn't work, but using the console, this gets me closer to the real information I'm looking for.


DataExtractor.AddHeader(1, 'URL');
DataExtractor.AddHeader(2, 'AgentName');
DataExtractor.AddHeader(3, 'ContactInfo');

var contactInfo = document.getElementById('panel-container');
var agentName = document.getElementById('agent-info');
var agentAddress = agentName.nextElementSibling;

//with(document) {
if (contactInfo) {
for (var i=0; i contactInfo.length; i++) {
DataExtractor.AddResult(1, URL);
DataExtractor.AddResult(2, agentName);
DataExtractor.AddResult(3, agentAddress);


First Name

Last Name

Email Address for reply notifications (optional) - your email will not be visible

Re-enter the text shown in the image
Enter the text shown here below  

Your Message


Our Software Stores

IconicoAccurate Design and Development Software

BitsDuJourDiscount Deal Coupons for Windows and Mac Software Apps

Our Software Services

SoftwareMarketingResourceYou Wrote the Code, Now How do you Sell it?

IcoBlogOur Official Blog

© copyright 2004-2020 Iconico, Inc. Code & Design. All Rights Reserved. Terms & Conditions Privacy Policy Terms of Use