357 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Bluemix iOS Push Notifications Tutorial: Part 2 – Minimum Requirements
Mon, Aug 11th 2014 85
IBM Bluemix iOS Push Notifications Tutorial: Part 1 – Overview
Sun, Aug 3rd 2014 104
Possible fix for Error 404 when logging into Bluemix via cf
Thu, Jun 19th 2014 181
TIP: Create global batch files for use in Terminal
Thu, Jun 12th 2014 162
XCode Tip: Possible fix if Application Loader hangs
Tue, Jun 10th 2014 207
Possible fix for IDFA Warning when uploading to App Store
Fri, Jun 6th 2014 226
Appcelerator Tutorial: Install Modules globally for Titanium Studio
Tue, Jun 3rd 2014 205
Top 10
Solution to error when downloading Kitchen Sink from Git in Titanium Studio
Fri, Feb 21st 2014 563
XPages Tip: @Dblookup() and Javascript Array
Sat, Aug 20th 2011 420
TIP: What to try if IBM Notes 9 keeps crashing on Apple OSX
Tue, Apr 23rd 2013 385
Install previous versions of iOS SDK in your current version of Xcode
Tue, Apr 15th 2014 286
Appcelerator Mobile Dev – Chapter 2: Understanding the Titanium Framework
Sat, Apr 27th 2013 278
Video Tutorial: Get up and running with Lotus Domino Designer 8.5.3
Thu, Mar 14th 2013 274
Connect to a Notes Database on a remote Domino Server via SSJS
Tue, Oct 8th 2013 262
LotusScript Tip: ‘End’ versus ‘Exit Sub’
Sun, Oct 23rd 2011 260
Slides and Info for Worklight Session at IBM Connect 2014
Mon, Feb 3rd 2014 245
Appcelerator Tip: Have Titanium auto login on startup
Mon, Jul 15th 2013 239


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



Recent Blog Posts
85


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
104


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
181


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
162


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
207


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
226


Possible fix for IDFA Warning when uploading to App Store
Fri, Jun 6th 2014 6:45a   John Jardin
Even though I’m not using any Advertising in my mobile app, I receive an IDFA warning from XCode  before submitting my app to the App Store. Thanks to this Article on the Appcelerator Developer Forum,  I managed to fix the problem. How Did I fix it? Because I’m using the following Facebook Module (version 3.1.1) in my mobile app, the module makes use of the AdSupport Framework, which resulted in my app making use of IDFA. To fix this, I downloaded and installed version 3.1.2 of th [read] Keywords: facebook iphone linkedin mobile




205


Appcelerator Tutorial: Install Modules globally for Titanium Studio
Tue, Jun 3rd 2014 10:39a   John Jardin
One of the great features of Appcelerator Titanium is how you can extend its capability by installing Mobile Modules. Examples of some of these modules are: Ti.Paint (A module that allows you to draw on a canvas within your mobile app…e.g. a user adding a signature) Barcode Scanner (Barcode scanning for your mobile application) A great place to find many of these modules is the Appcelerator Marketplace. You can also find many other modules on Github as well. The best news is that it̵ [read] Keywords: notes application applications development linkedin mobile xml
163


Quick fix for a Git Push via Terminal to BlueMix if fatal error occurs
Tue, May 27th 2014 12:04p   John Jardin
I’m going through a node.js tutorial for BlueMix and got stuck when trying to push some changes to the BlueMix Git Repository via Terminal. When trying to perform a git push, I got the following timeout error: warning: push.default is unset; its implicit value is changing in Git 2.0 from ‘matching’ to ‘simple’. error: RPC failed; result=22, HTTP code = 401 fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly   It seems I have an [read] Keywords: linkedin
195


BlueMix Tip: Fix error when installing Cloud Foundry CLI via HomeBrew
Fri, May 23rd 2014 12:39p   John Jardin
In this article I quickly show you how to sort out a Formula error that could occur when trying to install Cloud Foundry CLI via HomeBrew for IBM BlueMix. My Machine Specs Apple MacBook Pro: Max OS X 10.8.5 HomeBrew 0.9.4 The Problem I tried to run the HomeBrew command line to install Cloud Foundry CLI… brew install cloudfoundry-cli …but received the following error: Error: No available formula for cloudfoundry-cli Why did this happen? It’s simple. My version of HomeBrew was [read] Keywords: ibm apple linkedin macbook
184


Appcelerator Titanium Fix for – dyld: Library not loaded
Thu, May 22nd 2014 12:11p   John Jardin
It seems that after upgrading XCode to version 5.1.1 on my Mac, my iPad Simulator through Appcelerator Titanium no longer works and receives the following error: My Specs are the following: Apple Mountain Lion: 10.8.5 Titanium Studio: 3.2.3 XCode: 5.1.1 Mobile Application: 3.1.2GA SDK (iPad Only) After some online searching and troubleshooting, I found the following JIRA Ticket that suggests using the “ios-sim” file from the “3.2.2 SDK” in your “3.1.2 SDK” [read] Keywords: apple application iphone linkedin mac mobile




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