Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

getDocumentBase() Different results with IE and NN

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone had similar problem:
I am hosting at www.webappcabaret.com
here's code snip from an applet
try {
System.out.println("URL: " + new URL(getDocumentBase(), "main.htm"));
getAppletContext().showDocument(new URL(getDocumentBase(), "main.htm"));
}
catch(MalformedURLException urlEx) {
urlEx.printStackTrace();
}
System.out here for debugging purposes. Now, with IE
I get output:
"URL: http://www.webappcabaret/main.htm"
while with Netscape I get:
"URL: http://www.webappcabaret/my_context_here/main.htm"
First, I was rather surprised to see this,
Second, even that URL which I get with Netscape is correct one, required
page does not get loaded with the second line, i.e. showDocument(),
Netscape just sits there and does nothing, no error msgs or whatever.
When I construct correct URL for IE, it works just fine.
I use Netscape Communicator 4.7
Any comments, ideas ?
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic