Open hyperlinks in html text using StageWebView instead of external browser

My iPad app downloads xml data from a server and displays it as html text. The text may contain hyperlinks and currently these are correctly displayed as links in my app. However when I click on the link, it opens the link in an external browser.
Any idea how I could instead open the links using StageWebView - I know how to open a link using StageWebView - the problem is intercepting whatever causes it to open in the external browser and instead use StageWebView.
Thanks in advance

Hi, John, welcome to Apple's user-to-user discussion forums.
Does anyone here know of a way to open new windows without using command click in a tab?
If you want links on a web page to open in a new tab, you need to command-click on them. This will work both for links set up to open in the same window and those set up to open in a new window. There is no setting in Preferences to make links on a web page automatically open in a new tab.
There is a preference setting to open links from other programs, such as Mail, in a new tab. In Safari's Preferences, click on the General icon. Towards the bottom where it says "Open links from applications", check "in a new tab in the current window".

Similar Messages

  • How to create hyperlink in Html page using Java

    Hello every one
    I want to know that how can I create a hyperlink in Html page using java ?
    Let for example
    I have code like this and i want to give hyperlink to it using java.
    rember that i am creating node using this id="name" which give me multiple value. and i want to assign diff link to each name..?
    <tr>
    <td ><span id="name"></span>
    </tr>

    but i m using this code to create node in html file
    HTMLLIElement li = (HTMLLIElement)appHTML.createElement("LI");
    Text txt = appHTML.createTextNode(name);
    li.appendChild(txt);
    appHTML.getElementById("name").appendChild(li);
    this will display all name value which is coming from database,
    and i want to assign a hyperlink to it,
    I have id with name also so I thought that using id i will
    create javascript like
    function popup(id)
         if(id==1)
              var n1 = window.open("../list/name1.html");
         if(id==2)
              var n1 = window.open("../list/name2.html");
    this way i want to popup particular file if i can pass id value in this function
    so want hyperlink like
    name

  • Firefox 3.6.8 won't open local php files. It opens the save as text dialog box instead.

    When I try to open a local php file on my MAC hard drive with FF 3.6.8, the save file dialog box opens instead. It says: You have chosen to open index.php which is a TextEdit.app Document. I do not have this problem with Firefox 3.5.11.
    I have tried:
    opening the file directly from Firefox as well as
    double clicking the file (which is the most common way).
    I have also tried changing the file "open with" preference to "open with Firefox." That did not work either.
    Any help on this would be appreciated.
    I'm on a MAC OS 10.5.8
    Thnx, Nick

    You have to delete mimeTypes.rdf.
    You can find it here (Windows XP): C:\Documents and Settings\Username\Aplication Data\Mozilla\Firefox\Profiles\xxxxxxxx.default.

  • ComboBox  over HTML text shows link

    I have a ComboBox that opens over an HTML text field. The
    HTML text field contains html text as links i.e. "<a href="">
    etc which change colour on rollOver. Rolling over a link in the
    open ComboBox also triggers the rollOver on the underlying html
    text!
    It's as if the ComboBox is transparent, but I can't get it's
    background to be solid so as not to trigger the rollovers
    underneath. BTW the html links do not respond in any way other than
    to the rollOver. They do not link anywhere if a mouse click happens
    in the ComboBox. If the box is closed however, they do link as
    designed, to other pages.

    The HTML_FORMAT was renamed to TEXT_FIELD_HTML_FORMAT to reflect the fact that it is specific to the htmlText property in TextField, not a general html implementation.
    This is working correctly for me:
                var _text:String = "<html><body><span>first line of text, <i>this is italic</i> and <a href='cnn.com'>a link to cnn</a>, 2nd line of text.</span></body></html>";
                var _flow:TextFlow = TextConverter.importToFlow( _text, TextConverter.TEXT_FIELD_HTML_FORMAT);
                _flow.fontLookup = FontLookup.DEVICE;
                _flow.renderingMode = RenderingMode.NORMAL;
                _flow.fontFamily = "Arial";
                var s:Sprite = new Sprite();
                s.x = 30;
                s.y = 30;
                _flow.flowComposer.addController(new ContainerController(s, 300, 500));
                _flow.flowComposer.updateAllControllers();
                addChild(s);

  • Open external browser from within Acrobat via API?

    My plugin can get the desired path/address, but I can't seem to figure out how to kick off the browser through the API.
    End goal is opening non-Acrobat file types (.xls, .doc) through an external browser.
    Is this possible?
    Using Acrobat SDK 7 and Visual Studio 2005.

    > "first embedded as dataObjects"... This sounds like it would not be reader-compatible, and that's another end-goal.
    It is if you have a LiveCycle Reader Extensions Server to extend the PDF.
    > But http:// links would work?
    Yes.
    > How do I launch a browser?
    Look up the app.launchURL method in the JS API Reference.

  • Use jbo:InputRender instead of html:text

    I'm currently trying JDev 10g preview and i'm using Business Components with Struts. When i use the data control palette to create an input form in a JSP page, all the input are html:text. Is there a way to set the default type of all inputs to jbo:InputRender instead of html:text?
    Thanks
    J�r�

    No, i would like to set the type of each input in my Business Component instead of in the JSP pages. This way, if i want to change the type of an input, i will have to change my business component, not my JSP pages.
    So, to be able to do this, i have to change every input from html:text to jbo:InputRender in all my forms. Which i think is not optional, because if the input type is not indicated, jbo:InputRender use the input type (which in most case, except for dates, is html:text).

  • Hyperlink using Reader instead of Professional

    Aloha all!
    I have Acrobat Professional 6 and Reader v8. The Professional v6 is the default application for PDFs; however, when a hyperlink opens to a pdf, it uses the Reader instead. How can I get the default application for PDF hyperlinks to use Professional instead of the Reader?
    TIA,
    Mark Higashigawa
    City & County of Honolulu

    Look at some of the other topics right around yours. For some reason this is a popular topic right now, though the other topic is about AA8 and AR8. The idea is the same.

  • Opening HTML file using a Jbutton

    can anybody tell me how can I open an HTML file using a Jbutton.
    I have a help button on my menu of my GUI. I wanna open a html document using the help (jbutton)
    thank you

    call this class in your button action
    import javax.swing.JInternalFrame;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.io.*;
    import javax.swing.text.*;
    import javax.swing.JOptionPane;
    import javax.swing.BorderFactory;
    import javax.swing.border.*;
    import javax.swing.JDesktopPane;
    public class Taa extends JFrame implements HyperlinkListener{
         public JEditorPane hh;
         public JScrollPane ss;
    *Taa default constructor
    *@param Nothing
    *@return Nothing
    *@thorws nothing
    *@see descon
    public Taa(){
    //set top left image in the gui
    setIconImage(Toolkit.getDefaultToolkit().getImage("buttons/help.jpg"));
    try{
         File f=new File("Here you can put your html"such as"Help.htm");
         String s = f.getAbsolutePath();
         s = "file:"+s;
         URL url = new URL(s);
    hh=new JEditorPane(s);
    hh.setEditable(false);
    hh.addHyperlinkListener(this);
    catch (MalformedURLException e) {
         System.out.println("Malformed URL: " + e);
    catch (IOException e) {
         System.out.println("IOException: " + e);
         ss=new JScrollPane(hh);
         getContentPane().add(ss);
         setBounds(232,0,490,500);
         setResizable(false);
         show();
    *Implementation of HyperlinkEvent
    public void hyperlinkUpdate(HyperlinkEvent e) {
         if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
         linkActivated(e.getURL());
    *this method activate link
    *@param URL the URL
    *@return Nothing
    protected void linkActivated(URL u) {
         Cursor c = hh.getCursor();
         Cursor waitCursor = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
         hh.setCursor(waitCursor);
         SwingUtilities.invokeLater(new PageLoader(u, c));
    *this class load help files
    class PageLoader implements Runnable {
    *Taa default constructor
    *@param Url the url,Cursor c
    *@return Nothing
    *@thorws nothing
    *@see descon
         PageLoader(URL u, Cursor c) {
         url = u;
         cursor = c;
    public void run() {
         if (url == null) {
              // restore the original cursor
              hh.setCursor(cursor);
              Container parent = hh.getParent();
              parent.repaint();
         } else {
              Document doc = hh.getDocument();
              try {
              hh.setPage(url);
              } catch (IOException ioe) {
              hh.setDocument(doc);
              getToolkit().beep();
              } finally {
              // schedule the cursor to revert after
              // the paint has happended.
              url = null;
              SwingUtilities.invokeLater(this);
         URL url;
         Cursor cursor;

  • To add meta tags, you open your published .html pages with TextEdit or any other text editor and modify as required. You have to do redo it each time you republish. Ihow do I do this? I need step by step instructions

    To add meta tags, you open your published .html pages with TextEdit or any other text editor and modify as required. You have to do redo it each time you republish. I need step by step instructions on how to accomplish this  please .

    Rage Sitemap Automator and iWeb SEO Tool are two different applications.
    Use SEO Tool to add the title tag and meta description. These need to be added to the html file for every page of your website. SEO Tool stores all these so that when you republish you only need to add tags to any new pages and click the re-apply button to refresh the existing ones.
    Once you have added. refreshe the tags with iWeb SEO Tool and uploaded the files with your FTP application, then open the site in Sitemap Automator and create and upload a new sitemap.
    Once you have set up accounts with Google, Yahoo and Bing, verified your site with each and submitted a sitemap, on subsequent publishing Sitemap Automator will resubmit the sitemap with one button click. It will also notify Ask.com whch doesn't require an account since you can add your domain name to this URL to ping them...
    http://submissions.ask.com/ping?sitemap=http%3A//www.domain.com/sitemap.xml

  • I would like to read a text file in which the decimal numbers are using dots instead of commas. Is there a way of converting this in labVIEW, or how can I get the program to enterpret the figures in the correct way?

    The program doest enterpret my figures from the text file in the correct way since the numbers contain dots instead of commas. Is there a way to fix this in labVIEW, or do I have to change the files before reading them in the program? Thanks beforehend!

    You must go in the labview option menu, you can select 'use the local
    separator' in the front side submenu (LV6i).
    If you use the "From Exponential/Fract/Eng" vi, you are able to select this
    opton (with a boolean) without changing the labview parameters.
    (sorry for my english)
    Lange Jerome
    FRANCE
    "Nina" a ecrit dans le message news:
    [email protected]..
    > I would like to read a text file in which the decimal numbers are
    > using dots instead of commas. Is there a way of converting this in
    > labVIEW, or how can I get the program to enterpret the figures in the
    > correct way?
    >
    > The program doest enterpret my figures from the text file in the
    > correct way since the numbers contain dots instea
    d of commas. Is there
    > a way to fix this in labVIEW, or do I have to change the files before
    > reading them in the program? Thanks beforehend!

  • Html text in label is moving when used as a renderer in a table cell

    Hi everybody,
    Because it is impossible to use gradient background for html, I created a custom TableCellRenderer that uses a JLabel (for the html text) inside a JPanel with a gradient background. (I use jdk1.5.0_06)
    However, in the code that I'm posting, something strange happens. The text is moving up and down as I move with the arrow button along the first row, from left to right and backwards, crossing the entire row.
    You can see for yourself. If someone can explain this behavior, please help!
    public class MyFrame extends javax.swing.JFrame {
        public static void main(String args[]) {
               new MyFrame().setVisible(true);
        public MyFrame() {
             setTitle("Use LEFT & RIGHT buttons to test");
            javax.swing.JTable table = new javax.swing.JTable();
            table.setModel(new javax.swing.table.DefaultTableModel(
                new Object [][] { {"", "", ""}, {"", "", ""}, {"", "", ""}, {"", "", ""}, {"", "", ""}, {"", "", ""} },
                new String []   { "Title 1", "Title 2", "Title 3" }
                public Class getColumnClass(int columnIndex) {
                    return String.class;
            table.setRowHeight(30);
            table.setRowHeight(0,100);
            table.setRowSelectionInterval(0,0);
            table.setColumnSelectionInterval(0,0);
            table.setValueAt("This text MOVES up-down as you move across THIS ROW!!!",0,0);
            table.setValueAt("This text MOVES up-down as you move across THIS ROW!!!",0,1);
            table.setValueAt("This text DOES NOT MOVE as you move across THIS ROW!!!",0,2);
            table.setDefaultRenderer(String.class,new StringRenderer());
            getContentPane().add(table, java.awt.BorderLayout.CENTER);
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setBounds(200,200,500,300);
        class StringRenderer extends GradientPanel implements javax.swing.table.TableCellRenderer {
            public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
                   label.setText("<html><p align=center>"+String.valueOf(value)+"</p></html>");
                setColors(new java.awt.Color(255,255,255),isSelected?new java.awt.Color(255,100,100):new java.awt.Color(255,200,200));
                label.setBorder(hasFocus?new javax.swing.border.LineBorder(java.awt.Color.yellow,1):null);
                return this;
        class GradientPanel extends javax.swing.JPanel {
            private java.awt.Color c1,c2;
            protected javax.swing.JLabel label;
            public GradientPanel() {
                label = new javax.swing.JLabel();
                setLayout(new java.awt.GridBagLayout());
                java.awt.GridBagConstraints gbc = new java.awt.GridBagConstraints();
                gbc.fill = java.awt.GridBagConstraints.BOTH;
                gbc.weightx = 1.0;
                gbc.weighty = 1.0;
                gbc.insets = new java.awt.Insets(5,5,5,5);
                add(label, gbc);
            public void setColors(java.awt.Color c1, java.awt.Color c2) {
                this.c1 = c1;
                this.c2 = c2;
                this.repaint();
            public void paintComponent(java.awt.Graphics g) {
                if ( c1 != null && c2 != null ) {
                    java.awt.Graphics2D g2d = (java.awt.Graphics2D)g;
                    g2d.setPaint(new java.awt.GradientPaint(0,0,c2,0,this.getHeight(),c1,false));
                    g2d.fillRect(0,0,this.getWidth(),this.getHeight());
    }

    If someone can explain this behavior, please help!Can't explaing the behavour, but it seems to work fine when you use a JeditorPane or JTextPane which are specifically designed to display HTML.

  • I often have to open files .cue with Text Edit. Right Click, Open with, Others, Text Edit. Is it possible to put Text Edit in the menu avoiding to use "others"?

    I often have to open files .cue with Text Edit. Right Click, Open with, Others, Text Edit. Is it possible to put Text Edit in the menu avoiding to use "others"?

    The easiest way is to keep Textedit in the Dock and drag the .cue file(s) to the Dock icon.
    You can also create an Automator Service:
    Open Automator
    Select: Service
    Select Service receives selected [files or folders] in [Finder]
    and:
    Then select one or more .cue file, right click (or Control-click) on the selection to display the contextual menu. Scroll to the bottom of the contextual menu and select Services -> (what you named the Service).

  • How to use bean write in  struts html:text tag

    hi,
    i'm new to struts concepts.here i'm trying to write a value in html struts tag using <bean:write>
    my current tag is
    <html:text property="empname" value='<bean:write name="employee" property="empid">' />
    but it gives same tag in the text box.how i can solve this.

    what am I doing wrong?You will notice above that I mentioned
    YOU CAN'T USE CUSTOM TAGS AS ATTRIBUTES TO OTHER CUSTOM TAGS
    (was that loud enough for you to notice this time)?
    Try
    <html:text styleId="instruction" styleClass="text" size="50" name="instruction" property="value"/>
    //or
    <html:text styleId="instruction" styleClass="text" size="50" property="instruction" value="<%= instruction.getValue() %>"/>
    better alternative: populate your formbean with your action and just have:
    <html:text styleId="instruction" styleClass="text" size="50" property="instruction"/>
    If you set the "instruction" property of your formBean in the action, the value will be automagically reflected here.
    Cheers,
    evnafets

  • html:text styleid problem while using document.getElementById -very urgent

    Hi all,
    I am using the following struts code in my jsp.
    Each time when I click the checkbox corresponding to each record, I want the screencode to be displayed using the javascript alert.
    But always I am getting the same screencode (only the first screencode).
    What I should do to get the screencode for the corresponding selection of the checkbox
    <logic:iterate id="slist" name="scrlist" scope="session" >
    <html:text property="screencode" name="slist" styleId="sc" indexed="true"/>
    <bean:write name="slist" property="screen"/>
    <html:checkbox property="readchk" alt="Select to enable read right" onclick="javascript:alert(document.getElementById('sc').value)"/>
    </logic:iterate>
    Could anybody help me to fix this problem as soon as possible
    parvathy

    The tricky thing about Ajax is that it's asynchronous. That's the point...
    What you need to do is return a success or fail status from your servlet (or whatever ServiceAuth is...), let's say a 1 or 0. (0 bad, 1 good). You could even get real fancy and return 0 for username doesn't exist, 1 for password doesn't match user name or 2 for success.
    Then have your javascript update the page based on the response received. On a fail response call some javascript method that displays your related Uh-oh message, and on a successresponse call some method that updates the document.location of the page.
    HTH.

  • How to read an html file and replace a text using text_io

    hi,
    i want ro read an html file using text_io and replace a particular text with a new text
    eg: i want to replace a text called "data.js" and with "maps.js"
    how do i do this?

    You have to write your own code to do that. TEXT_IO is just a low level text file interface.
    You need to read in all the text, save it in some internal format (array of varchar2's maybe or in the DB) and then perform a search on the text you have read in, find out where the instances of "data.js" are located and substitute them with "maps.js" After that you need to write to a new file and delete the old one. There is no way to search and replace inside the existing file (what's sometimes referred to as 'in-place' substitution).
    See the help section called About the TEXT_IO package for an overview of how it works and some code examples.

Maybe you are looking for

  • Recovery itunes library from iPod (help PLEASE)

    So I was stupid and didn't back up my iTunes library, I've now lost it all apart from a 128gb iPod. Can anyone PLEASE advise how to transfer those songs from my iPod back into my iTunes library (iMac running OSX Yosemite)? Much appreciate any help th

  • Multiple issues with my iPhone 3GS since 4.1; can anyone help?

    Hi, I have an iPhone 3GS 16GB which I love very much. Vital Statistics are: Version: 4.1 (8B117) Carrier: Voda AU 8.0 Model: MC132X Modem Firmware: 05.14.02 I bought it through Vodafone Australia in January this year. It’s been brilliant, it is this

  • A/C Posting

    Hi All I m trying to post the document in FICO with the help of TCode--FB50 corresponding to Comp Code --1000  , but while posting when i m selecting G/l for liability some error is generating --<b>Account is not tax-relevant, tax code will be ignore

  • How to rip RAW PCM audio from a DVD

    Hi guys, I know audition can rip audio from a cd and from a video file but how can I rip the raw pcm audio from a dvd. I usually just record using 'what you hear' through my soundcard but is there a more accurate way of ripping the audio from a dvd?

  • 10.2.1 update

    After i did the 10.2.1 update, whenever i go on snapchat or watch instagram videos once, the second time i try doing so, the camera bugs out.. When it bugs, i can't open my camera and i cant watch videos.... until i restart the phone