Re: [advocacy] Firefox and HSBC Internet Banking

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Suchetha Wijenayake
Date:  
To: LKLUG Advocacy
Subject: Re: [advocacy] Firefox and HSBC Internet Banking
Anuradha Ratnaweera wrote:
> Hi all,
>
> Does anyone use Internet banking at HSBC? Looks like they support
> only IE. Any comments are mostly welcome.
>
> I am using Internet banking at Sampath (sampathnet) and works
> perfectly on Firefox.
>
>         Anuradha

>


hello all

sorry it took me so long to respond to this

i've been using hsbc e-banking for a while and here's what i've found

ebanking works with moz/ff on windows (2k last i checked)
works with konqueror on linux with browser spoofing enabled
does NOT work with moz/ff even with spoofing

the relevant code is below.

the important thing is, it looks to see if the browser is running on win
or mac but not linux. if that little section was fixed, we'd be sorted.

especially as tehre are probably more linux boxen in Sl than macs.

i had the HSBC ebanking head's number somewhere, i'll see if i can track
it down and get in touch with her

atb

Suchetha




browserchecking.js

// DoubleByteSupport Variable For Browser Checking

// If the site is supporting Single Byte language
// then
//    the browser type checking is
//    Net Communicator 4.5
//    IE 4.0
// else if the site is supporting Double Byte National Language
//
//    the browser type checking is
//    Net Communicator 4.72
//    IE 5.0


// if the site is supporting double byte, set the variable to TRUE.
// if the site is supporting single byte only, set the variable to FALSE;

var DoubleByteSupport = false;

and here is the javascript from the page itself

<SCRIPT LANGUAGE="JavaScript">
<!--

var pleaseWaitPage = null;

function closePSPage()
{
    if (pleaseWaitPage != null)
    {
        pleaseWaitPage.close();
    }
}



function redirect(link)
{
    window.open(link, "pop", "menubar=no, resizable = yes,
toolbar=no,directories=no,location=no,scrollbars=yes,status=yes,copyhistory=0");
}
function popup1(url)
{



            
window.open(url,'popupparent','top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=1,width=780,height=510');

}

    var submitForm = "no";
    function BrowserInfo()
    {
        document.User.BrowserInfo.value = navigator.appName;
    }
    function getPlatform()
    {
        if (navigator.platform.indexOf("Win") > -1 )
            return "Win";
        if (navigator.platform.indexOf("Mac") > -1 )
            return "Mac";

    
        return "neither";        
    }
    function isValidVersionNS(VersionNo)
    {
        var browserVersion = navigator.appVersion;
        var platform = getPlatform();

    


        //Netscape Communicator checking below
        if (DoubleByteSupport == true)
        {
            if ( (platform == "Win") && ( browserVersion.indexOf("Nav") == -1 ) &&
                 (parseFloat(VersionNo) >= 4.72) && (parseFloat(VersionNo) <
6.0) )
            {
                return true;
            }
        }
        else
        {
            if ( (platform == "Win") && ( browserVersion.indexOf("Nav") == -1 ) &&
                 (parseFloat(VersionNo) >= 4.5) && (parseFloat(VersionNo) <
6.0) )
            {
                return true;
            }
        }



        if ( (platform == "Mac") && (parseFloat(VersionNo) >= 4.0) &&
(parseFloat(VersionNo) < 6.0) )
        {
            return true;
        }

    
        return false;
    }
    function isValidVersionIE(VersionNo)
    {
        var platform = getPlatform();



        if (DoubleByteSupport == true)
        {
            if ( (platform == "Win") && (parseFloat(VersionNo) >= 5.0) )
            {
                return true;
            }
        }
        else
        {
            if ( (platform == "Win") && (parseFloat(VersionNo) >= 4.0) )
            {
                return true;
            }
        }




if ( (platform == "Mac") && (parseFloat(VersionNo) >= 4.0) )
        {
            return true;
        }

        
        return false;
    }
function isBrowserSupported()
{
        if( navigator.appName.indexOf("Netscape") > -1 ) //Netscape must
greater than version 4
        {
            browserVersion = navigator.appVersion;

    
            End = browserVersion.indexOf("[");  //for versions of Netscape < 6
            End1 = navigator.userAgent.lastIndexOf("Netscape6");

    
            if(End > -1)
                VersionNo = browserVersion.substring(0,End);
            else
                if (End1 == -1)
                    VersionNo = browserVersion.substring(0,browserVersion.indexOf("("));
                else
                {
                    VersionNo = navigator.userAgent.substring(End1+10,
navigator.userAgent.length);
                }

    
            return isValidVersionNS(VersionNo);
        }

    
        if((navigator.appName.indexOf("Microsoft")>-1)) //IE must greater than
verison 5
        {
            browserName = navigator.appVersion;
            VersionPos=browserName.lastIndexOf("MSIE") + 5;
            VersionNo = browserName.substring(VersionPos,VersionPos+1);

            
            return isValidVersionIE(VersionNo);
        }
        return false;
}



function validate()
{






    document.PasswordForm.PBN.value = document.PBNForm.PBN.value;
    document.PasswordForm.action =
'/servlet/com.hsbc.ebank.app.hib.base.HsbcHibServlet';




    //*2.0*/pleaseWaitPage = window.open("PleaseWait.jsp", "HSBCPopUp",
"width=443,height=132,x=100,y=100,resizable=no,menubar=no,toolbar=no,directories=no,location=no,scrollbars=no,status=no");


    /*2.0*/pleaseWaitPage = window.open("PleaseWait.jsp", "HSBCPopUp",
"width=505,height=132,x=100,y=100,resizable=no,menubar=no,toolbar=no,directories=no,location=no,scrollbars=no,status=no,hotkeys=no");




    formSubmitNoFrame(document.PasswordForm);


    if((navigator.appName.indexOf("Netscape")>-1)) //Netscape
    {
        if ((navigator.appVersion.indexOf("Macintosh")>-1)) //Netscape Macintosh
        {


    document.PBNForm.reset();
    document.PasswordForm.reset();
    document.PBNForm.PBN.disabled = true;
    document.PasswordForm.password.disabled = true;
        }
        else
        {


    document.PBNForm.reset();
    document.PasswordForm.reset();
    document.PBNForm.PBN.disabled = true;
    document.PasswordForm.password.disabled = true;
        }
    }
    if((navigator.appName.indexOf("Microsoft")>-1)) //IE
    {
        if ((navigator.appVersion.indexOf("Macintosh")>-1)) //IE Macintosh
//            document.User.UserID.reset();
        {}
        else
        {


    document.PBNForm.reset();
    document.PasswordForm.reset();
    document.PBNForm.PBN.disabled = true;
    document.PasswordForm.password.disabled = true;
        }
    }
    return;
}



function chgLocation(link)
{        
    submitForm="yes";
    location.replace(link);
    return;
}



function checkIfSubmitted(submitForm){
    if(submitForm=="yes"){
        submitForm="no";
        return true;
    }else{
        return false;
    }
}



function popUpSecTips(Lang)
{
var secwinname = "help";
if (Lang)
{
    var openedsecwin =
open('/Helptext/en/SecurityTips.htm',secwinname,'resizable=yes,height=400,width=650,left=0,top=0,scrollbars=yes');
}
else
{
    var openedsecwin =
open('/Helptext/zh/SecurityTips.htm',secwinname,'resizable=yes,height=400,width=650,left=0,top=0,scrollbars=yes');
}
openedsecwin.focus();
}


//-->
</SCRIPT>



- --
"We're not going to spend taxpayers' money on a program so that
Microsoft can further consolidate its monopoly. It's the government's
responsibility to ensure that there is competition, and that means
giving alternative software platforms a chance to prosper."
    - Sérgio Amadeu, president of Brazil's National Institute of
Information Technology