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.