Matt Klein Posted June 17, 2002 Posted June 17, 2002 Hi all - I know similar posts have been made. I have gone through them all and tried everything suggested and still have a problem. I am hosting three identical web pages all using different sets of HTML files and different FileMaker databases. The HTML files, including format files are in subfolders of the Web directory in the FileMaker directory. There are three subfolders, one for each of the web pages. The only difference between the HTML files in each of the subfolders is the FileMaker database that they reference in the code. The Filemaker databases are stored outside the FileMaker directory entirely. They are in a directory at the root level. When one enters the index page for any of the web pages, the filemaker web username and password dialog box appears after which they are taken to another HTML page via a FileMaker command which specifies the format file of index2.html. Here is the code for the screen that logs them in and then takes them to index2.html: <html><!--test test--> <head> <title>Please Login</title> <META HTTP-EQUIV="Refresh" CONTENT="0;URL=FMPro?-db=Reportmapl.fp5&-lay=data&-format=index2.html&-findany"> </head> <body background="config/background.jpg"> <div align="center"><img src="config/logo.jpg"><br><br><font size="+4">Welcome to<br>AP Easy<br>Online Reporting</font><br><br>Please wait while we log you in...</div> <p align="center"><font size="-1">If you encounter an error, <a href="FMPro?-db=Reportmapl.fp5&-lay=data&-format=index2.html&-error=messages/error.html&-findany">click here to try again</a>, or contact your administrator for assistance.</font></p> <p align="center"><br><br> <font size="-2" face="arial">Copyright © 2001 Small Business Computers of New England, Inc.<br><br>The documents to be transmitted contain confidential information belonging to the sender that is legally privileged. The information is intended only for the appropriate recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or the taking of any action in reliance on the contents of this transmitted information is strictly prohibited.</font></p> </html> My problem is that this is working fine with the first two web pages and I just set up the third and it will not find the index2.html format file. Any ideas? I have tried just about everything I can think of.
Garry Claridge Posted June 17, 2002 Posted June 17, 2002 You need the path to the format file in the sub-folder; e.g.: FMPro?-db=Reportmapl.fp5&-lay=data&-format=subfolder/index2.html&-error=messages/error.html&-findany Or, if you are going from one sub-folder to another: FMPro?-db=Reportmapl.fp5&-lay=data&-format=../subfolder/index2.html&-error=messages/error.html&-findany Hope this helps. Garry
Matt Klein Posted June 19, 2002 Author Posted June 19, 2002 Thanks for the response garrycl!! I ended up solving the problem. For those of you who may search the FM Forums and come upon this thread, here was my solution: The index.html file for the web page was in the subdirectory in the Web directory in the FileMaker Pro directory. So, I moved it out to a subdirectory in the Web directory in the Web Server application directory. Previously the index.html file looked like this: <html> <head><title>Reporting</title></head> <script language="JavaScript"> window.open("login.html","my_new_window","toolbar=yes,location=no,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=no,copyhistory=yes,width=800,height=500"); history.go(-1);</script> </html> The file login.html was the file that called on the index2.html as a format file. I changed it to this: <html> <head><title>Reporting</title></head> <script language="JavaScript"> window.open("http://www.myhomepage.com:591/subfolder/login.html","my_new_window","toolbar=yes,location=no,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=no,copyhistory=yes,width=800,height=500"); history.go(-1);</script> </html> I don't really know why it works. The only thing I can think of is that by pointing this first file through the FileMaker port to the directory with the format files, all other calls on files automatically look in the directory where without this "pointing" it gets lost. Anyway this worked for my problem and I hope that someone else finds this useful.
Recommended Posts
This topic is 8291 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now