Can eValid detect if an element exists on a webpage

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

Can eValid detect if an element exists on a webpage

Postby FCarson » Thu Sep 22, 2022 8:35 am

Greetings.

I need to detect whether an element of the current webpage exists, so I hope that eValid does this function?

Thanks
FCarson
 
Posts: 1
Joined: Thu Sep 22, 2022 8:28 am

Re: Can eValid detect if an element exists on a webpage

Postby eValid » Fri Sep 23, 2022 10:12 am

FCarson wrote:Greetings.

I need to detect whether an element of the current webpage exists, so I hope that eValid does this function?

Thanks


Thanks for asking FCarson.

The best way to find if a DOM element exists is to search for it and note whether or not it is found?

Here is the basic DOM search command explained:

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

What happens is that the value of source Index is set to the first instance that the command finds of the "property name" = "property value" in the current page's DOM.

If it doesn't find this, then the internal value of source Index is unchanged from its last value.

You can set the value to Zero with: IndexSet 0 and you can save the value locally on your machine with the command: ValueRead "filename"

You script than compare the value to see if it's changed -- and it will have in case the original search was successful.


-- 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