PDA

View Full Version : Defining window options with hreftarget : _new



adbdkb
24 Apr 2010, 8:35 AM
When using TreeNode and defining an hrefTarget as _new, where / how can I define properties for the new window - like statusbar=no, etc, which are generally used with window.open

Thanks,

zamkinos
25 Apr 2010, 1:12 PM
why do not you use Ext.Window object?
i do not know your code but should have a line like this.


treePanel.on('click', function(n){
..
....there is a simple window sample below.
http://www.extjs.com/deploy/dev/examples/window/hello.html

...

adbdkb
25 Apr 2010, 3:17 PM
why do not you use Ext.Window object?
i do not know your code but should have a line like this.


treePanel.on('click', function(n){
..
....there is a simple window sample below.
http://www.extjs.com/deploy/dev/examples/window/hello.html

...

Thanks for the suggestion, but that is not an option for us at this time. We are using Ext 3.2 with managedIframe to open a link in that frame. We have this particular link where the application has used Ext 2.2.0 and that link generates an error on first click and the error below that when I refresh page and click on the TreePanel link again. This happens in IE8, but when I open the link in a new Window using hreftarget, I don't get these errors. Also, when I use FireFox, I donot get these errors, so can't debug it using FireBug either.

At this point, I do not have the option of re-writing the application with Ext 3.2.


1. First time error

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
Timestamp: Sun, 25 Apr 2010 23:04:26 UTC

Message: 'this.el.dom' is null or not an object
Line: 12526
Char: 9
Code: 0
URI: https://sso-url/webseal-junction/websphere-context-root/ext/ext-all-debug.js


2. Error after reload

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
Timestamp: Sun, 25 Apr 2010 23:07:32 UTC

Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0
URI: https://sso-url/webseal-junction/websphere-context-root/mapviewer.jsf (https://sso-dev.csx.com/ps_scms_jct/ps_scms/mapviewer.jsf)

I hope it has a solution for defining window properties when using hreftarget with _new.

Thanks

CrazyEnigma
26 Apr 2010, 9:56 PM
What is suggested is you can use the click listener, but instead, you don't have to specify a hreftarget.

Why don't you go old school javascript? Javascript still works...


window.open(<your options>);


Alternately, you could possibly use iframepanel. This will encapsulate the 2.2 EXT JS from your main window.