Try this:

 

Insert Line 8

            /*  url scoped variables */

var qs = location.search.substring(1);

var nv = qs.split('&');

var url = "" Object();

for(i = 0; i < nv.length; i++){

eq = nv[i].indexOf('=');

url[nv[i].substring(0,eq).toLowerCase()] = unescape(nv[i].substring(eq +

1));

                          }

/* /url scoped variables */

 

Remove Line 88

            document.forms.Login.userid.focus();

 

Insert  After Function formSubmit() at line 103:

 

// AUTO LOGIN CODE HERE

function Get_Cookie(name) {

  var start = document.cookie.indexOf(name+"=");

  var len = start+name.length+1;

  if ((!start) && (name != document.cookie.substring(0,name.length))) return null;

  if (start == -1) return null;

  var end = document.cookie.indexOf(";",len);

  if (end == -1) end = document.cookie.length;

  return unescape(document.cookie.substring(len,end));

}

var myUserName = Get_Cookie('myICalUserName');

var myPassword = Get_Cookie('myICalPassword');

//alert(myUserName+myPassword)

 

function myLoad(){

            if(myUserName!=null && myUserName!='')

                        document.Login.userid.value=myUserName

            if(myPassword!=null && myPassword!='')

                        document.Login.passwd.value=myPassword

            //page load coming from webmail, auto-login to calendar   

            if(self.location.href.indexOf("autosubmit=true")>=0) {

                        if(document.all){

                                    document.all['loadDiv'].style.display = '';

                        } else if (document.getElementsById) {

                                    document.getElementsById('loadDiv').style.display = '';

                        }                      

                        document.Login.submit();

            } else {

                        if(document.all){

                                    document.all['formDiv'].style.display = '';

                        } else if (document.getElementsById) {

                                    document.getElementsById('formDiv').style.display = '';

                        }

                        document.forms.Login.userid.focus();

            }

}

 

 

 

Regards,
Richard Martin
Web Developer
State Bar of Arizona
[EMAIL PROTECTED]
www.azbar.org


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Gillis
Sent: Thursday, January 26, 2006 10:55 AM
To: [email protected]
Subject: RE: [IMail Forum] Imail and Web Calendaring Login Integration

 

Hi Richard,

 

Good parity item.  We have several requests for this and we are planning to add this in the next 1-2 months.

 

bye for now,

 

kg

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Richard Martin
Sent: Thursday, January 26, 2006 12:35 PM
To: [email protected]
Subject: [IMail Forum] Imail and Web Calendaring Login Integration

Trying to figure out how to make it so I can have a button in the Imail Web Messaging Interface that will automatically login the current user into web calendaring. Currently it loads the web calendaring login into the main frame.

 

Regards,
Richard Martin
Web Developer
State Bar of Arizona
[EMAIL PROTECTED]
www.azbar.org

 

Reply via email to