Go Back  FlyerTalk Forums > Travel&Dining > Travel Technology
Reload this Page >

Why is the Chase Secure Message Center pop-up window so small?

Community
Wiki Posts
Search

Why is the Chase Secure Message Center pop-up window so small?

Thread Tools
 
Search this Thread
 
Old Jan 11, 2015, 10:08 am
  #1  
swy
Original Poster
 
Join Date: Jul 2008
Programs: Greyhound Vermillion Mithril
Posts: 693
Why is the Chase Secure Message Center pop-up window so small?

Why is the Secure Message Center pop-up at chase.com so small? I can't see any advantage of that.

What's even more annoying is that it insists to resize itself to be a tiny window. Even if you make it bigger, every time you click on one of the folders, "Compose Message", or choose something from a drop-down menu it resizes itself back.

It looks like the relevant code is located at https://messagecenter.chase.com/smcP...window_size.js

Code:
function resizeWindow(requiredWidth)
{
    if(document.documentElement &&
       (document.documentElement.offsetWidth ||
        document.documentElement.offsetHeight))
    {  
        isIe = true; 
        //IE 6+ in 'standards compliant mode'
        myWidth = document.documentElement.offsetWidth;
        myHeight = document.documentElement.offsetHeight;

    }
    else if (document.body &&
               (document.body.offsetWidth || document.body.offsetHeight ) )
    {
        isIe = true;  
        //IE 4 compatible
        myWidth = document.body.offsetWidth;
        myHeight = document.body.offsetHeight;
    }   
     
    if (isIe)
    {    
        // i think the extra 4 pixesl in offsetWidth is the window borders
        var currentWidth = myWidth - 4;
		myHeight="504";
		requiredWidth="649";
		//alert("currentWidth= mywidth("+myWidth+") - 4="+currentWidth  )
   
        if (currentWidth < requiredWidth)
        {
		
            // window.resizeBy((requiredWidth - currentWidth), 0);
			window.resizeTo(requiredWidth,myHeight);
        }
		
	if (currentWidth > requiredWidth)
        {
	     window.resizeTo(requiredWidth, myHeight);

	}


		//alert("Exit from resizeWindow")
    }
}
I am not a web developer, please correct me if I am wrong. It looks like (among other weird things) it sets isIe to true for everyone, regardless of whether you are using IE or not; then it sets the width to 649, ignoring the argument to the function resizeWindow().

Besides bad UI, the code simply looks unprofessional, and not very up-to-date.
/end rant
swy is offline  


Contact Us - Manage Preferences - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.