Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 6th, 2007, 08:38 AM
Authorized User
 
Join Date: Dec 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default error while try to open a HTM file

Hi,

I am getting access denied error while try to open a HTM file from any server(LN Domino sever), but no prob while opening the same through local HTML file.

as per the google search results its a error due to different domain
can any one help me how to acess file across the domain?

please find the simple Java script code below.

<html>
<head>
<script>
adWindow=window.open("c:\\LossList.htm");
</script></head>
<body>
</body>
</html>


 
Old December 11th, 2007, 06:54 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

c:\\LossList.htm?

That's pointing to your local machine. If LossList.htm is in the same directory as your html file then do ./LossList.htm

Cheers

--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk
 
Old December 12th, 2007, 07:47 AM
Authorized User
 
Join Date: Dec 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Thanks for your reply, But the HTML file was in a different machine (resides in a server)

VB

Quote:
quote:Originally posted by ciderpunx
 c:\\LossList.htm?

That's pointing to your local machine. If LossList.htm is in the same directory as your html file then do ./LossList.htm

Cheers

--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk
 
Old December 14th, 2007, 02:47 PM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Then do http://that_machine/path/to/LossList.htm

--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel error cant open file Born2BFree Excel VBA 1 February 20th, 2007 01:05 PM
Open the "Open File" dialogue box piratelordx Access VBA 4 March 14th, 2006 10:08 PM
Avoid Exporting Temp Directory W/ .htm File chuckca Crystal Reports 0 July 22nd, 2005 07:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.