DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2007
    Posts
    5

    Using C++ to access the client side DOM of a web page

    I'm trying to make a C++ program that will be able to look at the client side DOM of a web page. That way if I have it look at a page that uses javascript to change the page that it will be able to see the changed version. Does anyone know of a way to do that?

    This may not really be an XML thing. I also posted this under C++ and Web, but most of the research I've done online led to sites that talked about using C++ to interpret XML, but my problem is really finding the client side DOM. So, it may not actually be XML, but I think it's related.

    Thanks in advance,

    Brett Bretterson

  2. #2
    Join Date
    Sep 2007
    Posts
    37
    Please describe your problem in detail. I can't understand what you want to do.

  3. #3
    Join Date
    Oct 2007
    Posts
    5
    I'm trying to make a plug-in for a web browser. If a client is using a web browser with this plug-in then anytime the browser displays a page that has some special tags that aren't part of normal HTML then it will load my C++ program which will interpret the special tags and display whatever the interpretation says to the browser. I have a partner on this project who is working on how to load the program into the browser and make the browser recognize that certain tags mean to use our program. I'm working on making it so our program can look at the DOM of the page it's loaded into so it knows exactly what the special tags were and it's able to figure out what to display, but we want to make it so the person who writes the web page will be able to use javascript to manipulate these special tags. So they could do something like
    Code:
    document.getElementById("specialTag1").innerHTML+="<specialTag id='specialTag2'>
    </specialTag>";
    and then our program would be able to look at the DOM and see
    Code:
    <specialTag id='specialTag1'>
    <specialTag id='specialTag2'></specialTag>
    </specialTag>
    even though only specialTag1 is actually in the HTML file.

    Again, thanks in advance,

    Brett Bretterson

  4. #4
    Join Date
    Sep 2007
    Posts
    37
    Ok
    IMHO better solution is using regular expressions to capture specified tags and attributes. If you need patterns to do it just replay in this thread.

  5. #5
    Join Date
    Oct 2007
    Posts
    5
    How would I do that? I'm kind of new to this aspect of programming.

Similar Threads

  1. Replies: 0
    Last Post: 10-10-2007, 04:29 PM
  2. Using Java 6SE to query a web service
    By (MC3)RaVeN in forum Java
    Replies: 0
    Last Post: 03-02-2007, 09:30 AM
  3. Web page control via .Net Win App
    By the_kiels in forum .NET
    Replies: 1
    Last Post: 06-30-2005, 07:17 AM
  4. Free ASP.NET Web Matrix Design/Editor Tool Released
    By ASPSmith Training in forum dotnet.announcements
    Replies: 0
    Last Post: 06-18-2002, 03:39 AM
  5. Access & SQL Server
    By David Jones in forum Database
    Replies: 0
    Last Post: 08-31-2001, 12:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links