phpPgAdmin - Login disallowed

by GarciaPL on Saturday 21 December 2013

Few days ago I had pleasure to install on my web server called XAMPP delivered by Apache Friends one of the management tool for PostgreSQL called PhpPgAdmin. I must to say that installation is very easy, all you have to do is to put extracted files of this tool to htdocs folder, edit config located on phpPgAdmin/conf/config.inc.php and just run index.php through your web browser.

Unfortunately in my case there was some issue with connecting to PostgreSQL database. I had message something like "Login disallowed". I spent a lot of time to figure out the right solution, which I am going to share with you.

Just go to file on this path - phpPgAdmin/conf/config.inc.php and just change

$conf['extra_login_security'] = true


on


$conf['extra_login_security'] = false



Reference : [1] PhpPgAdmin Home Page [2] XAMPP Home Page

jQuery 1.6+ Change attr to prop

by GarciaPL on Saturday 7 December 2013

In the last days I was working on project which used one of the most powerful Javascript library jQuery in version 1.4.4. Yes, I know this version of jQuery is quite outdated. So, we decided to change it into jQuery 1.6.1. We expected some problems with change of library version, but what we discovered during looking for application errors was the change of handling of attributes and DOM object properties. I mean change function .attr to .prop

Before when we used jQuery 1.4.4 it was :


        jQuery 1.4 attr
        
        
    
    
        
        
    

Starting from jQuery 1.6+ it is :

        jQuery 1.6 prop
        
        
    
    
        
        
    



Reference : [1] Bugs.jquery.com Ticket 9088 [2] Ejohn.org - jQuery 1.6 and attr