How to manipulate the DOM to control the size of a window?

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

How to manipulate the DOM to control the size of a window?

Postby jessiek » Wed Jan 11, 2012 4:34 pm

Can you show me how to manipulate the DOM to control the size of a popup window?
jessiek
 
Posts: 1
Joined: Wed Jan 11, 2012 4:25 pm

Re: How to manipulate the DOM to control the size of a windo

Postby eValid » Thu Jan 12, 2012 2:20 pm

jessiek wrote:Can you show me how to manipulate the DOM to control the size of a popup window?
The size of a popup window that is launched with JavaScript is specified with x= and y= specifications in the JavaScript passage.

To modify such internal JavaScript you would need to (1) find the element where the JavaScript sits, (2) use structural commands to insert a NEW JavaScript passage on top of the existing on (with the new sizes in it), and then (3) fire the event on that element after refreshing the page (so that the newly inserted JavaScript is fully installed.

But this really is the hard way.

eValid has a command Resize that resizes a specified window. There is also a Reposition command, to move a window around the desktop.

That's a lot easier than doing the manipulation described above.

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