I am new to EXT JS and trying to put some very simple javascript into a desktop window module. pajamas - php and javascript advanced md5 authentication system :: There's also a "plain" plugin that retains many of the good features of pj, but without the client-side hashing, for situations where JavaScript isn't http://corz.org/serv/security/pajamas.phpHOME |
However I put '' in variable "html", nothing happened after I create & called the window. JavaScript Code Hinting Doesn't Work with Linked Files - Adobe :: Nov 26, 2008 I can't get JavaScript Code Hinting to work for linked files. Javascript code hinting isn't working like it should or is this feature http://dreamweaverforum.info/dreamweaver-general/121502-javascript-code-hinting-doesnt-work-linked-files.htmlHOME |
Is there something wrong with what I am trying to do?
// for example purposes
var windowIndex = 0;
MyDesktop.BogusModule = Ext.extend(Ext.app.Module, { GetAFreelancer.com - Easy Photoshop Javascript Rollovers won't :: Jun 10, 2008 I have no idea why the rollovers won't work- the page runs on Hi, I can explain what isn't OK with Javascript code on the "momzee.com". http://www.getafreelancer.com/projects/ASP-Javascript/Easy-Photoshop-Javascript-Rollovers-won.htmlHOME |
init : function(){
this.launcher = {
text: 'Window '+(++windowIndex),
iconCls:'bogus',
handler : this.createWindow,
scope: this,
windowId:windowIndex
}
},
createWindow : function(src){
var desktop = this.app.getDesktop();
var win = desktop.getWindow('bogus'+src.windowId);
if(!win){
win = desktop.createWindow({
id: 'bogus'+src.windowId,
title:src.text,
width:640,
height:480,
html : '',
iconCls: 'bogus',
shim:false,
animCollapse:false,
constrainHeader:true
});
}
win.show();
}
});
but this will work:
html : 'Show alert window
First, you should put after the widow module shows up, but the function will not gets executed .
This looks to be prone to XSS attacks. I advice you to review the architecture of the app. There's a 90% chance that you can find a better solution.
Thanks Starfall!
I found a function "afterRender" did just what I need.
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market
|