Browser hyperlink field problem

Hello

In my application I am display of the HTML in the browser field, I give you the layout for this field of browser, my problem is some hyperlinks in the HTML content is there too. My requirement is each time I click on one of the links so I need to open the new field of browser and I need in the field of fullscreen browser (IE firstly I am html content display in small area in my screen but I need to open the new field of device browser total widtf and device height.) can anyone suggest me how to open the new field of browser, I click on any hyperlink...

Thanks in advance,

Lachi.

Hi laxman, see this link

http://supportforums.BlackBerry.com/T5/Java-development/open-link-in-BrowserField/m-p/557983#M113954

Tags: BlackBerry Developers

Similar Questions

  • Hi, on some sites of adobe muse, when I load, I get a mobile version of the site (on a laptop). I tried to remove the 'phone' and the words after that on the address bar and even cleaned my browser, but the problem still exists. What can be the reason? I'

    Hi, on some sites of adobe muse, when I load, I get a mobile version of the site (on a laptop). I tried to remove the 'phone' and the words after that on the address bar and even cleaned my browser, but the problem still exists. What can be the reason? I am using Lenovo y50... help me please

    The y50 Lenovo is a hybrid and that manufacturers are especially ThinkPads, I guess that Adobe sees it as such is why you get the phone display.

    However, you can delete the 5876 to get a view of the desktop and all do it muse site

    for example, the home page

    change the /phone/index.html to businesscatalyst.com/index.html to see the office... I suppect you forgot the slash so delete/phone phone not only

    Office ex = yourweb page | Home

  • Nintendo WII uses OPERA browsers. The WII needs to load the best Opera browser. The problem is

    Nintendo WII uses OPERA browsers. The WII needs to load the best Opera browser. The problem is that it does not load flash player 8. [email protected] 619-366-9707

    This is probably more a problem to ask Nintendo or Opera Software?

    Mylenium

  • Field browser... problem?

    Hello

    I am having two buttons in my screen, if I click a browserfield button to display the content, and if the user clicks another button you want to display different content vice versa...

    On fuction FieldChanged I call this function...

    public void homepageCharts(String current_chart_url){
    browser_field.requestContent(current_chart_url);
    }
    

    but his exception showing all doing like this... where I am wrong...?

    Hello

    I found the solution. If I add the statement (); browser_field.setFocus in this function its works very well...

  • Browser question field

    I want to use the browser to connect fb field.  I did own .net site for fb connect. It works very well in all devices.  I stayed in the 5.0 os. It does not work in the 9800 device. If I click on the button facebook this site, field of browser not able to redirect to another page.

    Please help its urgent.

    My code is

    BrowserFieldConfig myBrowserFieldConfig = new BrowserFieldConfig();
    myBrowserFieldConfig.setProperty (BrowserFieldConfig.NAVIGATION_MODE, BrowserFieldConfig.NAVIGATION_MODE_POINTER);
    final BrowserField browserField = new BrowserField (myBrowserFieldConfig);

    final ProtocolController pc = browserField.getController ((ProtocolController));
    //
        
    pc.setResourceRequestHandler ("http", new BrowserFieldResourceRequestHandler() {}
            
    public InputConnection handleResource (request for BrowserFieldRequest)
    throws Exception {}
    InputConnection inputConnection =
    browserField.getConnectionManager () .makeRequest (request);
    String urll = request.getURL ();

    If ((urll.indexOf ('Flag = 1')! = - 1)) {}
                    
    }
                
    Return inputConnection;
    }
    });
        
    pc.setNavigationRequestHandler ("http", new BrowserFieldNavigationRequestHandler() {}
    Public Sub handleNavigation (BrowserFieldRequest request) throws Exception {}
    Intercept();  Intercept the request and my manager
    InputConnection ic = pc.handleResourceRequest (request);
    browserField.displayContent (ic, request.getURL ());
    String u = request.getURL ();

    int i = u.lastIndexOf ('&');)
    String subString = u.substring (i + 1);

    {if (SUBSTRING.equalsIgnoreCase ('flag = 1'))}
                    
    }
    }
    });
    browserField.requestContent ("http://197.255.212.150/fbauth/Account/Login?IMINumber=" "+ DeviceInfo.getDeviceId () +"; ") deviceside = false;...

    I had problems in a number of Simulators with the implementation of the BrowserField.  I know I have problems with one is the 9800.  My immediately suspected, it's that there is a problem with this Simulator.  Download a simulator of 9800 with a later level of the operating system and try that or try on a real device 9800.

  • browser launch application problem

    Hello
    In order to launch a browser from an application, I used the code snippet of this
    page:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800440/How_To _...

    Everything I do is provide my own url for it and run it. It works very well and has
    was working fine until recently. A number of customers complained
    receive the following error message:

    Eception exception: net.rim.device.api.system.ControlledAccessException

    In the hunt for the cause, I have tried on a number of different devices.
    Including OS versions:

    Rogers Blackberry 8700 v4.2.1 - works fine
    Rogers Blackberry 8800 v4.2.1 - works fine
    Rogers Blackberry 8310 v4.2.2 - works fine
    Bell Blackberry 8830 v4.2.2 - above displays error
    Bell Blackberry 8130 v4.3.0 - above displays error

    I tried the device simulators:
    v4.2.2.123 Bell 8830
    4.3.0.07 uscc 8130
    and they both worked fine.

    We're going a little crazy here trying to figure out the cause. If it's not OS
    linked version, maybe that's a problem of provider?
    Is there a known issue with Bell relating to the safety of the launch of the browser
    applications? Is there a work around?

    Thank you

    OK problem solved. Lancéo has got to me referring to the document that I originally brought it up. I just stumbled on the wording. It did not clear in the document that extract of code belonged to which version. In addition, a some devices running v4.2.2 colleagues was not the problem. Where as the document basically says that she should have. I should still try.

    So I have now two versions of the same application. The snippet of code on the bottom of the document

    is used for versions 4.2.1 below. Initially, the code snippet is used to 4.2.2 and more.

    Thanks again for all of you who have posted.

  • Custom with LostFocus list field problems

    Hello experts!

    I made a custom, list field when I draw the lines, I made a solution using a personalized reminder, well... I have a problem when the list field lost focus, because when I have a focus to the button my list have a last item carried.

    I want to erase,

    Any suggestions?

    Best regards, Rampelotti

    in the drawListRow() method adds the underside before the draw.

    if(graphics.isDrawingStyleSet(Graphics.DRAWSTYLE_FOCUS))
    
  • Changing custom field problem Listener

    I created a custom field that works as a button. He painted a bitmap to the screen. And when it focuses it changes the color of the image. However, I try to add a field change listener to it. I looked on the forum and found this code.

    protected boolean navigationClick(int status, int time)
    {
         fieldChangeNotify(1);
         return super.navigationClick(status, time);
    }
    

    It works but I have a problem. You see, my button now push a small screen, thin in the stack that has another button of the same type on it (custom button). At the moment it is the only button on this screen, which means that it has the focus. But it seems that once my button has the focus, I can click anywhere and it is always enabled. I only want to be activated when I touch it. Any suggestions? Here is my code

    public class MenuButtonField extends Field
    {
        Bitmap imagePic;
        Bitmap highlightedPic;
        public MenuButtonField(String imageName, String focusedImg)
        {
            super();
            imagePic=Bitmap.getBitmapResource(imageName);
            highlightedPic=Bitmap.getBitmapResource(focusedImg);
        }
    
        public void layout(int width,int height)
        {
            setExtent(20,80);
        }
    
        public boolean isFocusable()
        {
            return true;
        }
    
        public void drawFocus(Graphics graphics, boolean on)
        {
            paint(graphics);
        }
    
        public boolean touchEvent(TouchEvent message)
        {
            int type=0;
            type=message.getEvent();
            if(type==TouchEvent.CLICK)
            {
                fieldChangeNotify(1);
                return true;
            }
            else{
                return false;
            }
        }
    
        protected boolean navigationClick(int status, int time) {
            fieldChangeNotify(1);
            return super.navigationClick(status, time);
        }
    
        protected void paint(Graphics g)
        {
    
            g.drawBitmap(0, 20, 20, 80, imagePic, 0, 0);
    
            if(this.isFocus())
            {
                g.drawBitmap(0, 20, 20, 80, highlightedPic, 0, 0);
            }
    
        }
    }
    

    PLEASE HELP ME

    I found help here
    http://supportforums.BlackBerry.com/T5/Java-development/navigationClick-invoked-when-clicking-outsid...

    The position of Scribe the Lion was the solution.

  • CUSTOM TEXT FIELD PROBLEM

    public class CustText extends TextField{
        private String _text;
        private FontFamily _fontFamily1;
        private int _size, _color;
        private Font _headFont = null;
    
        public CustText(String _text, int _size,int _color, long _property)
        {
            super(_property);
            this._text = _text;
            this._size = _size;
            this._color = _color;
        }
    
        protected void paint(Graphics g)
        {
            try{
                _fontFamily1 = FontFamily.forName("aerial");
            } catch(ClassNotFoundException e) {
                    _fontFamily1 = Font.getDefault().getFontFamily();
            }
            _headFont = _fontFamily1.getFont(Font.PLAIN,_size);
                g.setColor(_color);
            g.setFont(_headFont);
            g.drawText(_text,0, 0);
        }
    }
    

    I use the above code to customTextfield, the problem here is, when it is used to display long text that does not move to the next line, only the first line is painted, the rest of the lines are missing

    Graphics.drawText draws text on a single line.  This example allows input of multi line.

    http://supportforums.BlackBerry.com/T5/Java-development/create-a-custom-field-using-attributes-of-OT...

  • focus with custom text field problem

    Hello

    I am new to BB dev., trying to write a small program with two CustomTextFields, but faceing the problem, then try to verify that CustomTextField is selected (the focus).

    CustomTextField (NumericTextField)

    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.component.EditField;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.system.Characters;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Font;
    
    public class NumericTextField extends Manager
    {
    
        private final static int DEFAULT_LEFT_MARGIN = 10;
        private final static int DEFAULT_RIGHT_MARGIN = 10;
        private final static int DEFAULT_TOP_MARGIN = 5;
        private final static int DEFAULT_BOTTOM_MARGIN = 5;
    
        private final static int DEFAULT_LEFT_PADDING = 10;
        private final static int DEFAULT_RIGHT_PADDING = 10;
        private final static int DEFAULT_TOP_PADDING = 5;
        private final static int DEFAULT_BOTTOM_PADDING = 5;
    
        private int topMargin = DEFAULT_TOP_MARGIN;
        private int bottomMargin = DEFAULT_BOTTOM_MARGIN;
        private int leftMargin = DEFAULT_LEFT_MARGIN;
        private int rightMargin = DEFAULT_RIGHT_MARGIN;
    
        private int topPadding = DEFAULT_TOP_PADDING;
        private int bottomPadding = DEFAULT_BOTTOM_PADDING;
        private int leftPadding = DEFAULT_LEFT_PADDING;
        private int rightPadding = DEFAULT_RIGHT_PADDING;
    
        private int totalHorizontalEmptySpace = leftMargin + leftPadding + rightPadding + rightMargin;
        private int totalVerticalEmptySpace = topMargin + topPadding + bottomPadding + bottomMargin;
    
        private int minHeight = getFont().getHeight() + totalVerticalEmptySpace;
        private int width = Display.getWidth();
        private int height = minHeight;
    
        private EditField editField;
    
        public NumericTextField()
        {
            super(0);
    
            editField = new EditField(EditField.FILTER_REAL_NUMERIC);
            add(editField);
        }    
    
        protected void sublayout(int width, int height)
        {
            Field field = getField(0);
            layoutChild(field, this.width - totalHorizontalEmptySpace, this.height - totalVerticalEmptySpace);
            setPositionChild(field, leftMargin+leftPadding, topMargin+topPadding);
            setExtent(this.width, this.height);
        }
    
        public void setTopMargin(int topMargin)
        {
            this.topMargin = topMargin;
        }
    
        public void setBottomMargin(int bottomMargin)
        {
            this.bottomMargin = bottomMargin;
        }    
    
        protected void paint(Graphics graphics)
        {
            graphics.drawRoundRect(leftMargin, topMargin, width - (leftMargin+rightMargin), height - (topMargin+bottomMargin), 5, 5);
    
            boolean longText = false;
            EditField ef = (EditField)getField(0);
            String entireText = ef.getText();
    
            String textToDraw = "";
            Font font = getFont();
            int availableWidth = width - totalHorizontalEmptySpace;
            if (font.getAdvance(entireText) <= availableWidth)
            {
                textToDraw = entireText;
            }
            else
            {
                int endIndex = entireText.length();
                for (int beginIndex = 1; beginIndex < endIndex; beginIndex++)
                {
                    textToDraw = entireText.substring(beginIndex);
                    if (font.getAdvance(textToDraw) <= availableWidth)
                    {
                        longText = true;
                        break;
                    }
                }
            }
    
            if (longText == true)
            {
                ef.setText(textToDraw);
                super.paint(graphics);
                ef.setText(entireText);
            }
            else
            {
                super.paint(graphics);
            }
        }
    
        public int getPreferredWidth()
        {
            return width;
        }
    
        public int getPreferredHeight()
        {
            return height;
        }
    
        protected boolean keyChar(char ch, int status, int time)
        {
            if (ch == Characters.ENTER)
            {
                return true;
            }
            else
            {
                return super.keyChar(ch, status, time);
            }
        }
    
        public String getText()
        {
            return ((EditField)getField(0)).getText();
        }
    
        public void setText(final String text)
        {
            ((EditField)getField(0)).setText(text);
        }
    }
    

    and in my screen content trying to check:

    NumericTextField focusImput() {
        NumericTextField focusField;
        if (_fieldFrom.isFocus()) {
            focusField = _fieldtFrom;
        }
        else {
            focusField = _fieldTo;
        }
        return focusField;
    }
    

    but it always returns me _fieldTo...

    NumericTextField definition:

    _fieldFrom = new NumericTextField();
    _fieldFrom.setChangeListener(this);
    manager.add(_fieldFrom);
    
    _fieldTo = new NumericTextField();
    _fieldTo.setChangeListener(this);
    manager.add(_fieldTo);
    

    Maybe someone to guide me how to correctly focus feature?

    Thanks in advance.

    Then you need two slightly customized EditFields - their main customization would be limiting their width, as well as making them focusable/unfocusable. So, something like this should work:

    public class NumericTextField extends EditField {
      // override the constructors used in your code, adding FILTER_REAL_NUMERIC
      // ...
      private int maxWidth = Integer.MAX_VALUE >> 1;
      private boolean focusable = true;
    
      protected void layout(int width, int height) {
        super.layout(Math.min(maxWidth, width), height);
      }
    
      public void setMaxWidth(int width) {
        maxWidth = width;
        updateLayout();
      }
    
      public boolean isFocusable() {
        return (isStyle(FOCUSABLE) & focusable);
      }
    
      public void setFocusable(boolean on) {
        focusable = on;
      }
    }
    

    If you want to place the fields, use setMargin - he is documented in OS 6.0 but works since OS 4.2.

    Use setMaxWidth to, well, set desired maximum width (otherwise EditField tenorman to the top of the entire available width). Use the setFocusable to toggle the field. In addition, you can play with the Visual States for the field you turn, but it's an exersize for another day. First of all make sure that it works and you know how to use it.

  • After you insert hyperlinks to problem on the legend of text (character to help properties.)

    So I have a text caption in which I want to highlight text and add a hyperlink (see photo below).  Problem is that when I click on the text of the legend the two boxes of hyperlink show active under properties although it is not a hyperlink it.  By clicking on ' Add or remove the "button of hyperlink on the character keys does nothing.  The only way to get these buttons allow to work is to exit completely the Captivate, then re - open a file.  Then only, it'll work.

    Also, does anyone else have this problem?

    Thank you

    Aaronscreen-shot-2016-09-12-at-2-19-10-pm

    I'm on Windows. When you have installed the patch, did you first delete the preferences and delete the Layouts folder in the shared documents? This is the first time this typeof problem is mentioned, blogged recently about hyperlinks a couple of times and did a lot of exploring. Really wonder what is happening to you. Is this also the case when you use a form as a text container?

  • Unable to print PDFs from Gmail. Error message 129. Operating system is Windows XP. Google Chrome browser. No problem until 2 days ago!

    Unable to print PDFs from Gmail. Error message 129. No problem until 2 days ago. OS is XP. Google Chrome browser. Can someone please help!

    There is a bug in Google Chrome.

  • SCSI address and null field problems when adding disks

    I had a spreasheet and requires up to 6 drives to be added to a list of virtual machines.

    vmname hdd1, hdd2, hdd3, hdd4, and hdd5, hdd6. I then want to run another command if hdd2 is lets say its to return "two disc exists."

    HDD1 must always be mapped to scsi 0:3.

    HDD2 must always be mapped to scsi 0:4 etc..

    but some time ago a hdd1 and a hdd3 and hdd6 but no hdd2 or hdd 4.

    I have two problems

    I don't know how to make sure the player is assigned to writing scsi address.

    I know how to do or not to do things if the fields are null or not.

    Help, please.

    You can specify a SCSI nummer if you add a drive hard using the vSphere API:

    $spec = New-Object VMware.Vim.VirtualMachineConfigSpec
    $spec.deviceChange = New-Object VMware.Vim.VirtualDeviceConfigSpec[] (1)
    $spec.deviceChange[0] = New-Object VMware.Vim.VirtualDeviceConfigSpec
    $spec.deviceChange[0].operation = "add"
    $spec.deviceChange[0].fileOperation = "create"
    $spec.deviceChange[0].device = New-Object VMware.Vim.VirtualDisk
    $spec.deviceChange[0].device.key = -100
    $spec.deviceChange[0].device.backing = New-Object VMware.Vim.VirtualDiskFlatVer2BackingInfo
    $spec.deviceChange[0].device.backing.fileName = ""
    $spec.deviceChange[0].device.backing.diskMode = "persistent"
    $spec.deviceChange[0].device.backing.split = $false
    $spec.deviceChange[0].device.backing.writeThrough = $false
    $spec.deviceChange[0].device.backing.thinProvisioned = $false
    $spec.deviceChange[0].device.backing.eagerlyScrub = $false
    $spec.deviceChange[0].device.connectable = New-Object VMware.Vim.VirtualDeviceConnectInfo
    $spec.deviceChange[0].device.connectable.startConnected = $true
    $spec.deviceChange[0].device.connectable.allowGuestControl = $false
    $spec.deviceChange[0].device.connectable.connected = $true
    $spec.deviceChange[0].device.controllerKey = 1000
    $spec.deviceChange[0].device.unitNumber = 5
    $spec.deviceChange[0].device.capacityInKB = 1048576
    
    $vm = Get-VM -Name MyVM
    $vm.ExtensionData.ReconfigVM_Task($spec)
    

    The above code adds a hard drive with number 5 on the SCSI to a virtual machine called MyVM. The line:

    $spec.deviceChange[0].device.unitNumber = 5
    

    sets the number of SCSI to 5. A value of 0 in the number 0 SCSI: 5 is defined by the SCSI controller. So if you have a SCSI controller then the first number will always be 0.

    I don't know what you mean with "I know not how to do or not to do things if the fields are null or not.".

  • Text field problem

    Hi, who can help me with this

    I've done a few members bij field using insert-> control-> field = 1 domain name

    and I did I got the movie the following lines of script

    put vacuum in the field 1 = to start with a blank

    then I put this line for the random words

    put random word (5) of "open zien gaan few minute" in field 1

    the problem is that the field is not considered to be a field

    and so far there is no display text

    TIA

    Herman

    Assuming that really name you your field "Field 1" then try:

    put word at random (5) of "open zien gaan few minute" in the field "Field 1"

  • How to add a simple hyperlink field in Apex

    Version: 4.1.0

    Hello

    I have a simple requirement and was trying to find the best option. I was drawing a blank.

    I need to show a single field "Overview," on a page of the Apex at the top which, once clicked opens a new page and goes to the underlying URL.

    Now, I have to add this field after my existing radio buttons which is the area of the top of the page "settings". What is the best way to do it.

    I guess we could do that by creating a new region HTML if I'm not mistaken. But ask yourself if we do perhaps using part of the screen or something. When we use a front regions process and fill the hyperlink and the text "Overview," which the user can click on

    All of the suggestions!

    Thank you
    Ryan

    ryansun wrote:

    Question is how we can show an element displayed as a hyperlink. Currently it shows just the whole text

    It sounds like the question who should have asked 2 hours ago...

    To get a displayed item to render in HTML, in the section element definition Security value escape special characters notpage.

Maybe you are looking for