Blogs

  • Browse Blogs
  • My Blog
  • My Updates

Tags Help

  • View as cloud  | list

Similar Blogs

photo

Yellow is the...

55 Entries |  Tim Tripcony
Updated 
No Ratings 0     Comments 22
photo

TexasSwede

66 Entries |  Karl-Henry Martinsso...
Updated 
No Ratings 0     Comments 59
photo

Lotus Nut

69 Entries |  Chris Whisonant
Updated 
Ratings 4     Comments 96
photo

Urs Meli

19 Entries |  Urs Meli
Updated 
No Ratings 0     Comments 14
photo

Uh Clem's Adm...

35 Entries |  Chris Mobley
Updated 
Ratings 5     Comments 42

Dogear Bookmarks

.Domino Framework

Blog Authors:  Peter Presnell  

All entries tagged with blackberry

Viewing HTML Source on Blackberry Device

Peter Presnell  |     |  Tags:  html blackberry  |  Comments (0)

To view the source (HTML) code from your Blackberry browser use the following key sequence:-

<Alt><R><B><V><S>

DominoBES class

Peter Presnell  |     |  Tags:  java bes blackberry .dominoframework  |  Comments (0)
I am now in the process of extending the .Domino Framerwork to support the publishing of Notes applications on a Blackberry client.  A new DominoBES class has been added as a way of allowing Notes applications to communicate with a Blackberry device via the Blackberry Enterprise Server (BES).  Unlike the rest of the framework, this class has been developed in Java due to the need to send an HTTP POST request.  The first method - browserChannelPush (see below) provides a wrapper for executing a Channel Push, effectively adding an icon to the Blackberry device, which when selected invokes the nominated URL.

import java.net.*;
public class DominoBES
{
  public void DominoBES()
  {
  }
  public void browserChannelPush(String mdsHost, int mdsPort,String email,String docURL, String unreadIconURL, String readIconURL, String pushID, String pushTitle)
  {
    try
    {
      URL mdsURL =  new URL("http",mdsHost,mdsPort,"push?DESTINATION=" + email + "&PORT=7874&REQUESTURI=/");
      HttpURLConnection connection = (HttpURLConnection)mdsURL.openConnection();
      connection.setRequestMethod("Post");
      connection.setRequestProperty("X-RIM-Push-Type","Browser-Channel");
      connection.setRequestProperty("X-RIM-Push-Title",pushTitle);
      connection.setRequestProperty("X-RIM-Push-Channel-ID",pushID);
      connection.setRequestProperty("X-Rim-Push-Read-Icon-URL",readIconURL);
      connection.setRequestProperty("X-Rim-Push-Unread-Icon-URL",unreadIconURL);
      connection.setRequestProperty("Content-Location",docURL);
    }
    catch (Exception e)
    {
      System.err.println("Push failure");
      e.printStackTrace(System.err);
    }
  }
}

import java.net.*;
public class DominoBES
{
  public void DominoBES()
  {
  }
  public void browserChannelPush(String mdsHost, int mdsPort,String email,String docURL, String unreadIconURL, String readIconURL, String pushID, String pushTitle)
  {
    try
    {
      URL mdsURL =  new URL("http",mdsHost,mdsPort,"push?DESTINATION=" + email + "&PORT=7874&REQUESTURI=/");
      HttpURLConnection connection = (HttpURLConnection)mdsURL.openConnection();
      connection.setRequestMethod("Post");
      connection.setRequestProperty("X-RIM-Push-Type","Browser-Channel");
      connection.setRequestProperty("X-RIM-Push-Title",pushTitle);
      connection.setRequestProperty("X-RIM-Push-Channel-ID",pushID);
      connection.setRequestProperty("X-Rim-Push-Read-Icon-URL",readIconURL);
      connection.setRequestProperty("X-Rim-Push-Unread-Icon-URL",unreadIconURL);
      connection.setRequestProperty("Content-Location",docURL);
    }
    catch (Exception e)
    {
      System.err.println("Push failure");
      e.printStackTrace(System.err);
    }
  }
}

Blackberry JavaScript Limitations

Peter Presnell  |     |  Tags:  blackberry javascript  |  Comments (0)

The following is a list of limitations I have found in trying to implement JavaScript to run in Domino Web applications running on a BlackBerry device:-

  1. Any JavaScript placed in the JS Header
  2. eval statement
  3. control.length
  4. control.disabled

Adding Blackberry Support

Peter Presnell  |     |  Tags:  blackberry .dominoframework  |  Comments (0)
Earlier this week I started work on my first project in which I need to specifically design a Notes application to support  Blackberry Devices.  To assist me with this I have started to extend the capabilities of the .Domino Framework.

The DominoWebSession class now has two additional properties DeviceType and DeviceModel.  DeviceType will return "Blackberry" when the document is being loaded from a Blackberry Device (Later I expect to add other PDA devices such as iPhone).  This property works by looking for the text "Blackberry" in the CGI variable HTTP_User_Agent.  The DeviceModel property will pass back the specific Blackberry model.  This property can potentially be used to identify the resolution and capabilities of the Blackberry device.
I have also added a CGI\PDA subform that adds fields for these two properties to the standard CGI variables often passed with Web pages.
I will also be adding general Blackberry specific development stuff to the knowledge base of the .Domino Framework wiki.  This includes the following table of screen resolutions (I couldn't find a resource where this is documented).

Model Name Resolution
9500 Thunder 360 x 480
9000 Bold 480 x 320
8800
320 x 240
8700
320 x 240
8300 Curve 320 x 240
8100 Pearl 240 x 260
7200
240 x 160
7100
240 x 260


Skip to main content link. Accesskey S
IBM Lotus Connections Help Tools About

Tags

A tag is a keyword that is used to categorize an entry. To view the entries with a particular tag, click a tag name or enter a tag in the box.
The tag cloud indicates the frequency of tag use. Popular tags appear darkest. The slider control adjusts how many tags are displayed in the tag cloud.