How do I load an HTML document at an anchor position in the Default Browser

I want to position the document to a specific HREF id within the document, but I got �unable to open <URL> all the time.
I got no problems start the default browser with an URL not containing any anchor reference.
     String url = "file:///Q:/TEMP/plg/CATasks.html#71773"; // ..unable to open..
//     String url = "file:///Q:/TEMP/plg/CATasks.html";          // working�
     boolean windows = isWindowsPlatform();
if (windows){
command = WIN_PATH + " " + WIN_FLAG + " " + url;
try{
Process p = Runtime.getRuntime().exec(command);
Please help!

I got the same problem. Did you solve it?
Thanks,
Linda

Similar Messages

  • How we can load external html or php file in flash?

    Hi there,
    I want to show my php's file desing in flash..
    i m getting data through database in php file and it has
    table... so I want to show that data in my flash movie...
    Please help me ..
    How can I load external html or php file in flash?
    If any other way is there then plz tell me.....
    thanx

    No.  Flash can only display html content in textfields and only supports a very limited number of html tags (look up the htmlText property of TextFields).  So to display an html/php file is not possible.

  • How to scan both sides of document in color to pdf with the dr-m160?

    how to scan both sides of document in color to pdf with the dr-m160?

    Hi healthynhappy1.
    To scan a 2-sided document, you will need to change the scanner settings in the software. 
    If you are using Capture On Touch:
    You will need to turn off the "Scan in Full Auto" option. 
    Next, you will open [Scanner Settings] and change the "Scanning Side" to Duplex. 
    Verify that the [Color Mode] shows "24-bit Color" and when you get the option to save the file, verify the [File Type] shows as "PDF".
    If you are using CapturePerfect:
    Click [Scan].
    Click [Scanner Settings].
    Change the [Scan Side] to "Duplex".
    Verify that [Color Mode] is set for "Color" and then save the file as "PDF".
    I hope that this information is helpful to you.  Should you need further assistance, please contact us at 1-800-OK-CANON (1-800-652-2666).  Have a great day!
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How do I convert a powerpoint document to a pdf and retain the notes?

    How do I convert a powerpoint document to a pdf and retain the notes?

    One possibility is to print the slides+notes, choosing "save as PDF" in the print dialog instead of sending it to a printer.

  • How can I set the default print settings of my document as color.  I want the default print setting to be color when someone opens a document.  similar to duplex print preset is there a color print preset?

    How can I set the default print settings of my document as color.  I want the default print setting to be color when someone opens a document.  similar to duplex print preset is there a color print preset?

    Hi,
    Try saving your settings as a Preset by clicking the Preset drop down and then select Save Current Settings as a Preset.
    Next try changing the settings by selecting the saved preset.
    That allow saving the settings for a specific printer, I assume it may also allow selecting these settings for another printer.

  • How to open a URL in the default browser via CC HTML Extension?

    Hi,
    I'm trying to open a link via the default browser in a HTML Extension for Photoshop CC built with Extension Builder 3.
    With the initial example the "/indext.html" it look like this:
    <li><button class="default" id="btn_PHXS" onClick="onClickButton('PHXS')" disabled="true">Run ps code</button></li>
    and I changed the code from "/ext.js" to:
    ...function onClickButton(ppid) {    var csInterface = new CSInterface();    csInterface.openURLInDefaultBrowser('http://www.adobe.com');}...
    This is what the "/lib/CSInterface-4.0.0.js" looks like:
    * Opens a page in the default system browser.
    * @param url   The URL of the page to open. Must use HTTP or HTTPS protocol.
    * @return One of these error codes:\n
    *      <ul>\n
    *          <li>NO_ERROR - 0</li>\n
    *          <li>ERR_UNKNOWN - 1</li>\n
    *          <li>ERR_INVALID_PARAMS - 2</li>\n
    *          <li>ERR_INVALID_URL - 201</li>\n
    *      </ul>\n
    CSInterface.prototype.openURLInDefaultBrowser = function(url)
        return cep.util.openURLInDefaultBrowser(url);
    Since "util" doesn't seem to be defined  I get the message:
    Uncaught TypeError: Cannot call method 'openURLInDefaultBrowser' of undefined
    Is the something missing?
    Thx,
    frankin

    Hi Franklin,
    Apologies for the delay but I have been trying to determine why this API is not been working. I have since discovered that, although this API is documented in the JS library, the behaviour has yet to be implemented into Photoshop CC. Offline I will try to determine why this API was included in the library when it was not ready but for the meantime, if you would like to open a browser, here is a workaround:
    Instead of using:
    //(new CSInterface).openURLInDefaultBrowser("http://www.adobe.com")
    // Use the createProcess API to open a browser. The following shows a workflow in Windows to open Internet Explorer.  
    var csInterface = new CSInterface();
    var rootDir = "/";
    var isWindows = window.navigator.platform.toLowerCase().indexOf("win") > -1;
    if (isWindows) {
                        rootDir = csInterface.getSystemPath(SystemPath.COMMON_FILES).substring(0, 3);
    var processPath = "/usr/bin/open";
      if (isWindows) {
        processPath = rootDir + "Windows/explorer.exe";
    var url = "http://www.adobe.com";
    window.cep.process.createProcess(processPath, url);
    Apologies for this inconvenience but we promise to keep you informed when openURLInDefaultBrowser API is fully supported.
    Kind regards,
    Lea

  • How do I make Firefox the default browser in a non-administrative Windows XP account, where clicking to do so has no effect?

    I have two accounts for myself on my PC running Windows XP. In the administrative account, Firefox is already the default browser that opens when I double-click an HTML file, etc. Firefox knows it's the default browser there.
    In my other account, every time I start Firefox, it tells me it's not the default browser. Clicking there to make it the default, or in the options, does nothing.
    When I go to Set Program Access and Defaults in the administrative account, "Use my current Web browser" is selected. Mozilla Firefox is not listed as an option. In my non-administrative account, the Add or Remove Programs control panel can't be used. It says I don't have permission.

    To check that in the other account you would have to give it temporarily administrator permissions.
    See:
    *https://support.mozilla.org/kb/How+to+make+Firefox+the+default+browser
    *https://support.mozilla.org/kb/Setting+Firefox+as+the+default+browser+does+not+work
    *http://kb.mozillazine.org/Default_browser

  • Opening a byte stream of HTML content in the default browser

    Hi,
    I have a ByteArrayOutputStream which holds HTML content. Can anybody tell me how to open it in the default browser with out saving the content to a file?
    Thanks and regards
    Unni

    Weeeeeelllll. You could implement your own mini http server, then launch the browser pointing to localhost....
    Some browsers have automation interfaces that you could technically use to do something like this, but you are way outside the realm of Java land at that point.
    If your code is running as an Applet, there may be some sort of interface that allows you to do this (it's been so long since I messed with applets that I can't really say - my initial inclination is to think "probably not", as this could violate the security sandbox... but who knows).
    - K

  • How do I change the default browser

    Can anyone tell me how I change the default browser which is invoked when I run a web application from Jdev3.1(under NT 4.0). When I run main.jsp from the JDev interface, it invokes IE 5.5. But, I want it to invoke and the application on Netscape 4.6. I don't know if it's the NT registry, but I wanted to make sure w/the experts before I temper w/the registry settings.
    Thanks!
    A

    Alan,
    You got me started on this.
    Unfortunately, IE also messed up my browser,
    HTM file descriptions (MS...HTML...)
    and the HTML file icons and ...
    Any how, I also want to make Netscape my default, so I searched and I found this:
    http://home.netscape.com/download/win32_instructions.html
    This is as simple as it gets.
    -John
    null

  • How do you invoke the default browser for Unix/OSX

    Does anyone know how to programmatically display the contents of a URL in the default browser for a Unix system? I found a javaworld article on doing this using Runtime.getRuntime().exec(cmd). The article gives the cmd string for invoking the default browser in Windows, and for invoking the Netscape browser in Unix.
    This can easily be extended to invoke any known browser executable in a known path on a Unix system; but I'd like to invoke the default browser without knowing what or where it is. I'm specifically targetting Mac/OSX, but any Unix solution is worth trying.
    Is there a Unix command for launching the default browser to display the contents of a given URL? Or is there an alternative approach, rather than invoking Runtime.exec()?
    -Mark

    After extensive google searching, I came across a partial solution. This code detects the default browser on a Mac, and provides an elegant solution for trying standard browsers in turn for other Unix systems. I tested it on WIndows XP and Mac OSX 3.9, and it detected the default browser each time. A suped up version of this tool is available as a SourceForge project. You can find it here:
    http://sourceforge.net/projects/browserlaunch2/
    Here's the simplified code:
    //  Bare Bones Browser Launch                          //
    //  Version 1.5                                        //
    //  December 10, 2005                                  //
    //  Supports: Mac OS X, GNU/Linux, Unix, Windows XP    //
    //  Example Usage:                                     //
    //     String url = "http://www.centerkey.com/";       //
    //     BareBonesBrowserLaunch.openURL(url);            //
    //  Public Domain Software -- Free to Use as You Like  //
    import java.lang.reflect.Method;
    import javax.swing.JOptionPane;
    public class BareBonesBrowserLaunch {
       private static final String errMsg = "Error attempting to launch web browser";
       public static void openURL(String url) {
          String osName = System.getProperty("os.name");
          try {
             if (osName.startsWith("Mac OS")) {
                Class fileMgr = Class.forName("com.apple.eio.FileManager");
                Method openURL = fileMgr.getDeclaredMethod("openURL",
                   new Class[] {String.class});
                openURL.invoke(null, new Object[] {url});
             else if (osName.startsWith("Windows"))
                Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
             else { //assume Unix or Linux
                String[] browsers = {
                   "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape" };
                String browser = null;
                for (int count = 0; count < browsers.length && browser == null; count++)
                   if (Runtime.getRuntime().exec(
                         new String[] {"which", browsers[count]}).waitFor() == 0)
                      browser = browsers[count];
                if (browser == null)
                   throw new Exception("Could not find web browser");
                else
                   Runtime.getRuntime().exec(new String[] {browser, url});
          catch (Exception e) {
             JOptionPane.showMessageDialog(null, errMsg + ":\n" + e.getLocalizedMessage());
       }

  • Anyone know of a way to adjust the top and side MARGINS of a document printed from iOS numbers? The default margins are too wide. Need more working space.

    Anyone know of a way to adjust the top and side MARGINS of a document printed from iOS numbers? The default margins are too wide. Need more working space.

    Open the document,
    Tap the Tools icon (upper right).
    Tap Document Set up.
    Drag the margins to the position you wish (the actual margin width sould display as you are doing this).

  • How do you make Firefox the default browser when the normal way doesnt work?

    Im trying completely from chrome after a friend showed my how much firefox has got its act together. However i cant for the life of me set it as the default browser. I have tried the "make firefox the default browser" button in firefox, which simply opens the windows default programs panel. Whenever i try to use the panel it simply sets the http protocol to nightly which isnt even installed!( http://puu.sh/2vJHM ) I think a possible fix would be to manually change the registry, but i wouldnt know where to start.

    Did you check the box on ''Options > Advanced > General >[X] "Always check to see if Firefox is the default browser on startup"?
    Have you restarted Firefox and if so, or when you do so, what does that section on the advanced Firefox options show?
    Have you tried restarting your system after setting the default browser using the second suggestion and, after restart, check the setting per the second suggestion to see if that setting is holding?
    Updating your Plugins would have no affect on the default browser question. It was something that you needed to do to avoid security issues online by using an out of date version of Java. Java is not involved in the default browser issue. That is why I separated it from the first part of the reply with a line and began with the word "Other".

  • I created a word document with hyperlinks. When my default browser is Chrome the hyper links work. When the default browser is Safari, the hyperlinks bring to pages that just lines and lines of symbols. I need these links to work in both browsers.

    I created a word document with hyperlinks. When my default browser is Chrome the hyper links work. When the default browser is Safari, the hyperlinks bring to pages that just lines and lines of symbols. I need these links to work in both browsers. Any ideas?

    version 10.6.8

  • How to make Firefox the default browser for Hotmail

    I recently uninstalled Safari because I want to use Firefox as my default browser. Previously when I click the Mail button in Windows Live Messenger, the mac would automatically open my hotmail in Safari. Now that I have uninstalled it, when I click on the Mail button, it opens up with TextEdit. How do I make it open with Firefox?
    Any help is much appreciated.
    Thanks,
    Joe

    OK I'll post there also but I'm aware of the preferences section in Safari... thing is, when I choose to make Firefox the default browser, it resets back to Safari when I turn off the computer and turn it back on. Everytime. And it does my head in
    I heard of a program called More Internet that I heard could help slove the problem but I can't understand how to use it, nor is there any forum or any way to contact anyone who knows. It's driving me up the wall.
    So I'm hoping there's another way that someone in the world knows.

  • How to deactivate Photoshop CS4 as the default browser for image

    I wanted to deactivate Photoshop CS4 as the default browser for image. Now everytime when i want to open BMP(bitmap) file it always use photoshop CS4 to open the file. It takes a longer time to load the bitmap picture when using photoshop CS4 to open.
    Can anybody help!
    thank you

    Mylenium is implying just that.  There's a checkbox that reads something like [ ] Always Use This Program to Open This File Type.
    I do know that in Photoshop CS5 in Bridge there's a preference dialog that allows you to set file associations as well...  I'm not where I can test CS4 at the moment.  There may be such a dialog also in Bridge CS4.  Open Bridge, choose Edit - Preferences - File Associations if that subcategory exists, then find your file type and change the association.
    Yet a third possibility is that if you have a viewer program like IrfanView that you'd like to associate with the file type, then the viewer program likely offers a menu through which you can indicate you want that program assocated with particular file type(s).  I have instructed IrfanView to make itself the viewer for all Image types, and that works well.
    -Noel

Maybe you are looking for