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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirection ...

Status
Not open for further replies.

iza

Programmer
Apr 4, 2000
1,804
FR
hi :)
i want to use redirection (either server side or client side) without changing the url in the toolbar ...
say i want to use only client jscript, my code is :
...
var fichier="test"+nb+".htm"
this.location.replace(fichier)
...

and i don't want the "test1.htm" (or test2.htm or anything but the 1st page url) to appear in the adress toolbar !!
is this possible ?
the only way i found is really really NOT elegant, it's to hide this in a 'false' frame, but it's kinda stupid ...
can anyone help ??? [sig][/sig]
 
I think the only way to do it is to use a frameset with jsut that frame inside it...

jared@aauser.com
 
thanx, that's what i tought but i hoped there was a more elegant way to do this ... :-I [sig][/sig]
 
It's quite easy using a server-side method. For example with PHP, one can just have a generic include($page_variable) function that takes a POSTed variable to determine which page to include in the index.php page of a site. Thus ALL browsing on the site could take place through 'index.php' (or just I don't know the exact syntax with ASP, or Perl, but I'm sure it's just about as easy. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top