How to extract text from a DOM element

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

How to extract text from a DOM element

Postby BobBrown » Mon Mar 21, 2022 9:10 am

Hello.

Can you explain how eValid can retrieve text from a DOM element?

Also, any reference material you can provide me would be helpful.

Thanks
BobBrown
 
Posts: 1
Joined: Mon Mar 21, 2022 9:07 am

Re: How to extract text from a DOM element

Postby eValid » Tue Mar 22, 2022 8:22 am

BobBrown wrote:Hello.

Can you explain how eValid can retrieve text from a DOM element?

Also, any reference material you can provide me would be helpful.

Thanks


Thanks for asking about that BobBrown.

Let's assume you have the number of the DOM element already.

So, to extract the visible text from that particular element (assuming it has any visible text; many DOM elements don't and it's not a requirement), you have these eValid commands:

ValueGetElement wid name "framepath"

ValuePutElement wid name "framepath"

In these commands "wid" is the number of the DOM element, which eValid stores internally as indexValue and which you can set with an eValid command, and where "name" is the property name into which
and from which the internal variable ElementValue string will be set or read.

Here is a page that describes some related commands:

http://e-valid.com/Products/Documentati ... utput.html


-- eValid support
eValid
 
Posts: 2392
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