[Users] Permalink not working for my app

Robert Buckley robertdbuckley at yahoo.com
Wed Jan 12 14:26:41 CET 2011


Hi..


I am trying to get a simple permalink working when I press a button....It´s not 
really working for me though..could anyone have a look?


CODE:

var permalinkProvider;
   // set a permalink provider
    permalinkProvider = new GeoExt.state.PermalinkProvider({encodeType: false});


    var permalinkButton = new Ext.Button({
        text: 'Permalink',
        icon: '../images/disk.png',
        handler: function(){
            
            var l = permalinkProvider.getLink();
            var permalinkWindow = new Ext.Window({
                title: 'Permalink',
                modal: true,
                iconCls: 'disk',
                layout: 'fit',
                width: 750,
                height: 85,
                closeAction:'hide',
                plain: true,
                resizable: false,
                html: '<input type="text" size="250" 
style="font-family:tahoma,\'lucida grande\',arial,sans-serif;background-color: 
#FFFFFF;font-size:11px;border: none" onMouseOver="select();" value=" + l + ">" + 
l + "</a>">',
                buttonAlign: 'center',
                buttons: [{
                    text: 'Close',
                    handler: function(){
                        permalinkWindow.hide();
                    }
                }]
            });
            permalinkWindow.show();
        }
    });


Thanks,

Robert

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110112/4bd5706c/attachment.htm 


More information about the Users mailing list