Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Header bar display

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
GB
When using a link to a script which outputs HTML eg.
Code:
[URL unfurl="true"]http://www.mysite.com/script.pl?mod=23&frank=4&trek=abid[/URL]
Is it possible to display just
Code:
[URL unfurl="true"]http://www.mysite.com[/URL]
in the address bar?

Keith
 
Yeah, it's called using the POST method instead of GET, but it involves using forms.

(I wrote a JavaScript once where you could add an onClick to every link on your page, or add a special class and the JS would do it on the fly for every link, etc., where clicking a link would have JavaScript dynamically create a new form and fill in all the fields and submit it via POST).

I dunno if I still have the script laying around.

Alternatively you can use cookies, which might be a simpler option. But it all depends on what you need to accomplish.

Cuvou.com | My personal homepage
Code:
perl -e '$|=$i=1;print" oo\n<|>\n_|_";x:sleep$|;print"\b",$i++%2?"/":"_";goto x;'
 
Actually, even using POST instead of GET, it'd still show "mysite.com/script.pl", just without the parameters. You could do some Apache mod_rewrite sorcery to get around that, or name your script.pl as index.pl or index.cgi instead and make sure it's set up as one of the DirectoryIndex options.

Cuvou.com | My personal homepage
Code:
perl -e '$|=$i=1;print" oo\n<|>\n_|_";x:sleep$|;print"\b",$i++%2?"/":"_";goto x;'
 
Hi

Also depends on how much you want to break the site's navigability, keeping away bots and disabled visitors.

Still stupid idea, but maybe the less harmful is to force the display of documents in a frameset.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top