<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:8pt">Hi..<br><br><br>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?<br><br><br>CODE:<br><br>var permalinkProvider;<br> // set a permalink provider<br> permalinkProvider = new GeoExt.state.PermalinkProvider({encodeType: false});<br><br><br> var permalinkButton = new Ext.Button({<br> text: 'Permalink',<br> icon: '../images/disk.png',<br> handler: function(){<br> <br> var l = permalinkProvider.getLink();<br>
var permalinkWindow = new Ext.Window({<br> title: 'Permalink',<br> modal: true,<br> iconCls: 'disk',<br> layout: 'fit',<br> width: 750,<br> height: 85,<br> closeAction:'hide',<br> plain: true,<br> resizable: false,<br>
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>">',<br> buttonAlign: 'center',<br> buttons: [{<br> text: 'Close',<br> handler: function(){<br> permalinkWindow.hide();<br> }<br>
}]<br> });<br> permalinkWindow.show();<br> }<br> });<br><br><br>Thanks,<br><br>Robert<br><div><br></div>
</div><br></body></html>