Hershel Fisch wrote:
On 12/13/07 6:51 PM, "Dave Cragg" <[EMAIL PROTECTED]> wrote:I meant something like this: src="http://127.0.0.1/frame2.html"I can't figure it out. U the example from the tutorial and added the background to the body and ??????? <html> <head> <title>Tip of the Day</title> </head> <body background="/Library/WebServer/Documents/bc.jpg/bc.jpg"> <center> <em>A random tip served by a Revolution CGI:</em> <p>[*]</p> </center> </body> </html> If I just open it up with a browser it works, doing it with rev cgi not, meaning the background doesn't show up. And with a browser I don't need the path. May be this not the way to set the path? I added put the defaultFolder and this is what the browser returned. "/Library/WebServer/CGI-Executables" Thans, Hershel
Random possible parts to help your puzzle:1) the default folder returned by the CGI will be: the cgi-executables.. as you have seen.
2) *but* the "default folder" which apache uses to serving files is: DocumentRoot "/Library/WebServer/Documents" and you don't need to declare that pathin your htmlin your cgi's you need write files out with a full path from root or a relative path like this:
3) Root relative URL will *not work* on OSX unless you do some special configurations.. (means you are using Apples Server Admin tool or you are a cmd line wizard who can
edit httpd.conf and really know what he is doing..
i.e. you cannot do:
src="/SomeNewCoolSiteArea/*.html"
You have to
3) put tHtmlCode into url ("file:../Documents/RevTips.html")
4) typically I will declare the default folder where my CGI is to be
reading and writing files from right away at the top of the cgi
set the defaultFolder to "../Documents/SomeNewCoolSiteArea/"5) Now you simple read and write files to
put someHTML into url "frames.html 6) then in your html you have <a href="SomeNewCoolSiteArea/frames.html"> hth
And place the "frame2.html" file in the html document tree, "not" the cgi-bin folder. Cheers Davesecond it does work with everything else excluding frames meaning works fine doing the tutorial from hyperlynk. HershelCheers Dave _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution_______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution_______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution_______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
