View Full Version : Submit a Form within a panel

20 Apr 2011, 11:26 PM
www.imgnets.com/viewer.php?id=88228639.jpg (http://www.imgnets.com/viewer.php?id=88228639.jpg)

Hello, I am new in extjs and I am now creating a search form within panel 2 (as shown in the picture). When a user click the search button in panel 2 after entering searching criteria, the search result and search parameters should be shown in panel 2. However, I have no idea on how to show the result page within panel 2 . Can anyone advise some suggestions to me. Thank you very much.

21 Apr 2011, 5:45 AM
you need to send the search parameters to the server, make the search, grab the results, send them back to extjs and list them. You can do this with Ajax request (http://dev.sencha.com/deploy/dev/docs/?class=Ext.Ajax).

or, you can do this using .load (http://dev.sencha.com/deploy/dev/docs/?class=Ext.Panel) on panel2 and as params you specify the search params.

21 Apr 2011, 9:02 AM
It would probably also be helpful to create a parent panel with a layout of 'border'. Add 'panel 2' as the 'north' region and a new 'results' panel as the 'center' region.

You can then load/reload the center region panel without overwriting the search criteria in 'panel 2'.