Link to home
Start Free TrialLog in
Avatar of wibblewobble10
wibblewobble10

asked on

Network credentials

I have a pop up window which loads the exchange add new appointment window, however when this loads it requires a username and password.

Is there anyway to pass across the username and password to save the user entering these.

This is the code i use to load the pop up

function addappointment()
{
var username = document.getElementById("username").value;
var pagelink = 'http://192.168.0.14/exchange/' + username + '/Calendar/?Cmd=new';

newwindow=window.open(pagelink,'name','height=600,width=600,resizable=yes,scrollbars=yes,toolbar=no,status=yes');
      if (window.focus) {newwindow.focus()}

}


Thanks
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Not tested but worth a try:

function addappointment(){
   var username = document.getElementById("username").value;
   var pwd = "topsecret";
   var pagelink = 'http://"+username+":"+pwd+"@192.168.0.14/exchange/' + username + '/Calendar/?Cmd=new';

   newwindow=window.open(pagelink,'name','height=600,width=600,resizable=yes,scrollbars=yes,status=yes');
   newwindow.focus()
}


Avatar of wibblewobble10
wibblewobble10

ASKER

Unfortunately that does not work, that was something i tried first.

Thanks for your attempt
ASKER CERTIFIED SOLUTION
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Apparently this feature of inserting the username and password into the query string has been disabled by microsoft on IE5 and above, has anyone got any suggestions

Thanks