Active Topics

 



Notices


Reply
Thread Tools
Posts: 426 | Thanked: 1,812 times | Joined on Dec 2013
#61
Update:
I worked on some stuff the last couple of days. Unfortunately I still don't get the whole cookie stuff (they changed a lot here between Qt4 and 5).
What I could get to work is clearing cookies by simply removing the file that stores the cookies on the filesystem. This needs however a restart which is currently triggered in the code.

To sum up the new features/fixes:
  • Fixed getting some links (especially relative ones) from site on longpress
  • Fixed requesting new page links that don't use _blank target
  • New default behavior "Open in New Tab" will open tab in background
  • Added set default search engine
  • Added a new icon based upon the one from Morpog (thx for that)
  • Added clear cookies to settings (in PullDown Menu)
  • Changed AddBookmark and settings to Dialog
  • Save userAgentName and use it as default for AddBookmarks aswell
  • Added 'Open in New Window'

RPM Download as usual from openrepos.net: https://openrepos.net/sites/default/....armv7hl_0.rpm

It takes a few days for the harbour version to be updated I guess.
__________________
Donation for my sailfish apps via PayPal

Donate using Liberapay

Last edited by llelectronics; 2014-01-16 at 21:56.
 

The Following 12 Users Say Thank You to llelectronics For This Useful Post:
Posts: 168 | Thanked: 143 times | Joined on Nov 2012
#62
I can't remove default bookmarks. They reappear on every launch.
 
Posts: 705 | Thanked: 300 times | Joined on May 2011
#63
what is that thing in the center of the earth? Remove it please?
 
Posts: 189 | Thanked: 143 times | Joined on Nov 2009
#64
It should be the eye of a cat I think. But for me it looks more like a lizard eye.
 

The Following User Says Thank You to MaemoUser For This Useful Post:
Morpog's Avatar
Posts: 956 | Thanked: 2,628 times | Joined on Nov 2011
#65
 

The Following 2 Users Say Thank You to Morpog For This Useful Post:
Posts: 16 | Thanked: 2 times | Joined on Dec 2013
#66
Google's mobile site doesn't work, anyone else experiencing same issue?

Cool browser otherwise. And new icon looks awesome.
 
Posts: 1,335 | Thanked: 3,931 times | Joined on Jul 2010 @ Brittany, France
#67
Originally Posted by youmeego View Post
what is that thing in the center of the earth? Remove it please?
I like it as it is. The icon is very good for an application named Webcat, in my opinion.
 

The Following User Says Thank You to Kabouik For This Useful Post:
Posts: 426 | Thanked: 1,812 times | Joined on Dec 2013
#68
Originally Posted by phuig View Post
Google's mobile site doesn't work, anyone else experiencing same issue?

Cool browser otherwise. And new icon looks awesome.
Google.com working fine.
G+ also.
If you have problems try another user agent maybe. Google is a bitch when it comes to blocking out some browsers who don't tell them to be android or ios.

I can't remove default bookmarks. They reappear on every launch.
That is normal.
It is not possible to delete them currently. I need to take a look on how provide default bookmarks with the ability to delete them. It seems not as easy as it sounds
__________________
Donation for my sailfish apps via PayPal

Donate using Liberapay
 

The Following 2 Users Say Thank You to llelectronics For This Useful Post:
Posts: 752 | Thanked: 2,808 times | Joined on Jan 2011 @ Czech Republic
#69
Originally Posted by llelectronics View Post
I need to take a look on how provide default bookmarks with the ability to delete them. It seems not as easy as it sounds
Need a hint?

Here is my version of the db.transaction() function you have in your db.js

Code:
db.transaction(function(tx){
                    tx.executeSql('CREATE TABLE IF NOT EXISTS settings(key TEXT UNIQUE, value TEXT)');
                    var table  = tx.executeSql("SELECT * FROM settings");
                    // Insert default values
                    if (table.rows.length === 0) {
                        tx.executeSql('INSERT INTO settings VALUES(?, ?)', ["region", qsTr("1")]);
                        tx.executeSql('INSERT INTO settings VALUES(?, ?)', ["forecastIndex", 0]);
                        tx.executeSql('INSERT INTO settings VALUES(?, ?)', ["hidePush", 1]);
                    };
                });
The following code is how it is done (in your case, replace 'settings' with 'bookmarks'). Default bookmarks are going to reappear only if the bookmark database is empty.

Code:
var table  = tx.executeSql("SELECT * FROM settings");
if (table.rows.length === 0) {
...
}
It is convenient to load the bookmarks on the first run as well as the settings (I see that your 'default settings' loading is a bit different, but I see this as a more elegant way).

In case of settings, I just put following code in the main qml file:

Code:
function getSetting(key) {
            openDB();
            var res = "";
            db.transaction(function(tx) {
                var rs = tx.executeSql('SELECT value FROM settings WHERE key=?;', [key]);
                res = rs.rows.item(0).value;
            });
            return res;

        Component.onCompleted: {
            region = getSetting('region');
            forecastIndex = getSetting('forecastIndex');
            hidePush = getSetting('hidePush');
        }
I hope this helps

I really need to open source my app as soon as I have time to do it - this code posting is tiring

Last edited by nodevel; 2014-01-17 at 13:40.
 

The Following User Says Thank You to nodevel For This Useful Post:
Posts: 426 | Thanked: 1,812 times | Joined on Dec 2013
#70
Thanks that looks very interesting. I will take a look at it when I have time next week.
__________________
Donation for my sailfish apps via PayPal

Donate using Liberapay
 
Reply

Tags
browser, webbrowser


 
Forum Jump


All times are GMT. The time now is 02:42.