The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Difference between revisions of "Demo-AJAX-Tree"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | This script automates an AJAX tree view, using drag & drop. Note that this solution does '''not''' require fixed coordinates, rather it uses the position of certain HTML page element, as returned by the [[!TAGX]] and [[!TAGY]] variables. With this method, iMacros can '''locate (and move) tree elements anywhere on the page'''. The only requirement is that the tree | + | This script automates an AJAX tree view, using drag & drop. Note that this solution does '''not''' require fixed coordinates, rather it uses the position of certain HTML page element, as returned by the [[!TAGX]] and [[!TAGY]] variables. With this method, iMacros can '''locate (and move) tree elements anywhere on the page'''. The only requirement is that the tree elements they are visible in the web browser, so the [[DirectScreen]] command can grab and move them. |
<nowiki> | <nowiki> | ||
VERSION BUILD=6000808 | VERSION BUILD=6000808 |
Revision as of 00:32, 9 February 2008
This script automates an AJAX tree view, using drag & drop. Note that this solution does not require fixed coordinates, rather it uses the position of certain HTML page element, as returned by the !TAGX and !TAGY variables. With this method, iMacros can locate (and move) tree elements anywhere on the page. The only requirement is that the tree elements they are visible in the web browser, so the DirectScreen command can grab and move them.
VERSION BUILD=6000808 TAB T=1 TAB CLOSEALLOTHERS URL GOTO=http://www.dhtmlgoodies.com/scripts/drag-drop-folder-tree/drag-drop-folder-tree.html SIZE X=750 Y=600 'Replay at lower speed so one can "see" the clicks better SET !REPLAYSPEED MEDIUM TAG POS=1 TYPE=A ATTR=TXT:Germany DS CMD=LDOWN X={{!TAGX}} Y={{!TAGY}} WAIT SECONDS=1 DS CMD=MOVETO X={{!TAGX}} Y={{!TAGY}} WAIT SECONDS=1 TAG POS=1 TYPE=A ATTR=TXT:Europe DS CMD=MOVETO X={{!TAGX}} Y={{!TAGY}} DS CMD=LUP X={{!TAGX}} Y={{!TAGY}} ' WAIT SECONDS=1 TAG POS=1 TYPE=A ATTR=TXT:United<SP>Kingdom DS CMD=LDOWN X={{!TAGX}} Y={{!TAGY}} WAIT SECONDS=1 DS CMD=MOVETO X={{!TAGX}} Y={{!TAGY}} WAIT SECONDS=1 TAG POS=1 TYPE=A ATTR=TXT:Europe DS CMD=MOVETO X={{!TAGX}} Y={{!TAGY}} DS CMD=LUP X={{!TAGX}} Y={{!TAGY}} WAIT SECONDS=1 TAG POS=1 TYPE=A ATTR=TXT:America DS CMD=LDOWN X={{!TAGX}} Y={{!TAGY}} WAIT SECONDS=1 DS CMD=MOVETO X={{!TAGX}} Y={{!TAGY}} WAIT SECONDS=1 TAG POS=1 TYPE=A ATTR=TXT:*Root* DS CMD=MOVETO X={{!TAGX}} Y={{!TAGY}} DS CMD=LUP X={{!TAGX}} Y={{!TAGY}}