Your html is malformed:
you are missing single quotes, you have an </a> element without a matching <a> 
element and input is a self closing element. The corrected version follows. I 
just removed the </a> element, but you could also add the matching <a> in the 
correct place:

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 + '" />',

Matt Priour
Kestrel Computer Consulting





From: Robert Buckley 
Sent: Wednesday, January 12, 2011 7:26 AM
To: [email protected] 
Subject: [Users] Permalink not working for my app


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







--------------------------------------------------------------------------------


_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to