Help with focusing on a part of a page

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

Help with focusing on a part of a page

Postby ShawnD » Mon Jun 08, 2020 9:31 am

Good morning.

Is there some way I can use eValid to set the focus in a part of a page?

I mean, how do you do a mouse-down at some place?

Thanks
ShawnD
 
Posts: 1
Joined: Mon Jun 08, 2020 9:29 am

Re: Help with focusing on a part of a page

Postby eValid » Tue Jun 09, 2020 8:00 am

ShawnD wrote:Good morning.

Is there some way I can use eValid to set the focus in a part of a page?

I mean, how do you do a mouse-down at some place?

Thanks



Thanks for asking ShawnD.

There are several mouse down commands available:

(A) The command: IndexElementMouseDown wid [x y] "frame_path" [NAV] requires that you know the window id and an x and y position (offset) for where you want the "mouse down" event to land.

(B) The command: ElementMouseDown wid idx [x y] "id" "visible text" "frame_path" [NAV] is more subtle in that it will trigger the mouse down in a particular window at a particular DOM index which has a specified element "id".

Fair warning: these can be tricky to set up to work reliably, and, to be honest, we prefer (B) because it is less dependent on things like screen size and current window size, etc.


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