Ah.. Got it. Thank you!

slim

On Monday, March 17, 2014 9:01:40 PM UTC-4, J. Chris Anderson wrote:
>
> The example app 
> code<https://github.com/couchbaselabs/TodoLite-PhoneGap/blob/master/js/index.js>
>  uses 
> a library I wrote <https://github.com/jchris/coax> that I tend to use 
> from nodejs. I should probably just swap it out for jQuery or Zepto as it 
> doesn't bring much beyond what they offer.
>
> If I was writing it today I'd probably start here: 
> http://zeptojs.com/#$.ajax
>
> One call in the example app you can't forget is the one that gets you the 
> URL of the local Couchbase Lite instance.
>
> cblite.getURL(function(err, localURL) {
>   var dbURL = localURL + "mydatabase";
>   $.ajax({url : dbURL, type : "POST", dataType : "json", data : {test : 
> "document}, success : function(resp){alert(resp)}})
> })
>
>
>
> On Monday, March 17, 2014 2:25:41 PM UTC-7, Seung Chan Lim wrote:
>>
>> Hi I'm new to developing phonegap applications and couchbase lite.
>>
>> I've managed to get a simple app written and running on an iPad using 
>> both tech, but I feel as if I'm missing something.
>>
>> Currently I'm interfacing couchbase lite functionalities by using an 
>> XMLHttpRequest object. But the sample code uses no XML HTTP Request. What 
>> is going on? How can I get documentation on how to use couchbase lite 
>> without XML HTTP Request object?
>>
>> In the sample code I notice that it uses global variables like "config." 
>> Where can I find documentation on these?
>>
>> thank you
>>
>> slim
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mobile-couchbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/41b476b0-2f94-4438-b778-2eb7ba8914fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to