View Full Version : How to invoke javascript with setUrl()
How to invoke javascript with setUrl() of ContentPanel please give me related example code if possible
thanks in advanced
JBeckton
9 Mar 2007, 7:04 PM
I too am looking for help with this. I am just trying to alter the complex layout example and change the content of the center panel by loading an external file from a onClick event.
I am not able to find anything in the documentation as far as examples.
jack.slocum
10 Mar 2007, 1:06 AM
setUrl() is a convenience function for setting a url to load when a tab/panel is activated. If you just want to load a url into the panel, use the panels UpdateManager via load.
panel.el.load({
url: 'foo.php'
});
There are lots of other properties that can go in the load call. Take a look at Element and UpdateManager.
JBeckton
10 Mar 2007, 6:00 AM
Thanks!
So you perform the ajax calls to the element and not the ContentPanel...
jack.slocum
10 Mar 2007, 6:29 AM
Right. In Ext, the UpdateManager handles updates for Element. It has what you need. Some shortcut functions have been set up in various places, but internally then all route back to an UpdateManager.
redy
11 Mar 2007, 11:21 PM
I too am looking for help with this. I am just trying to alter the complex layout example and change the content of the center panel by loading an external file from a onClick event.
I am not able to find anything in the documentation as far as examples.
Is your query solved to invoke java script if so can you please give me Some Example.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.