Andre_br has asked for the wisdom of the Perl Monks concerning the following question:
This is not about perl code directly, but about the cgi environment. So, I think itīs related to the problems that the Perl community faces when developing for the web. So here I go:
I usually have all the sites running in a major frame, while the user sees only the http://www.mydomain.com in their browser's adress bar, all the time. Iīve been doing this for two reasons:
Reason #1 - looks cleaner, the visitorīs experience is like a desktop software, without all those strange parameters showing out.
Reason #2 - the 1 pixel invisible frame (iFrame) I let above the major frame is usefull for making requests to the server without having to refresh the current page. I know thereīs XMLHttpRequest, to do this without the need of this pivot technique, but if youīre talking about a https request, like a login-only ssl connection, XMLHttpRequest doesnīt handle it.
NEVERTHELESS, Iīve run across many problems of this approach, mainly because Iīm starting to use mod_write's features, to provide my clients interessting adresses like http://www.mysite.com/products/DVDs (wich Apache, with my rule, rewrites to http://www.mysite.com/scripts/search.cgi?product=DVDs). The problems Iīve run into are these:
Problem #1 - The iFrame wonīt be there when mod_rewrite urls are entered. So, on the scripts that require it, my javascript login is useless. And my site useless too! And that doesnīt happen only when mod_rewrite urls are entered, but everytime the user clicks search-engines links to the inner scripts its spiders have compiled, you know?
Problem #2 - Also related to the absence of the iFrame: Iīve provided this beautifull link for the DVD section, but when the user clicks anything, there you have all the dirty urls out!
So I thought about suggesting you guys we make a little survey about the approach regarding this issue. Maybe we get to some consensus about it.
andre_br
Considered (talexb): Retitle: OT: Hiding ..
Unconsidered (holli): Enough keep votes (Keep/Edit/Delete: 4/10/2)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hiding Perl's Machine Room on the web
by thcsoft (Monk) on Jun 09, 2005 at 02:50 UTC | |
|
Frames and URL masking
by dorward (Curate) on Jun 09, 2005 at 08:56 UTC | |
by Andre_br (Pilgrim) on Jun 10, 2005 at 20:50 UTC |