homepage Welcome to WebmasterWorld Guest from 54.224.179.98
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
hide webpage with javascript?
rhodopsin




msg:1481311
 5:19 pm on Nov 30, 2004 (gmt 0)

The visitor starts on webpage A. Clicks on link - is redirected to webpage B. Webpage B has an automatic redirect to webpage C.

The visitor goes:
webpage A - webpage B - webpage C

The crux is that I want the visitor to get to webpage C, unaware that they have gone through webpage B.

Thus, I want the address in the url locator bar to be for webpage A at the start. Then move to that of webpage C, when the link is clicked. Without displaying the url of webpage B in the interim period.

HOW CAN I DO THIS? HELP!

I realise that there are flaws in the approach - but if someone could just suggest a way that I could stop Page B's url coming up in the locator bar. I would be very, very grateful.

Would be so grateful for any help.

 

adni18




msg:1481312
 9:56 pm on Nov 30, 2004 (gmt 0)

Try using frames.

Rambo Tribble




msg:1481313
 2:37 am on Dec 1, 2004 (gmt 0)

A visibility:hidden iframe might be simpler than a standard frames page. A loads in the top window, B loads in the hidden iframe and modifies top.window.location.href to load C in the parent.

rhodopsin




msg:1481314
 1:38 pm on Dec 1, 2004 (gmt 0)

Thanks guys.

Am currently reading up on iframes like crazy as I don't know much about them. One thing that worries me at this point is that in my system:

Page A - Page B - Page C

If I have Page B as an iframe - I must code for it in Page A.

I have some javascript code on Page B that I want to hide. I don't want the visitor to be aware of the existance of Page B - such that my javascript will be protected (somewhat).

If I must code for Page B on Page A - my javascript is on Page A. Is not protected in the fashion that I am hoping for.

Have I got this wrong?

rhodopsin




msg:1481315
 2:05 pm on Dec 1, 2004 (gmt 0)

I guess one possible solution would be if page B and page C have exactly the same url. However, I don't know anyway that this would be possible. A long shot - does anyone know? Bit pie in the sky maybe.

Rambo Tribble




msg:1481316
 2:05 pm on Dec 1, 2004 (gmt 0)

To have any real hope of hiding anything, you'll have to work with server-side scripts.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved