Need help with input field with all the ID are changing

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

Need help with input field with all the ID are changing

Postby CathyH » Thu Jan 28, 2021 10:16 am

Greetings.

I need help in creating a script for the an input type field where all the id's are changing dynamically and there is nothing unique in this field.

Can you give me any input on overcoming my problem?

Thanks
CathyH
 
Posts: 1
Joined: Wed Jan 27, 2021 10:39 am

Re: Need help with input field with all the ID are changing

Postby eValid » Fri Jan 29, 2021 10:47 am

CathyH wrote:Greetings.

I need help in creating a script for the an input type field where all the id's are changing dynamically and there is nothing unique in this field.

Can you give me any input on overcoming my problem?

Thanks


Thanks for posting CathyH.

Is it really true there is NOTHING unique about the element?

That would be very unusual.

Two possibilities come to mind:

(1) Arrange with the page developer to PUT a value into some page element that you CAN search for.

You can create a property name and assign it the value "xxyyzz" and that'll be unique.

(2) Find the element by counting down from something that IS unique.

That is, find the sourceIndex value for the pivot element and then use a command sequence like this:

IndexSet "value"
IndexMove "number"

where "value" is the sourceIndex for the element that you have found that IS unique, and "number" is the value to move forward based on experimenting with the PageMap to get you to the one you want.

Note that "number" can be negative if you want to move backwards.

For your reference is is the appropriate manual page:

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

Let us know how it goes!


-- eValid Support
eValid
 
Posts: 2102
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