Stephen on Software aka SOS

August 7, 2009

Refreshing browser window when there is a resize event

Filed under: extjs — Tags: — sljm @ 5:19 pm

When I am using an ExtJS ViewPort, when I resize my window manually by dragging the window handles everything goes out of size so I needed a way to detect the window resize then refreshed the window.

First we need to create a function to refresh the window. That can be done using window.location.reload function. In ExtJS you can look at the Ext.EventManager.onWindowResize to add a listener to the onWindowResize event. Code is below.


function resize(){
window.location.reload
}

Ext.EventManager.onWindowResize(resize);

January 15, 2009

Doing a normal form post with Ext Js and FormPanel

Filed under: extjs — Tags: — sljm @ 3:45 pm

Been having lots of problems today. Most of it gotta do with trying to post data using a normal form post in Ext Js and the FormPanel object. The example givien in the documentation is not correct.

Found these 2 posts which explains how to do a normal form post. The next problem I am going to solve is how to get it to interact properly with Spring’s MVC SimpleFormController.

http://extjs.com/forum/showthread.php?t=14204

http://www.yui-ext.com/forum/showthread.php?t=23205

Blog at WordPress.com.