Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: LWP Redirection Problem

by zaimoni (Beadle)
on Sep 03, 2002 at 03:04 UTC ( [id://194674]=note: print w/replies, xml ) Need Help??


in reply to LWP Redirection Problem

Let's see....

1. The browser shows the URL of my program rather than the external CGI program.

Fake it. That's what the <title> tag is for. Try

<title>WantThisURLInSight</title>

2. The relative URLs within the displayed content are all broken as the browser is interpreting them as relative to my program.

As several other posts have already explained in detail, the standard HTML for this uses the <base> tag.

Replies are listed 'Best First'.
Re^2: LWP Redirection Problem
by Aristotle (Chancellor) on Sep 03, 2002 at 13:15 UTC
    <title> won't affect what the browser displays in its address bar.

    Makeshifts last the longest.

      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!

Log In?
Username:
Password:

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

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

    No recent polls found