Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re^2: LWP Redirection Problem

by Georgio (Sexton)
on Sep 08, 2002 at 18:23 UTC ( [id://196067]=note: print w/replies, xml ) Need Help??


in reply to Re: Re^2: LWP Redirection Problem
in thread LWP Redirection Problem

Thank you very much - for good idea!

I'm not familiar with JavaScript's, can you tell me something more about that - some JavaScript for replacing content of address bar, with new 'fake'-link?

Thanks!

Replies are listed 'Best First'.
Re^5: LWP Redirection Problem
by Aristotle (Chancellor) on Sep 09, 2002 at 12:10 UTC
    That trick will not do anything to the content of the address bar, merely make the address bar itself invisible. Note that any decent browser, such as Opera, allows the user to reenable the address bar. Also don't forget the users who have sensibly disabled Javascript or the few (even more sensible ones ;^) ) who are using a Javascript-less browser such as links or w3m.

    Makeshifts last the longest.

Re: Re: Re: Re^2: LWP Redirection Problem
by zaimoni (Beadle) on Sep 11, 2002 at 22:06 UTC

    Please excuse my delay in getting back to you.

    I do not propose to change the address bar: as has been noted by others, that would require a POST redirect which is not well-supported by the major web browsers.

    Rather, I propose to hide the address bar entirely (if the user permits). The following example is for my virtual domain's index page:

    <a href="http://www.zaimoni.com/" target="_blank" OnClick="window.open('http://www.zaimoni.com', '_blank', 'location=no,scrollbars=yes'); return false">Zaimoni.com</a>

    The above works in both IE5.5 and NS4.79. Since NS6.xx works much like IE5.5, I expect it to work in both NS6.xx and NS7.

    In any case, the page opens in a new window if that is supported. Resizing is problematic (I tested that variant), so I would not even consider fixed-width design. The scrollbars=yes fragment tells the web browser to use scrollbars if necessary.

    If JavaScript is enabled, the address bar is completely suppressed; only the content of the title tag (the desired URL; <title>http://www.mydomain.com/mypath.pl</title>) will be visible. If JavaScript is disabled/not supported, the address bar will be visible.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://196067]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2025-03-26 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (68 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.