Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Swings HTML URL problem

    Hi,

    I have one swings application which when ran has a menu item which opens the HTML path from local system(Like - file:///C:/index.html )....If the file is there then it is working properly using below code

    String browserPath = "C:\Program Files\Internet Explorer\iexplore.exe";
    String url = "file:///C:/index.html";
    Runtime.getRuntime().exec(browserPath+" "+url);

    But if the path is changed to (Like - file:///C:/index.html#section1) then the real problem is occuring....In IE it is loading the same index.html but it is not directly calling the #section1

    Can any one please help in this problem

  • #2
    Regular Coder
    Join Date
    Feb 2008
    Location
    Edinburgh - Scotland
    Posts
    107
    Thanks
    0
    Thanked 12 Times in 12 Posts
    Hmm interesting problem.

    After some googling I found this:

    http://www.technologyquestions.com/t...k-anchors.html

    Some guy has the same problem with ie7 which was a bug - apparantly this works in ie6... Can you try using Firefox as your browser and see if that works?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •