@urlopen and new window

From the Notes client I have a button on a form that I’d like to have launch IE and open a number of sites each in their own browser. I’ve seen multiple threads in the forum on the topic and have tried most of them without success. (Adding '.“NEW” to @URLOpen, adding target=_blank to the HTML attribute of the button, @settargetframe…)

Here’s a simplified version of the code I’m using. It works in that the two URLs are launched but they are in the same window so only the last URL is displayed. I must be missing something fundamental. Thanks in advance for your comments.

temp:=“http://www.ibm.com”:“http://www.cnn.com”;

@For(n := 1;

n <= @Elements(temp);

n := n + 1;

@SetTargetFrame(“_blank”);@URLOpen(temp[n])

)

Subject: @urlopen and new window

In my experience, you can give each window a new name and it should open in new windows. Because you are using “_blank” for both windows, it will open both in the same window.

Try something like:

@SetTargetFrame(“_blank” +@text(n));

I think that should name them

_blank1

and _blank2

which should open them in two separate windows.

I haven’t tried it, but it sounds plausible.

Good luck!

Subject: RE: @urlopen and new window

Thanks for the idea. It does sound plausible but unfortunately doesn’t make a difference. Hmmm

Subject: RE: @urlopen and new window

The meaning of “_blank” when used in the target attribute of a link is: Open the resource in a new window every time.

Unfortunately, @UrlOpen does not honor @SetTargetFrame at all (as documented in Designer help). Likewise, @UrlOpen provides no means to specify a target frame.

If it has to look like a button, your only way is to create a button like image, place that on your form, and add a link hotspot to it. In the hotspot’s properties you can provide _blank as the target.

Subject: RE: @urlopen and new window

Still not there. I added target=“_blank” to the ‘other’ HTML tag in the hotspot but I still get only one browser window. When I click the hotspot IE loads and I can see the first URL loading in IE’s status bar but it is immediately replaced by the second URL. I also note that even though I see the first URL appear to load there is no back button in the browser.

Seems like this should be simple…

Thanks for your ideas…

The following code launchesIE but after briefly displaying ibm.com in IE’s status bar the cnn.com site loads fully…

temp:=“http://www.ibm.com”:“http://www.cnn.com”;

@For(n := 1;

n <= @Elements(temp);

n := n + 1;

@URLOpen(temp[n])

)

Subject: RE: @urlopen and new window

What kind of hotspot?

Subject: RE: @urlopen and new window

I’ve tried an Action Hotspot over text, HotspotRectangle over an image and a button.

Subject: RE: @urlopen and new window

Mike, I just went back to step one and tried your original code sample. What can I say? Works. With Firefox as the default browser.

I did not find a way to make it work with IE 6, neither using @Formulas, nor using JavaScript. Sorry.

Subject: RE: @urlopen and new window

Hi … new here … but I signed up because I’m wrestling with this same quandry. I need to open 3 URLs with a single button, and i need it to work in both IE and Firefox, anybody have any new information here?