Jun 05, 2009, 8:14 PM
Updating window title in js
Hi there,
I am trying to update the title to the current window using js during the KeyUp event of a ext:TextField. The changes seem to have taken effect when I slap up a js alert box displaying the new title after I set the new title. However visually, the window title doesn't appear to be updating.
I have a Master page handling the outer framework/branding and the content page doing the work. Would that be a problem??
Any ideas as to what I am doing wrong would be appreciated. Thanks.
I am trying to update the title to the current window using js during the KeyUp event of a ext:TextField. The changes seem to have taken effect when I slap up a js alert box displaying the new title after I set the new title. However visually, the window title doesn't appear to be updating.
I have a Master page handling the outer framework/branding and the content page doing the work. Would that be a problem??
Any ideas as to what I am doing wrong would be appreciated. Thanks.
function updateWinTitle()
{
var mywindow = Ext.getCmp("<%=ToolWindow1.ClientID %>");
var ctlSource = Ext.getCmp("<%=TextField5.ClientID %>");
mywindow.Title = "[" + ctlSource.getValue() + "]";
}