• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1869
  • Last Modified:

Target=_blank doesn't work

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 ??
0
ninteen83
Asked:
ninteen83
  • 4
  • 2
  • 2
  • +2
1 Solution
 
Sjef BosmanGroupware ConsultantCommented:
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")'>
0
 
ninteen83Author 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 ..
0
 
Sjef BosmanGroupware ConsultantCommented:
Nope. Tell us what you did with an <INPUT> tage, and why it didn't satisfy your need. What's the problem?
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
Sjef BosmanGroupware ConsultantCommented:
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 :(
0
 
HemanthaKumarCommented:
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
0
 
HemanthaKumarCommented:
sjef, you can add &BaseTarget=_blank to the url method that you mentioned to define a new window
0
 
Andrea ErcolinoCommented:
Use
  @SetTargetFrame( "_blank" );
  @Command( [Compose]; "CHI" )

0
 
Sjef BosmanGroupware ConsultantCommented:
RAPUTA: brilliant! R6 of course...
0
 
ZvonkoSystems architectCommented:
@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')

0
 
ninteen83Author Commented:
RAPUTA : It works fine. thanks

Zvonko : It works too .. but I got some problems with html and javascript :s
0
 
ZvonkoSystems architectCommented:
It's OK :-)
0
 
Andrea ErcolinoCommented:
Thank you for the points, nintee83!! :-)

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 4
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now