View Full Version : autoLoad vs Ext.Ajax.request... loadScripts not working w/Ajax.request

6 Aug 2009, 2:14 PM
So, I have a window and so far, the content has come back through autoLoad... Worked fine, but now they want the window to animate on show. Animation is no problem, but the window content isn't there when the animation happens and it looks junky when the content is rendered.

So, here's what I'm trying to do:

1) click to open window -> kicks of Ext.Ajax.request for the data
2) page data comes back -> show() is called
3) page animates and shows content.

Anyway, seems like there's a better way to do this, but I'm not totally sure.

Everything is working except the javascript isn't processed. I don't see a loadScripts config option for Ext.Ajax.request... Is it there? Is there a way to do this so the javscript is processed?

Here's my code in case you're wondering:

this.formWindow = new Ext.Window({
title: title,
width: width,
border: true,
bodyBorder: true,
height: 500,
shadow: true,
modal: true,
animateTarget: obj,
edit: edit,
closable: false,
cls: 'editor-window',
resizable: false
autoLoad: {
url: url,
loadScripts: true,
scripts: true,
callback: function (win,success,response,stuff) {
scope: this
*/ });

url: url,
loadScripts: true,
scripts: true,
success: function(response,request) {
this.formWindow.html = response.responseText;
failure: function() {

scope: this

6 Aug 2009, 3:28 PM
Check out the Ext.ux.Plugin.RemoteComponent extention at http://extjs.com/forum/showthread.php?t=18023