354 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Install previous versions of iOS SDK in your current version of Xcode
Tue, Apr 15th 2014 62
Solution to error when downloading Kitchen Sink from Git in Titanium Studio
Fri, Feb 21st 2014 246
Slides and Info for Worklight Session at IBM Connect 2014
Mon, Feb 3rd 2014 211
Will I see you at IBMConnect next week? I hope so
Mon, Jan 20th 2014 185
TiDomino is now an Idea Space on IdeaJam.net
Thu, Jan 16th 2014 120
Convert MySQL queries to MongoDB using QueryMongo
Tue, Jan 7th 2014 122
New version of TiDomino released on OpenNTF
Thu, Dec 19th 2013 93
Top 10
XPages Tip: @Dblookup() and Javascript Array
Sat, Aug 20th 2011 263
Solution to error when downloading Kitchen Sink from Git in Titanium Studio
Fri, Feb 21st 2014 246
TIP: What to try if IBM Notes 9 keeps crashing on Apple OSX
Tue, Apr 23rd 2013 219
Slides and Info for Worklight Session at IBM Connect 2014
Mon, Feb 3rd 2014 211
Will I see you at IBMConnect next week? I hope so
Mon, Jan 20th 2014 185
XPages Tip: Open Links in Own window in Ext Lib App Layout
Tue, Aug 23rd 2011 167
Video Tutorial: Get up and running with Lotus Domino Designer 8.5.3
Thu, Mar 14th 2013 149
Appcelerator Mobile Dev – Chapter 2: Understanding the Titanium Framework
Sat, Apr 27th 2013 149
Appcelerator Tip: Have Titanium auto login on startup
Mon, Jul 15th 2013 145
Connect to a Notes Database on a remote Domino Server via SSJS
Tue, Oct 8th 2013 145


XPages Tip: Open Links in Own window in Ext Lib App Layout
John Jardin    

Hi Everyone. I recently found a way to have links in the Application Layout that comes with the Xpages Extension Library, to open in their own Window if you so wish. You can see a working example of this on my Xpages Showcase. Below I explain how I achieved this.

Let’s say you created a Footer Link in the Properties of the Application Layout Custom Control called “My Page“, and the href parameter is “http://www.mypage.com“, it would look something like this:

This will work perfectly, except that it will open the URL in the current window, overwriting your Xpage.

So, to open the link in its own window, you will use a simple JavaScript Function: window.open(“http://www.mydomain.com”, “_blank”);

Now, if you try to add this to the href property, it will not work, because it would be regarded as a link and not a JavaScript Function. So, to achieve the desired result, you will need to add the JavaScript Function to the onClick property. Please take note of the following 2 conditions:

1. Make sure that the href property is empty. Otherwise it will take preference over the onClick property.

2. Don’t make the onClick property computed and then add the JavaScript, otherwise it will run the Function as SSJS, which won’t work.

Simply paste the JavaScript Function as a string value in the onClick property. See below:

And that’s it. I hope this all made sense. Until next time….Happy Coding.

John


Filed under: Javascript, Tips And Tricks, Tutorial, Xpages Tagged: csjs, demo, domino, extlib, howto, ibm, javascript, js, lotus, openntf, showcase, ssjs, tip, tutorial, ukuvuma, xpages

---------------------
http://jvjardin.wordpress.com/2011/08/23/xpages-tip-open-links-in-own-window-in-ext-lib-app-layout/
Aug 23, 2011
168 hits



Recent Blog Posts
62


Install previous versions of iOS SDK in your current version of Xcode
Tue, Apr 15th 2014 6:19a   John Jardin
In some cases, one might be developing for iOS6 and therefore require the iOS6.1 SDK. Xcode 5 however, no longer has the iOS6.1 SDK installed. In this article I’ll show you how to install the iOS6.1 SDK in your current version of Xcode. Download Xcode 4.6.3 to get the iOS6.1 SDK and Simulator Make sure Xcode is closed. If you are using Appcelerator Titanium, make sure that’s closed as well. Go to Apple’s Developer Center Log into iOS Dev Center (You will need an Apple Develope [read] Keywords: apple applications linkedin mobile
246


Solution to error when downloading Kitchen Sink from Git in Titanium Studio
Fri, Feb 21st 2014 3:31a   John Jardin
So after updating my Titanium Studio to release 3.2.0, I wanted to re-download the Appcelerator Kitchen Sink app from Git. Problem Identified When attempting to download the Kitchen Sink App, I got an error message along the lines of: No GIT Executable found in PreferencesTeamGit This was very strange to me because I never did have Git installed on my MacBook, so why moan about it now? Solution What I did to solve the problem was the following: Got to http://git-scm.com Download Latest version [read] Keywords: linkedin macbook
211


Slides and Info for Worklight Session at IBM Connect 2014
Mon, Feb 3rd 2014 7:42a   John Jardin
Firstly, a big thanks to everyone who attended our session on “IBM Worklight and XPages” at IBM Connect 2014 last week. It was great to see so many people turn up, especially on the last day of IBM Connect. Below are the slides to the IBM Worklight Session, which will be available on SlideShare and for download. I will be releasing a video on this topic and will submit it through David Leedy’s NotesIn9 VideoCast (Hopefully next week still). I will also have the source code avai [read] Keywords: ibm xpages linkedin mobile twitter
185


Will I see you at IBMConnect next week? I hope so
Mon, Jan 20th 2014 5:12a   John Jardin
This has to be one of my favorite months of the year. Not only am I well rested, full of new years resolutions and ready to cause some serious coding damage for 2014, I also get to spend a full week overseas at one of the most amazing holiday resorts, attending an IBM event that hosts thousands of people, and hanging out with some of the most talented and awesome folk that the IBM Online Community have to offer. Yes people, it’s IBMConnect 2014. My flight leaves for Atlanta Friday night (M [read] Keywords: ibm xpages application applications community development linkedin mobile twitter
120


TiDomino is now an Idea Space on IdeaJam.net
Thu, Jan 16th 2014 11:12p   John Jardin
Firstly, a big thanks to Mr Bruce Elgort for creating a category on IdeaJam.net for TiDomino. For those who aren’t aware…TiDomino is a JavaScript module that allows Appcelerator Titanium developers to use IBM Domino programming patterns to structure local data sets and integrate with IBM Domino and XWork Applications. IdeaJam.net is an online social site that uses the power of “crowd-sourcing” to rank ideas and allow the best ideas to rise to the top. (NOTE: IdeaJam is av [read] Keywords: domino ibm applications community idea jam ideajam ideajam.net javascript linkedin mobile openntf twitter
122


Convert MySQL queries to MongoDB using QueryMongo
Tue, Jan 7th 2014 3:29a   John Jardin
I needed to perform a query search in MongoDB based on an array of values. I referenced MongoDB’s Manual, which provides great examples of comparisons between SQL and Mongo Queries, but sadly they don’t provide examples of all queries types. QueryMongo to the rescue!!! The MySQL Version of the query I wanted to perform In my particular case, I needed a MongoDB version of the following MySQL Statement: 1 2 3 SELECT mallType FROM Places WHERE mallType IN('Mall Type 1','Mall Ty [read] Keywords: javascript linkedin mysql sql




93


New version of TiDomino released on OpenNTF
Thu, Dec 19th 2013 8:17a   John Jardin
Hi All. I’ve just released version 1.0.1 of TiDomino on OpenNTF. This release introduces a new Notes Database called “TiDomino Sample DB“. Thanks to Mr Sean Cull’s suggestion, there is no more need to create your own Notes/XPages Application to test out TiDomino’s integration capabilities. The TiDomino Sample DB contains all the design elements and test records to have the TiDomino Kitchen Sink produce and display results when run. I recommend following the TiDomino [read] Keywords: notes xpages application database integration openntf password server twitter
92


DanNotes Session Slides: Mobile Blast – Mobile Strategy for Developers
Fri, Nov 29th 2013 12:18p   John Jardin
Here are the slides to my 2nd session at DanNotes this week: Mobile Blast – Mobile Strategy for Developers. Enjoy [read] Keywords: mobile
93


DanNotes Session Slides: Appcelerator Mobile and XPages
Fri, Nov 29th 2013 8:05a   John Jardin
Here are the slides for my 1 session at DanNotes this week: Appcelerator Mobile. The Doppelgänger to XPages. I cleaned it up a bit. Sadly there were 2 live demos, but I will publish more content around this soon enough. I will submit my other slides early next week and will also be blogging about my Denmark trip soon enough. Enjoy [read] Keywords: notes xpages blogging mobile
82


And the count down to DanNotes begins…
Mon, Nov 18th 2013 3:25a   John Jardin
We’re halfway into the last quarter of 2013 and there’s so much to look forward to. IBM Connect Abstract Reviews, IBM Champion Nominations, and the ever popular DanNotes User Group (Click here to view the DanNotes Website in English). What’s more is that DanNotes will also be celebrating their 50th event at the end of this November. I’m proud to say that I’m one of the few who have the privilege of speaking at this event and I honestly cannot wait. In this post I&# [read] Keywords: admin administration collaboration connections domino ibm lotusscript notes notes client sametime xpages application community development exchange exchange google iphone java javascript linkedin mobile networking openntf server twitter




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition