Hi

I think I know what the issue is now.  So I need a little clarification on
the url used to retrieve the images. If I use source: "dcbase/login48.png"
what will the application use as the URL to retrieve this image?

The actual file paths are:

C:\Business\dCipherComputing\Applications\QooxDoo\KardPoll
C:\Business\dCipherComputing\Applications\QooxDoo\dcbase

I currently have two virtual directories:

KardPoll - Points to
C:\Business\dCipherComputing\Applications\QooxDoo\KardPoll
dcBase - Points to C:\Business\dCipherComputing\Applications\QooxDoo\dcbase

I launch the application in the browser as
http://localhost/kardpoll/source/index.html and the images now display.

Thanks,
Simon


/*
@asset(dcbase/*)
*/

qx.Class.define("dcbase.frmLogin",
{
        extend : dcbase.frmModal,
        construct : function () {
                this.base(arguments,{
            set: {
                caption : "Login",
                icon    : "dcbase/login16.png",
                minWidth   : 400,
                minHeight  : 300
            }
        });
                this.setShowStatusbar(true);

                this.setLayout(new dcbase.layCanvas());
                this.add(new dcbase.imgStd({set: {source: 
"dcbase/login48.png"}}),{left:
0, top: 0});
                this.add(new dcbase.lblStd({set: {value: "User: "}}),{left: 
110, top:
80});
        
                this.txtUser = new dcbase.txtStdPwd({
            set: {
                value: "",
                width: 100,
                placeholder: "Enter user name",
                toolTipText: "Enter your user name."
            }
        });
                this.add(this.txtUser ,{left: 170, top: 75});
        
                this.add(new dcbase.lblStd({set: {value: "Password: 
"}}),{top:110, left:
110});
        
                this.txtPwd = new dcbase.txtStdPwd({
            set: {
                value: "",
                width: 100,
                placeholder: "Enter Password",
                toolTipText: "Enter your password."
            }
        });
                this.add(this.txtPwd,{left: 170, top: 105});
        
                this.cmdLogin = new dcbase.btnStd({
            set: {
                label: "Login",
                icon: "dcbase/login16.png",
                minWidth: 80,
                maxHeight: 25,
                toolTipText: "Click to login."
            }
        });
                this.cmdLogin.addListener("click",this.doLogin,this);
                this.add(this.cmdLogin,{left: 190,top: 140});
        
                this.cmdLogoff = new dcbase.btnStd({
            set: {
                label: "Logoff",
                icon: "dcbase/mnuexit.png",
                maxWidth: 75,
                maxHeight: 25,
                toolTipText: "Click to logout of the application."
            }
        });
                this.cmdLogoff.addListener("click",this.doLogoff,this);
                this.add(this.cmdLogoff,{left: 110,top: 140});
        
                this.cmdChngPwd = new dcbase.btnStd({
            set: {
                label: "Change Password",
                icon: "dcbase/ChngPwd16.png",
                minWidth: 160,
                maxHeight: 25,
                toolTipText: "Click to change your password."
            }
        });
                this.cmdChngPwd.addListener("click",this.doChngPwd,this);
                this.add(this.cmdChngPwd,{left: 110,top: 170});
        },
        destruct : function () {
        
this._disposeObjects("txtUser","txtPwd","cmdLogin","cmdChngPwd","cmdLogoff");
                this.txtUser = this.txtPwd = this.cmdLogin = this.__cmdChngPwd =
this.__cmdLogoff = null;
        },
        members: {
        __User: null,
                doLogin: function (e) {
            qx.core.Init.getApplication().setUser(null);
                        var loReq = new dcbase.reqXhr({set: {url:
"AjaxLogin."+qx.core.Init.getApplication().getScriptMap()}});
           
loReq.setRequestData("txtUser="+this.txtUser.getValue()+"&txtPwd="+this.txtPwd.getValue());
            loReq.setParser("json")
            loReq.addListener("success", function (e) {
                var loReq = e.getTarget();
                var loJSON = loReq.getResponse();

                if(loJSON.User == null){
                    this.setStatus("Login failed!");
                } else  {
                    qx.core.Init.getApplication().setUser(loJSON.User);
                    qx.core.Init.getApplication().tempVal = loJSON.MenuList
                    this.close();
                    qx.core.Init.getApplication().fireEvent("afterLogin")
                }
            },this);
            loReq.send();
                },
                doLogoff: function (e) {
            window.location.href="https://www.dtop.ca";;
                },
        doChngPwd: function (e) {
            
        }
        }
});




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Wrong-Image-URLs-tp7585120p7585136.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to