Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: LWP Redirection Problem

by Aristotle (Chancellor)
on Sep 03, 2002 at 13:15 UTC ( [id://194756]=note: print w/replies, xml ) Need Help??


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

<title> won't affect what the browser displays in its address bar.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re^2: LWP Redirection Problem
by zaimoni (Beadle) on Sep 03, 2002 at 22:34 UTC

    True. However, the address bar can be removed with JavaScript: tell

    window.open(URL,WindowName,ConfigString)

    to delete it with

    location=no

    in the ConfigString. Of course, there are several other parameters to set location to that have equivalent effect.

      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!

        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.

        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://194756]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found