Target=_blank doesn't work

ninteen83
ninteen83 used Ask the Experts™
on
I've created a form for web, inserted a hospot button with the following command

@Command([Compose];"CHI" )

I went to properties of the button, then <HTML> tag, then Other, and wrote target=_blank

It composes the CHI form but within the same window.

any idea to open it in a new window ??
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Sjef BosmanGroupware Consultant

Commented:
It is not possible using only standard Notes. You need to write some HTML and JavaScript on the form to do this.

HTML:
- create a button with an HREF to the form and a TARGET=_blank
- set passthru-HTML property
- code in its simplest form:
    <INPUT TYPE=BUTTON ONCLICK='window.open("../yourform?openform")'>

Author

Commented:
I tried to compose CHI through html .. by writing <INPUT TYPE=BUTTON .... but it didn't satisfy my need. got some problem with that... therefore I'm using a hospot button to compose CHI form. and need to open it in a new window ..

I'm sure there can be a way ..
Sjef BosmanGroupware Consultant

Commented:
Nope. Tell us what you did with an <INPUT> tage, and why it didn't satisfy your need. What's the problem?
Announcing the Winners!

The results are in for the 15th Annual Expert Awards! Congratulations to the winners, and thank you to everyone who participated in the nominations. We are so grateful for the valuable contributions experts make on a daily basis. Click to read more about this year’s recipients!

Sjef BosmanGroupware Consultant

Commented:
To be more specific: an <INPUT> tag does not have a TARGET parameter. If you change it to any other hotspot that generates an <A> tag, then it will work, but you won't have a button :(
1983, It is right there...

In the hotspot property define the frame (on the first tab) as _blank. This will take care of creating the form in a new window.

~Hemanth
sjef, you can add &BaseTarget=_blank to the url method that you mentioned to define a new window
Use
  @SetTargetFrame( "_blank" );
  @Command( [Compose]; "CHI" )

Sjef BosmanGroupware Consultant

Commented:
RAPUTA: brilliant! R6 of course...
Zvonko זְאֵבSystems architect
Top Expert 2006

Commented:
@SetTargetFrame was already in R5.

My proposal is to put this into onClick event of the button for the Web handler:
window.open('CHI?OpenForm')

But the Web handler is available only in R6.
In R5 you have to change the Button language from Formula to JavaScript.
Then you can enter the upper formula in onClick event:
window.open('CHI?OpenForm')

Author

Commented:
RAPUTA : It works fine. thanks

Zvonko : It works too .. but I got some problems with html and javascript :s
Zvonko זְאֵבSystems architect
Top Expert 2006

Commented:
It's OK :-)
Thank you for the points, nintee83!! :-)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial