lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] Problems with logging into the Bank of America website


From: Thomas Dickey
Subject: Re: [Lynx-dev] Problems with logging into the Bank of America website
Date: Mon, 16 Jan 2006 19:39:57 -0500
User-agent: Mutt/1.3.27i

On Sun, Jan 15, 2006 at 11:42:25PM -0500, Leslie Fairall wrote:
> Ok, here is the lynx.trace. Hope this will help.

that was too large for the mailing list (128k max).  You could have
compressed it, but since the contents may be sensitive, I wouldn't
recommend that either.

However, the answer is in the trace - it's using javascript, and lynx
is not responding to that.

For instance

> function create_button(text, href, css_class, onclick_evt, onmouseover_evt, 
> onmouseout_evt, tabindex)
>  {
>    var t = "";
>    if (( document.getElementById )||( document.all ))
>    {
>               // browser implements part of W3C DOM HTML
>               // Gecko, Internet Explorer 5+, Opera 5+
>               // Internet Explorer 4 or Opera with IE user agent
>               t = "<div class=" + css_class + "><a title=\"" + text + "\" 
>               href=\"" + href + "\" class=" + css_class
>                 + " onFocus='hover(this, \"" + css_class + "-over\")'"
>                 + " onBlur='hover(this, \"" + css_class + "\")'";
> 
>               if (onclick_evt) { t = t + " onClick=\"" + onclick_evt + 
>               "\""; }
>               if (onmouseover_evt) { t = t + " onMouseOver=\"" + 
>               onmouseover_evt + "\""; }
>               if (onmouseout_evt) { t = t + " onMouseOut=\"" + 
>               onmouseout_evt + "\""; }
>               if (tabindex) { t = t + " tabindex=\"" + tabindex + "\""; }
>               t = t + ">" + text + "<\/a><\/div>";
> 
>       }
>    else
>    {
>               // Netscape 4
>               t = "<table border=0 cellpadding=0 cellspacing=0 
>               summary=\"\" class=" + css_class + "><tr><td width=2 
>               rowspan=2 class=" + css_class + "-left><img 
>               src=\"images/clr.gif\" alt=\"\" width=2 height=2><\/td><td 
>               class=" + css_class + "-top><img src=\"images/clr.gif\" 
>               alt=\"\" width=1 height=2><\/td><td width=2 rowspan=3 
>               class=" + css_class + "-right><img src=\"images/clr.gif\" 
>               alt=\"\" width=2 height=2><\/td><\/tr><tr><td><div class=" + 
>               css_class + "style=\"padding: 1px 3px 1px 3px;\"><a 
>               title=\"" + text + "\" href=\"" + href + "\" class=" + 
>               css_class
>                 + " onFocus='hover(this, \"" + css_class + "-over\")'"
>                 + " onBlur='hover(this, \"" + css_class + "\")'";
> 
>               if (onclick_evt) { t = t + " onClick=\"" + onclick_evt + 
>               "\""; }
>               if (onmouseover_evt) { t = t + " onMouseOver=\"" + 
>               onmouseover_evt + "\""; }
>               if (onmouseout_evt) { t = t + " onMouseOut=\"" + 
>               onmouseout_evt + "\""; }
>               if (tabindex) { t = t + " tabindex=\"" + tabindex + "\""; }
>               t = t + ">" + text + "<\/a><\/div><\/td><\/tr><tr><td 
>               colspan=2 class=" + css_class +  "-right><img 
>               src=\"images/clr.gif\" alt=\"\" width=1 
>               height=2><\/td><\/tr><\/table>";
>       }
>       document.write(t);
>  }
> 
>  function hover(ref, classRef) { eval(ref).className = classRef; }
> 
> 
> 
> var platform= navigator.platform.toLowerCase(); // Operating system
> var appName = navigator.appName;                // Browser name
> var appVer= parseInt(navigator.appVersion);     // Browser versionnumber
> 
> // set the correct style sheet for the browser
> function checkBrowser(doc)
> {
>     if (platform.indexOf("win") != -1)  // Windows platform
>     {
>         if (appName == "Netscape" && appVer >= 5) // Netscape 6.x
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/win_ns6.css">');
>         }
>         else if (appName == "Netscape" && appVer >= 4) // Netscape 4
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/win_ns4.css">');
>         }
>         else if (appName == "Microsoft Internet Explorer" && appVer >= 4 && 
>         navigator.appVersion .indexOf("MSIE 4") != -1) // IE 4.x
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/win_ie4.csss">');
>         }
>         else if (appName == "Microsoft Internet Explorer" && appVer >= 4) 
>         // IE 4.x +
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/win_ie.css">');
>         }
>         else if (appName == "Opera")  // Opera 5.x, 6.x
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/win_opera.css">');
>         }
>         else  // All other win browsers
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/win_ie.css">');
>         }
>     }
>     else if (platform.indexOf("mac") != -1)    // Mac platform
>     {
>         if (appName == "Netscape" && appVer >= 5) // Netscape 6.x
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/mac_ns6.css">');
>         }
>         else if (appName == "Netscape" && appVer >= 4) // Netscape 4
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/mac_ns4.css">');
>         }
>         else if (appName == "Microsoft Internet Explorer" && appVer >= 4) 
>         // IE 4.x
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/mac_ie.css">');
>         }
>         else if (appName == "Opera")  // Opera 5.x, 6.x
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/mac_ie.css">');
>         }
>         else  // All other browsers
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/mac_ie.css">');
>         }
>     }
>     else if (platform.indexOf("os2") != -1)    // os2 platform
>     {
>         if (appName == "Netscape" && appVer >= 4) // Netscape 4
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/os2_ns4.css">');
>         }
>         else
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/win_ie.css">');
>         }
>     }
>     else    // all other platforms
>     {
>         if (appName == "Netscape" && appVer >= 4) // Netscape 4
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/mac_ns4.css">');
>         }
>         else
>         {
>             doc.writeln('<link rel="stylesheet" type="text/css" 
>             href="/eas-docs/images/win_ie.css">');
>         }
>     }
> }

...

> function checkForCookies()
> {
>       var today = new Date();
>       var expire = new Date();
>       expire.setTime(today.getTime() + 3600000 * 24);
>       document.cookie = "cookieEnabledPersist=true; expires=" + 
>       expire.toGMTString();
>       document.cookie = "cookieEnabledSession=true";
>       var cookieString = ""+document.cookie;
>       if (cookieString.indexOf("cookieEnabledPersist")==-1 || 
>       cookieString.indexOf("cookieEnabledSession")==-1)
>       {
>               document.location.href = 
>               "/cgi-bin/sso.login.controller?state=GA&reason=noCookie";
>       }
> }
> 
> function loadGating()
> {
>       checkForCookies();
> }

...

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]