PermaLink $$Return Open in New Window06/10/2008 10:26 AM
Written By : Stephen D GainerCategory : Lotus Web Development
Location : LotusUserGroup.org

Hello all,

I have a $$Return field on a form that redirects user's to different web sites, depending on their choices.  This works just fine.  My question is, is it possible to have the URL's open in a new window?  Currently, they just open in the current window and I would like my page to stay open in their browser when they go to a different URL.

My code looks like this:

I have a field called "FieldRedirect" that is hidden.  Depending on what the user clicks on, I use JavaScript to change the value of this field to 1, 2, 3, etc.  Then in my $$Return field, I have this:

redirect := @GetField("FieldRedirect");

@If(redirect="1"; "[http://www.someurl1.com]";redirect="2"; "[http://www.someurl2.com]"........etc.

Again, this works just fine, I would just like the url's to open in a new window.  Does anyone have any ideas?  Any help would be greatly appreciated. 

Thank you!

Stephen



Technorati:
This page has been accessed 91 times. .
Comments :v

1. Curt Stone06/13/2008 03:13:19 PM
Homepage: http://www.curtsisland.com


How about adding TARGET = "_blank" ?




2. Stephen Gainer06/18/2008 07:43:45 AM


Hi Curt,
First, thanks for taking the time to respond!
That was the first thing that I tried, but it doesn't work. I you use the quotation marks, it is bad syntax and if you don't there is no effect. Unless you have a different method than what I am using.




3. Curt Stone06/27/2008 11:52:56 AM
Homepage: http://www.curtsisland.com


I tried this in the $$Return of the Discussion Template. Here's the bottom piece of code and it worked for me. (famous last words)
Try the slash (\) in front of the quotes.

TopicView := "<a href=/" + DB + "/($All)?OpenView&target=_blank>" + AllDoc + "</a>&nbsp&nbsp&nbsp ";
CategoryView := "<a href=/" + DB + "/by+Category?OpenView>" + ByCat + "</a>&nbsp&nbsp&nbsp ";
AuthorView := "<a href=/" + DB + "/AuthorView?OpenView>" + ByAuth + "</a>&nbsp&nbsp&nbsp";
AltNameView := "<a href=/" + DB + "/by+Alternate+Name?OpenView>" + ByAltName + "</a><hr>&nbsp&nbsp&nbsp ";

testView := "<a href = http://www.google.com TARGET=\"_blank\">Google</a>";


bkgd := "<body bgcolor=\"" + "#ffffff" + "\"+ >";

REM {Assemble the HTML to be returned};
OkMsg := bkgd + Thanks + existingdoclink+TopicView + CategoryView + AuthorView + AltnameView + DateView+testView;
OKMsg




Please login to enter a comment.
Welcome!
Welcome to LotusUserGroup.org's group blog hosted by Jess Stratton, blogged by LotusUserGroup.org members.

Jess Stratton is the principal consultant for Solace Consulting. She has over 7 years experience with Lotus Notes & Domino, specializing in both administration and development. Jess is a sought-after author and speaker and owns and operates a computer training facility that specializes in end-user education and guest lecturing. And now, Jess is hosting the blog on LotusUserGroup.org.

As always, all LotusUserGroup.org members are welcome to join in and post in the blog. But now, with Jess hosting, she'll be adding a constant stream of insightful comments, community information, links to useful sights and posts on other blogs, and, of course, answers to your questions whenever she can. So join in, post a blog, ask questions, share your knowledge, and state your opinions…

All Content Copyright 2006 LotusUserGroup.org.

Contact
Powered by
Blogsphere
Lotus Domino ND7 RSS OPML List RSS News Feed RSS Comments Feed Podcast Feed Blog Admin Lotus Geek OpenNTF BlogSphere


Site hosted by


Copyright © 2006, 2007 Wellesley Information Services and LotusUserGroup. All rights reserved. Email: usergroupinfo@lotususergroup.org
LotusUserGroup, 990 Washington St, Suite 308, Dedham, MA 02026, USA.
Sales and Customer Service: 1.781.751.8755