Problem with Phonegap & Sqlite

34 views
Skip to first unread message

Mekzid

unread,
May 26, 2011, 9:30:44 PM5/26/11
to phonegap
Hi there ,

We are looking for an application for iphone and i"m using phonegap as
a framework.
I hve a problem with Sqlite the pricipalee role of sqlite and how it
works exactely ... I am a Beginner in this domain, so thank you for
giving me the key steps for the creation of the database Sqlite, and
Integration into phonegap :)

Have a nice weekend

Simon MacDonald

unread,
May 27, 2011, 7:55:07 AM5/27/11
to phon...@googlegroups.com
http://docs.phonegap.com/phonegap_storage_storage.md.html#Storage

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>

--
Simon Mac Donald
http://hi.im/simonmacdonald

mek zid

unread,
May 27, 2011, 9:51:17 PM5/27/11
to phon...@googlegroups.com
such informations is not clear. please you can help me step by step because i'm begginer in phonegap & iPad application developpment

Best regards & have a nice weekend

2011/5/27 Simon MacDonald <simon.m...@gmail.com>

kiang

unread,
May 28, 2011, 1:49:43 AM5/28/11
to phon...@googlegroups.com
Check the source code of this project:

---
kiang

mek zid

unread,
May 29, 2011, 1:42:41 PM5/29/11
to phon...@googlegroups.com
Thank mate !
But how display results on elumateur of iPad i Xcode , not on console

Thanks

2011/5/28 kiang <kia...@gmail.com>
--

mek zid

unread,
Jun 1, 2011, 4:55:46 PM6/1/11
to phon...@googlegroups.com
Need a help please !

for displaying results on consol we use consol.log , i need the function of displaying results on emulator please !

Best regards.

2011/5/29 mek zid <mekz...@gmail.com>

Phil

unread,
Jun 1, 2011, 5:02:05 PM6/1/11
to phonegap
Are you asking how to do a user interface in HTML / JavaScript / CSS?
If so, you can use Dashcode, which is included with Xcode. You might
find this helpful:

http://web.me.com/macpgmr/ObjP/MacXPlatform_Part9.html

Thanks.

-Phil


On Jun 1, 4:55 pm, mek zid <mekzi...@gmail.com> wrote:
> Need a help please !
>
> for displaying results on consol we use consol.log , i need the function of
> displaying results on emulator please !
>
> Best regards.
>
> 2011/5/29 mek zid <mekzi...@gmail.com>

mek zid

unread,
Jun 1, 2011, 5:10:56 PM6/1/11
to phon...@googlegroups.com
Thanks for answer Mr Phil ,

i create a table with sqlite and i would like to display it on emulator with phoegap , i'm displaing it on xcode consol with consiole.log but i would like to display it on xcode emulator but i can't find the correct funtion to do it !

Thanks

2011/6/1 Phil <Mac...@fastermac.net>

mek zid

unread,
Jun 1, 2011, 5:17:36 PM6/1/11
to phon...@googlegroups.com
I'm using this code : http://docs.phonegap.com/phonegap_storage_storage.md.html#Storage

and this function :

function querySuccess(tx, results) {
        var len = results.rows.length;
        console
.log("DEMO table: " + len + " rows found.");
       
for (var i=0; i<len; i++){
            console
.log("Row = " + i + " ID = " + results.rows.item(i).id + " Data =  " + results.rows.item(i).data);
       
}
   
}


==> I need the function that we can displaing result on xcode emulator not on consol


2011/6/1 mek zid <mekz...@gmail.com>

Nick McCloud

unread,
Jun 1, 2011, 6:32:50 PM6/1/11
to phonegap
If you mean display on the screen of the device/emulator, why not try
swapping console.log to document.write



On Jun 1, 10:17 pm, mek zid <mekzi...@gmail.com> wrote:
> I'm using this code :http://docs.phonegap.com/phonegap_storage_storage.md.html#Storage
>
> and this function :
>
> function querySuccess(tx, results) {
>
>         var len = results.rows.length;
>         console.log("DEMO table: " + len + " rows found.");
>         for (var i=0; i<len; i++){
>             console.log("Row = " + i + " ID = " +
> results.rows.item(i).id + " Data =  " + results.rows.item(i).data);
>         }
>     }
>
> ==> I need the function that we can displaing result on xcode emulator
> not on consol
>
> 2011/6/1 mek zid <mekzi...@gmail.com>
>
>
>
> > Thanks for answer Mr Phil ,
>
> > i create a table with sqlite and i would like to display it on emulator
> > with phoegap , i'm displaing it on xcode consol with consiole.log but i
> > would like to display it on xcode emulator but i can't find the correct
> > funtion to do it !
>
> > Thanks
>
> > 2011/6/1 Phil <MacP...@fastermac.net>

mek zid

unread,
Jun 2, 2011, 6:21:14 PM6/2/11
to phon...@googlegroups.com
Document.write not working , it display an empty page !

2011/6/1 Nick McCloud <ni...@descartes.co.uk>

mek zid

unread,
Jun 2, 2011, 7:02:37 PM6/2/11
to phon...@googlegroups.com
Document.write not working , it display an empty page !

2011/6/2 mek zid <mekz...@gmail.com>
Reply all
Reply to author
Forward
0 new messages