Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-06-2010, 01:42 PM   PM User | #1
bharath15021986
New to the CF scene

 
Join Date: Dec 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
bharath15021986 is an unknown quantity at this point
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
bharath15021986 is offline   Reply With Quote
Old 12-08-2010, 12:07 AM   PM User | #2
renegadeandy
Regular Coder

 
Join Date: Feb 2008
Location: Edinburgh - Scotland
Posts: 107
Thanks: 0
Thanked 12 Times in 12 Posts
renegadeandy is an unknown quantity at this point
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?
renegadeandy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:29 AM.


Advertisement
Log in to turn off these ads.