[Users] Permalink not working for my app
Matt Priour
mpriour at kestrelcomputer.com
Wed Jan 12 17:23:35 CET 2011
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: users at geoext.org
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
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110112/1a62b824/attachment-0001.htm
More information about the Users
mailing list