• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

window.open(), window title bar, and the POST method

 
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am opening a new window when someone logs in. The problem is the user name and password are appearing in the browser title bar because its doing a GET. How can I prevent the user accout info from appearing in the title bar? A POST perhaps?

Code...

<form action="" method="post" name="loginForm" onsubmit="submitLoginForm();return false;">


STANDARD_SCALE_DISPLAY_WIDTH = 1280;
STANDARD_SCALE_DISPLAY_HEIGHT =1024;
function openPopup(userName, pwd){
ref = window.open("popup.jsp?username="
+ userName +
"&password=" +
pwd,'P20Web',
"'left=0,toolbar=0,menubar=0,resizable=1,location=0,status=0,scrollbars=1,top=1"
+ ", width=" + STANDARD_SCALE_DISPLAY_WIDTH
+ ", height=" + STANDARD_SCALE_DISPLAY_HEIGHT + "'");

ref.moveTo(0, 0);
ref.focus();


}
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why would you need to hide that? Sure, I see that you have a password there, but that password is visible to anybody who displays the source of the page. It's already completely insecure.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't log in with the popup. Show the new window after logging in through the parent window. Or, display the login form in the popup.

This is all going to be SSL protected in the end, right?
 
reply
    Bookmark Topic Watch Topic
  • New Topic