Hello my code friends,

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)


In reply to Hiding Perl's Machine Room on the web by Andre_br

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.