1. #21
    Sencha User
    Join Date
    Mar 2012
    Posts
    2
    Vote Rating
    0
    ThisIsCool is on a distinguished road

      0  

    Default Type Error

    Type Error


    Hello

    I tried the SqliteProxy , both ST1 & ST2.

    ST1 runs perfect, really nice, just what I'm looking for, thank you very much.

    But when running the demo for the ST2 version, I got Type Error, on SqliteProxy.js 137.

    I'm using the ST2 RC, is SqliteProxy v2 broken under this ST2 RC?

    Thank you very much.

  2. #22
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    San Jose, CA
    Posts
    589
    Vote Rating
    16
    tomalex0 will become famous soon enough

      0  

    Default


    Hi All,

    I was quite busy with my works, i'm working on this proxy compatible for STRC2, there were some roadblocks while porting. Hopefully i can finish it in couple of days. But i'm not sure how good it gonna work.

    One limitation as of for now is
    if we have table field name as "id" which is a primary key, we will have to mention a dummy name(not a field in table) as idProperty of model and clientIdProperty as "id". The issue is that default idProperty of model is "id" which will always have value like this "ext-record-x". If mentioned config options are not specified in model, id value in table will be like ext-record-1,2,3. But we expect it as integer.

    http://docs.sencha.com/touch/2-0/sou...Ext-data-Model look for setId this actual adds idProperty("id") to model even if we are not specifying id as field option.

    I'm looking into possibility to avoid this config dependency.
    Sencha Touch Demos

    IosToggleField Forum - Github
    Form Validation
    Forum - Github
    Iphone Settings Menu
    Forum
    Sqlite Storage & Login Manifest
    Forum
    KitchenSink MVC
    Forum - Github
    SqliteProxy-v1 Forum - Github
    SqliteProxy-v2
    Forum - Github
    Arshaw Fullcalendar Forum - Github






  3. #23
    Sencha User
    Join Date
    Mar 2012
    Posts
    2
    Vote Rating
    0
    ThisIsCool is on a distinguished road

      0  

    Default


    Hi tomalex

    Thank you for your reply. Looking forward to your update.

    For now as a temporary fix, I used what anhnt3 posted, to init dbConn again, and somehow got it to work.

    Thanks.

  4. #24
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    San Jose, CA
    Posts
    589
    Vote Rating
    16
    tomalex0 will become famous soon enough

      0  

    Default


    Hi

    I have updated github with latest change, please have a look
    Sencha Touch Demos

    IosToggleField Forum - Github
    Form Validation
    Forum - Github
    Iphone Settings Menu
    Forum
    Sqlite Storage & Login Manifest
    Forum
    KitchenSink MVC
    Forum - Github
    SqliteProxy-v1 Forum - Github
    SqliteProxy-v2
    Forum - Github
    Arshaw Fullcalendar Forum - Github






  5. #25
    Sencha User
    Join Date
    Nov 2011
    Posts
    6
    Vote Rating
    0
    MauiRa is on a distinguished road

      0  

    Default Does not seem to work on IOS 5.X or in Safari 5.1.2

    Does not seem to work on IOS 5.X or in Safari 5.1.2


    When I run your sample app in Safari 5.1.2, which is what the latest IOS uses, I get this error:

    TypeError: Type error SqliteProxy.js:128

    Here is where it errors:


    The native code seems to reject the callback function. This works in this browser with Sencha Touch 1.1.

    me.dbConfig.dbConn.transaction(function(tx) {

    var onError = function(tx, err) {
    me.throwDbError(tx, err);
    };

    var onSucess = function(tx, results) {
    console.log("success");
    }

    var createTable = function() {
    var createsql = 'CREATE TABLE IF NOT EXISTS ' + me.dbConfig.tablename + '('+me.constructFields()+')';
    tx.executeSql(createsql,[],onSucess,onError);
    }
    var tablesql = 'SELECT * FROM '+ me.dbConfig.tablename+' LIMIT 1';
    tx.executeSql(tablesql,[], Ext.emptyFn, createTable);
    });[IMG]file:///C:/Program%20Files%20(x86)/Common%20Files/Apple/Apple%20Application%20Support/WebKit.resources/inspector/Images/errorIcon.png[/IMG]SqliteProxy.js:128TypeError: Type error





  6. #26
    Sencha User
    Join Date
    Feb 2012
    Posts
    7
    Vote Rating
    0
    die_for_rock_vn is on a distinguished road

      0  

    Default


    Does anyone try Sqlite proxy + phonegap 1.5 in iOS? I make it works in android but doesn't work in iOS.

  7. #27
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    San Jose, CA
    Posts
    589
    Vote Rating
    16
    tomalex0 will become famous soon enough

      0  

    Default


    Hi
    I have looked into the issue with proxy not working in safari 5, somehow the reference to database object in safari is changed, Can anyone test sqliteproxy in safari 4 ?


    If you look into below two images, where ""Reference" is database object passed with model
    and "Freshly Created" is new database created using openDatabase function inside the proxy . Comparing both objects its seen that the passed database config is considered only as a simple object in safari 5, but it should be a database object.


    I'm not sure where it is going wrong,

    Safari
    safari.jpg


    Chrome
    chrome.jpg
    Sencha Touch Demos

    IosToggleField Forum - Github
    Form Validation
    Forum - Github
    Iphone Settings Menu
    Forum
    Sqlite Storage & Login Manifest
    Forum
    KitchenSink MVC
    Forum - Github
    SqliteProxy-v1 Forum - Github
    SqliteProxy-v2
    Forum - Github
    Arshaw Fullcalendar Forum - Github






  8. #28
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    San Jose, CA
    Posts
    589
    Vote Rating
    16
    tomalex0 will become famous soon enough

      0  

    Default


    Hi,
    Please get latest code from github, issue related to safari is fixed.
    Sencha Touch Demos

    IosToggleField Forum - Github
    Form Validation
    Forum - Github
    Iphone Settings Menu
    Forum
    Sqlite Storage & Login Manifest
    Forum
    KitchenSink MVC
    Forum - Github
    SqliteProxy-v1 Forum - Github
    SqliteProxy-v2
    Forum - Github
    Arshaw Fullcalendar Forum - Github






  9. #29
    Sencha User
    Join Date
    Feb 2012
    Posts
    7
    Vote Rating
    0
    die_for_rock_vn is on a distinguished road

      0  

    Default


    working in safari and iOS with Phonegap.
    Best regards.

  10. #30
    Sencha User
    Join Date
    Nov 2011
    Posts
    6
    Vote Rating
    0
    MauiRa is on a distinguished road

      0  

    Default Works great now.

    Works great now.


    It works perfectly with Safari 5.X now. Thanks for your quick solution!

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi