simulate CLICKing DOM JavaScript from VB6


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: simulate CLICKing DOM JavaScript from VB6

  1. #1
    Join Date
    Jul 2004
    Location
    St. Louis, Mo
    Posts
    111

    simulate CLICKing DOM JavaScript from VB6

    I have spent an enormous amount of time searching the web for a solution. I have found an enormous amount of server side development, but a dirth of client side references.
    I am receiving no responses from postings to VB classic and Web on several different site Forums. I am willing to pay a nominal fee for help.

    I am logged on to a Web site via a VB6 WebBrowser, i.e. I am on the client side.
    I need to automate clicking a 'CommandButton' that is on the screen.
    Manually, I can click and can access the innerHTML and retreive the contents, so I am focused on the correct document.body.
    I am certain that there is a very simple solution, I just do not have the experience to mechanize one.

    The Java source that I am trying to click is:
    [CODE<td class="subMenuOff" id="portfolioWatchLists" onmouseover="parent.changeSubMenuBgColor(this);" onmouseout="parent.changeSubMenuBgColor(this);" onclick="linkTarget('/cgi-bin/apps/u/WatchListDisplay');"><a href="#">Watch Lists</a></td>[/CODE]

    The page that is in view can be refreshed as:
    https://wwws.izone.com/cgi-bin/apps/u/Main"
    This is where I need to return to.

    I tried:
    IzoneBrowser.Document.getElementById("portfolioWatchLists").Click
    which was just ignored by during run-time.

    I have tried a lot of methods and none have worked, cloning, creating classes... (I do not have enough experience to make these more complicated ones work.) The very first thing that I tried was a simple web Post:
    https://wwws.izone.com/cgi-bin/apps/u/WatchListsDisplay
    which brings up the correct page overlayed on the 'Home' page, but
    only after an "Internet Explorer" Script error and then an "Internet Explorer" stack error. Each of these clear with Window's Enter's. Obviously, there is some minor thing wrong with my Posting and the fact that I do not have a return to the 'Home'. The image of the 'Home' page is visible but does not respond, apparently because the page has lost focus to the 'Home' JavaScript.

    I found this in a different context, i.e. where a click loaded a page that overwrote the 'Home' page and needed a way to return. I do not think this is applicable. "/cgi-bin/apps/u/HomeContent?returnto=/u/Home"

    I am at wits end, and need some help.
    Please with either, Money ( fee ) or Honey ( thanks ) on it.

    "Good Software like good food takes time to prepare."
    Winnie-the-Pough
    Last edited by dmb-job; 03-15-2007 at 07:43 PM. Reason: Added detail in Blue

Similar Threads

  1. Clicking JavaScript from VB6 WebBrowser
    By dmb-job in forum Web
    Replies: 2
    Last Post: 03-08-2007, 05:27 PM
  2. Clicking JavaScript from VB6 WebBrowser
    By dmb-job in forum VB Classic
    Replies: 1
    Last Post: 03-01-2007, 02:22 AM
  3. VB6 DOM Reading XML File
    By ianm in forum XML
    Replies: 0
    Last Post: 11-10-2005, 08:46 AM
  4. BOM, DOM, Javascript Object Hierarchy
    By S. Marvin in forum Web
    Replies: 1
    Last Post: 12-02-2000, 12:29 PM
  5. Sample Sites.
    By Murray Foxcroft in forum Web
    Replies: 5
    Last Post: 11-02-2000, 03:42 AM

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center