vbscript client side web scripting

Hello,

I’m a macro/application developer.  We use Macro Express Pro to build macros/applications people can use to make their job more efficient with better quality.

Macro Express Pro allows us to utilize HTA, Jscript, and VBScript to enhance these macros/applications.  However, the makers of Macro Express Pro, after reaching out to them for more examples on how to use these enhancements, don’t have a lot of experience with any of the three, and the majority of my team are only familiar with VB/VBS/VBA.  This forces us to reach out to all resources, including the internet, to find the answers to the questions some of our challenging, innovative projects.

I have been looking how to access an input field that is located within a form built inside a table that is part of a web site that uses frames.  We have figured out how to locate the input field if there are no frames, but we are running into DOM issues when frames are present.  Below is the line of code, and the explanation of the buildup, for sites without frames:

objIE.Document.GetElementsByTagName("table")(10).GetElementsByTagName("td")(23).ChildNodes(0).Value

·         objIE has been set up as an object as such: Set objIE = CreateObject("InternetExplorer.Application")
·         We are using the Document property of the objIE object.
·         GetElementsByTagName("table")(10) is the 11th table nested within the document.
·         GetElementsByTagName("td")(23) is the 24th cell where the input field is located.
·         We are using ChildNodes(0) to locate the first node within the table cell, then we get the value of the input field.

I’ve tried window.parent.frames("border"), objIE.parent.frames(0), and a combination of other things I found on the internet to no avail.  The reason I’m reaching out to you is I am seeing so many of the sites I’m looking at and the information is all outdated.  I know not a lot changes within scripting/programming languages, but I do know the internet is ever evolving.  I decided to broaden my research from exact DOM phrase to looking up client side web scripting in vbscript.  I ended up at http://www.w3.org/TR/WD-script-970314 <http://www.w3.org/TR/WD-script-970314> and realized the information hasn’t been updated since 1997.  Do you have any current information regarding client side scripting using frames within the DOM?

Thanks,
Lloyd Pederson
Claims Business Process Analyst – Macro Developer
OPTUMSM Automation and Analysis
Work: (612) 632-5433
lloyd.pederson@optum.com <mailto:lloyd.pederson@optum.com>



This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.

Received on Wednesday, 21 October 2015 12:11:21 UTC