HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 19th, 1999, 03:35 PM
Showbiz999
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I am trying to launch a web page from another but I need to hide the URL from appearing in the ocation box on the browser. The page I am trying to launch requires an ID and password to access and there are times when I need to feed those for the user. I can place it in the URL string, but then the user can see it when it programatically appears in the location box. Any ideas . . . Thanks!

Reply With Quote
  #2  
Old August 20th, 1999, 10:59 AM
dahamsta
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
First of all, just hiding the URL doesn't stop someone who know the basic of HTML viewing the source and seeing the username and password. If you want to do it *really* securely, use Perl or CGI to do this.

However, if it's not all *that* important, just use JavaScript to pop a new window sans Location bar:

This goes in the head:

<script language="JavaScript">
<!-- Hide
function openWindow() {
popupWin = window.open('http://your.url/here','WindowName','menubar,toolbar,directories,status,scrollbars,resizable,width=640,height=480');
}
// End Hiding -->
</script>

You can remove other toolbars by just removing the references to them.

Then call that script using something like:

<a href="javascript: openWindow()">Link Text</a>

adam

[This message has been edited by dahamsta (edited 08-20-99).]

Reply With Quote
  #3  
Old August 20th, 1999, 11:27 AM
Showbiz999
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Adam:

Thanks . . . that should probably suffice for this implementation. One more question? Is there a way to close that window, either programatically or via a button (or both)?

Thanks again . . .

Reply With Quote
  #4  
Old August 20th, 1999, 05:05 PM
dahamsta
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Sure. The JavaSctipt function for closing a window is simply close(). So if you're trying to close the window from itself, use self.close(), for example:

<a href="javascript:self.close()">Close this window</a>

If you want to close that window from another window, use the name you called it in the original function. Using the code I gave you as a sample, the window is called "WindowName" (the second attribute), so you would close it from the original page like this:

<a href="WindowName.close()">Close the popup window</a>

Ok?

adam

Reply With Quote
  #5  
Old September 12th, 1999, 01:18 PM
lacey
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Another option is to set up a frames page with the parent frame having the spoof URL, one frame with * rows with another spoof URL, and then pull the real page with 100% rows.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Launching a web page without displaying the URL in the Location box


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway