To manipulate some values in my script

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

To manipulate some values in my script

Postby hNoel » Fri Apr 05, 2013 1:22 pm

Hey eValid!

I have to manipulate some values in my script...I have to take one thing from "here" and put it in the page "there"...Any ideas?
hNoel
 
Posts: 4
Joined: Wed Jan 11, 2012 4:27 pm

Re: To manipulate some values in my script

Postby eValid » Fri Apr 05, 2013 1:47 pm

There are two main routes to doing this, each with their pros and cons.

Here are the suggestions:

(A) Create a local file that contains the string, which file is created locally with this command:

SaveRecord FILE ...

as described here:

http://www.e-Valid.com/Products/Documentation.9/Playback/saverecord.html

Then you read the saved value back into the script at a later time using the command:

!Filename FILE

as described here:

http://www.e-Valid.com/Products/Documentation.9/Generate/value.extract.html


(B) The other way is to use the DOM value manipulation commands described here:

http://www.e-Valid.com/Products/Documentation.9/DOM/value.manipulation.html

to (a) pick up the value of a DOM string (you have to know the sourceIndex of the element and the name of the property/attribute) with a

ValueGetElement wid name "frame"

command and then store it away in a target element and property/attribute name using a

ValuePutElement wid name "frame"

command.

You use IndexFindElement[Ex} to first find the extraction location and then again to find the insertion location.

________________________
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