Can You Explain How the IndexFindElementEX Command Works?

Applying eValid to AJAX applications that require advanced DOM-based methods.

Can You Explain How the IndexFindElementEX Command Works?

Postby nmjj » Wed Nov 10, 2010 4:20 pm

Can you explain how the IndexFindElementEX command works?
nmjj
 
Posts: 2
Joined: Wed Nov 10, 2010 11:49 am

Re: Can You Explain How the IndexFindElementEX Command Works?

Postby eValid » Fri Nov 12, 2010 6:12 am

nmjj wrote:Can you explain how the IndexFindElementEX command works?

The IndexFindElementEX command is the "big brother" of the IndexFindElement command, and they both work in pretty much the same way.

The search starts at the 0th (the first) page DOM element if you choose DOWN, or at the last DOM element, if you choose to search UP the page.

At each DOM element eValid checks to see if there is a property with the name you specified in the command. And, if you also specified a value string to be searched for, it will check to see if, on that DOM element, the specified property name has the specified property value. If it does, the scan stops and all of the "external access" variables are set to contain the results.

In the simpler version of the command, the search is for an exact-match for a spcified string. In the "EX" version of the command, the user-supplied string is treated as a Regular Expression (RegEX) and that is what is used for the seach on the value of the specified property.

We recommend you only use the "EX" version if you really have to because the search times can be long, particularly if the page has 1,000's of elements.

The normal version -- the non-EX command -- which uses simple string compares, is lightning fast! A very large page can be search (in memory) in milliseconds.

The eValid Team
eValid
 
Posts: 2395
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to AJAX Applications & DOM Processing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons