361 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Webstorm Tip: Use Key Promoter to help you find Keyboard shortcuts
Thu, Oct 9th 2014 80
Appcelerator fix for Ti.Map on iOS after upgrading to Titanium 3.4.0
Fri, Oct 3rd 2014 95
Appcelerator Tip: Switch between iOS SDKs for mobile app development
Wed, Oct 1st 2014 57
Calling on iOS, Android and Appcelerator mobile developers in Gauteng, South Africa
Wed, Sep 17th 2014 294
Bluemix iOS Push Notifications Tutorial: Part 3 – The APNS Lifecycle
Tue, Sep 2nd 2014 79
Bluemix iOS Push Notifications Tutorial: Part 2 – Minimum Requirements
Mon, Aug 11th 2014 87
IBM Bluemix iOS Push Notifications Tutorial: Part 1 – Overview
Sun, Aug 3rd 2014 86
Top 10
Calling on iOS, Android and Appcelerator mobile developers in Gauteng, South Africa
Wed, Sep 17th 2014 294
Install previous versions of iOS SDK in your current version of Xcode
Tue, Apr 15th 2014 128
TIP: What to try if IBM Notes 9 keeps crashing on Apple OSX
Tue, Apr 23rd 2013 101
Possible fix for IDFA Warning when uploading to App Store
Fri, Jun 6th 2014 96
Appcelerator fix for Ti.Map on iOS after upgrading to Titanium 3.4.0
Fri, Oct 3rd 2014 95
XPages Tip: @Dblookup() and Javascript Array
Sat, Aug 20th 2011 88
Bluemix iOS Push Notifications Tutorial: Part 2 – Minimum Requirements
Mon, Aug 11th 2014 87
IBM Bluemix iOS Push Notifications Tutorial: Part 1 – Overview
Sun, Aug 3rd 2014 86
Appcelerator Tutorial: Install Modules globally for Titanium Studio
Tue, Jun 3rd 2014 80
Webstorm Tip: Use Key Promoter to help you find Keyboard shortcuts
Thu, Oct 9th 2014 80


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
44 hits



Recent Blog Posts
80


Webstorm Tip: Use Key Promoter to help you find Keyboard shortcuts
Thu, Oct 9th 2014 4:22a   John Jardin
For me, there are too many keyboard shortcuts to memorise in Webstorm IDE? Thanks to a nifty plugin, these shortcuts can be learnt on the fly. Overview What Key Promoter does is monitor your mouse clicks on Menus and Toolbars inside Webstorm. If a shortcut exists for where you mouse-clicked, Key Promoter will show you the Keyboard Shortcut command that you can use for that same action. Firstly, where to find references to Keyboard Shortcuts Note: The below instructions are for Mac, but Windows [read] Keywords: linkedin mac
95


Appcelerator fix for Ti.Map on iOS after upgrading to Titanium 3.4.0
Fri, Oct 3rd 2014 3:46a   John Jardin
This is a quick tip on how to get Ti.Map working again on your iOS7 builds after upgrading Titanium to SDK 3.4.0. For the sake of those who just want to know how to fix the problem and not why it occurred, I will commence this post with the fix and then after that explain what I assumed happened. How to fix the issue In Finder, navigate to “Library > Application Support > Titanium > modules > iphone > ti.map“ Starting with the latest version of Ti.Map, open the releva [read] Keywords: application development iphone linkedin mac mobile
57


Appcelerator Tip: Switch between iOS SDKs for mobile app development
Wed, Oct 1st 2014 9:37a   John Jardin
Thanks to Apple forcing my hand by auto installing Xcode 6, I had to quickly manage multiple versions of Xcode on my mac for Appcelerator mobile development. Why multiple versions? Xcode 6 has the iOS 8 SDK and Simulator by default. For some reason, I couldn’t get it to include the iOS7 SDK, which is what I require for my current development projects. This meant that I needed Xcode 5 back on my machine. I was quite nervous to delete Xcode 6 and replace it with Xcode 5 again, so I decided t [read] Keywords: apple applications development linkedin mac mobile
294


Calling on iOS, Android and Appcelerator mobile developers in Gauteng, South Africa
Wed, Sep 17th 2014 3:47a   John Jardin
Are you a native iOS or Android Developer? If not, have you developed mobile apps for iOS and Android using Appcelerator or something similar? We’re hiring! Our mobile division is expanding at an exciting rate. We are looking to all mobile developers who meet the above pre-requisites and who are interested in joining our team. We are based in Centurion, Pretoria in Gauteng, South Africa. We’re primarily interested in permanent positions, where temporary/contract positions would only [read] Keywords: google linkedin mobile twitter
79


Bluemix iOS Push Notifications Tutorial: Part 3 – The APNS Lifecycle
Tue, Sep 2nd 2014 1:48p   John Jardin
In this blog post, I provide a brief overview of Apple’s Push Notification Lifecycle and where IBM Bluemix fits in. Quick Notes This Blog Post is Part 3 of a Tutorial Series on IBM Bluemix and iOS Push Notifications. My aim in this Blog Post is to help you understand Push Notifications when it comes to Apple Mobile Devices (iPhones/iPods/iPads). Overview When it comes to including Push Notification functionality in your iOS mobile app, the functionality itself is quite simple and straigh [read] Keywords: ibm notes apple application interface linkedin mobile server
87


Bluemix iOS Push Notifications Tutorial: Part 2 – Minimum Requirements
Mon, Aug 11th 2014 11:55a   John Jardin
In this post, I’m going to quickly highlight a few requirements before we officially get going with the Bluemix iOS Push Notification Tutorial Series. 1. Mac OSX and Xcode For those out there new to iOS Development, you cannot test and deploy iOS Applications to devices unless you do it via an Apple Operating System. While you can follow this tutorial using Mountain Lion (OSX 10.8), I’ll be using and recommend Mavericks (OSX 10.9). Then, you will need to download Xcode. Xcode is App [read] Keywords: admin ibm apple application applications development iphone ipod linkedin mac mobile wiki




86


IBM Bluemix iOS Push Notifications Tutorial: Part 1 – Overview
Sun, Aug 3rd 2014 1:49p   John Jardin
This is a short video series that I’m planning for the very near future, on how to get the Bluemix Quickstart Push Sample Project running on your Apple devices. Purpose of this Tutorial While the Bluemix team do well to make these sample projects as easy to implement as possible and provide the supporting documentation and instructions, this process is quite daunting from my experience. My goal is to take you through the entire process from having very little already set up, to running the [read] Keywords: ibm apple linkedin mobile profile
55


Possible fix for Error 404 when logging into Bluemix via cf
Thu, Jun 19th 2014 8:41a   John Jardin
In the following Node.js Tutorial provided on the IBM Bluemix Cloud environment, you get asked to log in to Bluemix via cf (Cloud Foundry Command Line Interface) using the following command: cf login -a https://api.mybluemix.net -o -s For some reason, I kept getting the following error: It seems the Endpoint URL changed, but even then, the above command didn’t work after using the new Endpoint URL. After some troubleshooting I finally managed to log in by doing the following: In Termi [read] Keywords: ibm email interface linkedin password
48


TIP: Create global batch files for use in Terminal
Thu, Jun 12th 2014 7:44a   John Jardin
I’m slowly but surely becoming a huge fan of running my development workflows through Terminal on my Mac, especially in the case of mobile development using Appcelerator Titanium. This is a quick tip to show you how to group terminal commands into batch files and have these batch files accessible anywhere when working in Terminal. NOTE I haven’t moved to Mavericks as yet, so my example below applies to Mountain Lion, but should also apply to Mavericks In my example below, my batch f [read] Keywords: development linkedin mac mobile
62


XCode Tip: Possible fix if Application Loader hangs
Tue, Jun 10th 2014 11:21a   John Jardin
I wanted to publish one of my mobile apps to the Apple App Store via Titanium Studio. The Archive was successfully created by Titanium and launched in XCode, but when I tried to distribute my mobile app to the App Store using the Application Loader, I got stuck on the following screen: After waiting about 30 minutes, I cancelled the upload and started Googling for solutions. Thanks to this article, I managed to fix the issue by doing the following: In Finder, navigate to “Applications [read] Keywords: apple application applications archive java linkedin mobile properties




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