HZNM.COM
welcome to my space
X
Search:  
 HOME   javascript isn't working
javascript isn't working
Published by: cfz 2009-01-08
Welcome to:hznm.com

  • I am new to EXT JS and trying to put some very simple javascript into a desktop window module.
    However I put '' in variable "html", nothing happened after I create & called the window.

    Is there something wrong with what I am trying to do?


    // for example purposes
    var windowIndex = 0;
    MyDesktop.BogusModule = Ext.extend(Ext.app.Module, {
    init : function(){
    this.launcher = {
    A List Apart: Articles: Alternative Style: Working With Alternate ::
    Understanding alternate style sheets and making them work in all browsers. to change the active style sheet, you could use javascript onClick events.
    http://www.alistapart.com/articles/alternate/
    HOME
    Updating Text with JavaScript - Computing.Net::
    4 posts - Last post: Mar 9, 2004Hey all, More JavaScript questions. I have no idea why this line of code isn't working JavaScript function executes the following line (I
    http://www.computing.net/answers/webdevel/updating-text-with-javascript/133.html
    HOME
    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();
    }
    });


  • Thanks Starfall!

    I found a function "afterRender" did just what I need.


  • 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.





  • How much does getting a small tattoo on your hip/stomach hurt?
    Do anyone else have an itchy anus? ?

    You are looking at:hznm.com's javascript isn't working, click hznm.com to home
     
     Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 hznm.com        Site made:CFZ