Re: [codenameone-discussions] Internal storage on JS

2016-05-24 Thread Gareth Murfin
Awesome!!! Thanks so much, this JS port is fun as hell.

On Wednesday, May 25, 2016 at 7:00:05 AM UTC+8, Steve Hannah wrote:
>
> You can access the browser query string using 
> Display.getProperty("browser.window.location.search", "")
>
> (Same as window.location.search in javascript)
> http://www.w3schools.com/jsref/prop_loc_search.asp
>
> Steve
>
> On Tue, May 24, 2016 at 3:45 PM, Gareth Murfin  > wrote:
>
>> Hi Steve, 
>>
>> You know how you can pass in pixelRatio=1.5, can I also pass in strings 
>> of my own? for example I could include the channel to connect to my irc 
>> client by specifying it in the url? Would be very cool. 
>>
>>
>> On Friday, May 6, 2016 at 10:05:54 PM UTC+8, Gareth Murfin wrote:
>>>
>>> Ooops super dumb sorry it "just works" ver cool!!! Didnt realise the 
>>> war had an index :)
>>>
>>> On Friday, May 6, 2016 at 10:02:57 PM UTC+8, Gareth Murfin wrote:


 Hi Steve I cant figure out how this works 

 iPhone 3GS
 
 http://solutions.weblite.ca/codename1/demos/CSSDemo/index.html?pixelRatio=1>
 ">
 CSSDemo 
 /
  
 is your webapp ? 

  where did index.html come from, and whats pixelratio? Is there 
 anything I can explore about this.

 Thanks
 Gaz

 On Friday, May 6, 2016 at 7:23:00 AM UTC+8, Steve Hannah wrote:
>
> You can embed it in an iframe.  See this page for an example:
> http://solutions.weblite.ca/codename1/demos/CSSDemo.html
>
> I have 3 iframes on this page all including the app at different 
> densities.
>
> Steve
>
> On Thu, May 5, 2016 at 3:32 PM, Gareth Murfin  
> wrote:
>
>> Awesome thanks for joining the chat steve, after running ccleaner all 
>> the errors actually went away, works great on opera and canary. My final 
>> questions for now are about improving the loading screen, I think I read 
>> somewhere how to customise that, so I can google that. Other than that I 
>> was wondering if you can embed the app inside another html document ? 
>> Not a 
>> huge deal but it would be good for various reasons, almost like the 
>> applet 
>> days lol :)
>>
>>
>> On Friday, May 6, 2016 at 5:51:17 AM UTC+8, Gareth Murfin wrote:
>>>
>>> one funny thing is it seems to have that error even when im not 
>>> reading or writing, unless its the log file its writing to
>>>
>>> On Friday, May 6, 2016 at 5:50:30 AM UTC+8, Gareth Murfin wrote:

 Im using the .war on a tomcat installation on amazon. I tried 
 clearing local storage but it still seems to happen. Im actually using 
 chrome canary not sure if that matters, my ordinary chrome is infected 
 and 
 crashes when i visit url too. I will email you a link to the app maybe 
 you 
 can see something from inspector.

 On Friday, May 6, 2016 at 5:12:55 AM UTC+8, Steve Hannah wrote:
>
> Hmm.  Are you running it in the HTML preview or from your own 
> distribution (.war or .zip)?  In the HTML preview, your browser may 
> share 
> the quota with all other CN1 JS apps because they are all hosted from 
> the 
> same appengine domain.
>
> Try clearing your local storage for this domain.
> http://superuser.com/a/655198
>
> (Because we use LocalForage for the local storage, it uses a 
> different mechanism on different browsers.  On some browsers it uses 
> IndexDB, on others it falls back to local storage (and may even use 
> WebSQL 
> under the covers in some cases --- therefore I'm not sure where 
> you'll find 
> this storage, but that link should list them all).
>
> Steve
>
> On Thu, May 5, 2016 at 2:07 PM, Gareth Murfin  > wrote:
>
>> Chrome, literally just trying to store a few bits of text, it 
>> doesnt remember them. 
>>
>> I must say though I am blown away by how good the JS port is!!  I 
>> got my "proxy" working (websocket to socket for IRC) and managed to 
>> get my 
>> chat client working on the browser on desktop AND in the browsers on 
>> android, ios, amazing! The results are bloody impressive too even 
>> with 
>> sliding menus etc, excellent work guys, this is the sort of thing 
>> that I 
>> really love about CN1. Also it works perfectly in my apps on 
>> android/ios 
>> which was actually the main aim. Really really cool. 
>>
>>
>>
>> On Friday, May 6, 2016 at 4:17:51 AM UTC+8, Steve Hannah wrote:
>>>
>>> Yes it is supported, but different browsers have different 
>>> limits on how much you can store?  Which browser a

Re: [codenameone-discussions] Internal storage on JS

2016-05-24 Thread Steve Hannah
You can access the browser query string using
Display.getProperty("browser.window.location.search", "")

(Same as window.location.search in javascript)
http://www.w3schools.com/jsref/prop_loc_search.asp

Steve

On Tue, May 24, 2016 at 3:45 PM, Gareth Murfin 
wrote:

> Hi Steve,
>
> You know how you can pass in pixelRatio=1.5, can I also pass in strings of
> my own? for example I could include the channel to connect to my irc client
> by specifying it in the url? Would be very cool.
>
>
> On Friday, May 6, 2016 at 10:05:54 PM UTC+8, Gareth Murfin wrote:
>>
>> Ooops super dumb sorry it "just works" ver cool!!! Didnt realise the
>> war had an index :)
>>
>> On Friday, May 6, 2016 at 10:02:57 PM UTC+8, Gareth Murfin wrote:
>>>
>>>
>>> Hi Steve I cant figure out how this works
>>>
>>> iPhone 3GS
>>> 
>>> http://solutions.weblite.ca/codename1/demos/CSSDemo/index.html?pixelRatio=1>
>>> ">
>>> CSSDemo
>>> /
>>> is your webapp ? 
>>>
>>>  where did index.html come from, and whats pixelratio? Is there anything
>>> I can explore about this.
>>>
>>> Thanks
>>> Gaz
>>>
>>> On Friday, May 6, 2016 at 7:23:00 AM UTC+8, Steve Hannah wrote:

 You can embed it in an iframe.  See this page for an example:
 http://solutions.weblite.ca/codename1/demos/CSSDemo.html

 I have 3 iframes on this page all including the app at different
 densities.

 Steve

 On Thu, May 5, 2016 at 3:32 PM, Gareth Murfin 
 wrote:

> Awesome thanks for joining the chat steve, after running ccleaner all
> the errors actually went away, works great on opera and canary. My final
> questions for now are about improving the loading screen, I think I read
> somewhere how to customise that, so I can google that. Other than that I
> was wondering if you can embed the app inside another html document ? Not 
> a
> huge deal but it would be good for various reasons, almost like the applet
> days lol :)
>
>
> On Friday, May 6, 2016 at 5:51:17 AM UTC+8, Gareth Murfin wrote:
>>
>> one funny thing is it seems to have that error even when im not
>> reading or writing, unless its the log file its writing to
>>
>> On Friday, May 6, 2016 at 5:50:30 AM UTC+8, Gareth Murfin wrote:
>>>
>>> Im using the .war on a tomcat installation on amazon. I tried
>>> clearing local storage but it still seems to happen. Im actually using
>>> chrome canary not sure if that matters, my ordinary chrome is infected 
>>> and
>>> crashes when i visit url too. I will email you a link to the app maybe 
>>> you
>>> can see something from inspector.
>>>
>>> On Friday, May 6, 2016 at 5:12:55 AM UTC+8, Steve Hannah wrote:

 Hmm.  Are you running it in the HTML preview or from your own
 distribution (.war or .zip)?  In the HTML preview, your browser may 
 share
 the quota with all other CN1 JS apps because they are all hosted from 
 the
 same appengine domain.

 Try clearing your local storage for this domain.
 http://superuser.com/a/655198

 (Because we use LocalForage for the local storage, it uses a
 different mechanism on different browsers.  On some browsers it uses
 IndexDB, on others it falls back to local storage (and may even use 
 WebSQL
 under the covers in some cases --- therefore I'm not sure where you'll 
 find
 this storage, but that link should list them all).

 Steve

 On Thu, May 5, 2016 at 2:07 PM, Gareth Murfin 
 wrote:

> Chrome, literally just trying to store a few bits of text, it
> doesnt remember them.
>
> I must say though I am blown away by how good the JS port is!!  I
> got my "proxy" working (websocket to socket for IRC) and managed to 
> get my
> chat client working on the browser on desktop AND in the browsers on
> android, ios, amazing! The results are bloody impressive too even with
> sliding menus etc, excellent work guys, this is the sort of thing 
> that I
> really love about CN1. Also it works perfectly in my apps on 
> android/ios
> which was actually the main aim. Really really cool.
>
>
>
> On Friday, May 6, 2016 at 4:17:51 AM UTC+8, Steve Hannah wrote:
>>
>> Yes it is supported, but different browsers have different limits
>> on how much you can store?  Which browser and how much are you 
>> trying to
>> store?
>>
>> On Thursday, 5 May 2016, Gareth Murfin 
>> wrote:
>>
>>> Is storage implemented in Javascript? When I read or write I see
>>>
>>> com.codename1.teavm.ext.localforage.LocalForage$QuotaExceededException:
>

Re: [codenameone-discussions] Internal storage on JS

2016-05-24 Thread Gareth Murfin
Hi Steve, 

You know how you can pass in pixelRatio=1.5, can I also pass in strings of 
my own? for example I could include the channel to connect to my irc client 
by specifying it in the url? Would be very cool. 

On Friday, May 6, 2016 at 10:05:54 PM UTC+8, Gareth Murfin wrote:
>
> Ooops super dumb sorry it "just works" ver cool!!! Didnt realise the 
> war had an index :)
>
> On Friday, May 6, 2016 at 10:02:57 PM UTC+8, Gareth Murfin wrote:
>>
>>
>> Hi Steve I cant figure out how this works 
>>
>> iPhone 3GS
>> 
>> http://solutions.weblite.ca/codename1/demos/CSSDemo/index.html?pixelRatio=1>
>> ">
>> CSSDemo 
>> /
>>  
>> is your webapp ? 
>>
>>  where did index.html come from, and whats pixelratio? Is there anything 
>> I can explore about this.
>>
>> Thanks
>> Gaz
>>
>> On Friday, May 6, 2016 at 7:23:00 AM UTC+8, Steve Hannah wrote:
>>>
>>> You can embed it in an iframe.  See this page for an example:
>>> http://solutions.weblite.ca/codename1/demos/CSSDemo.html
>>>
>>> I have 3 iframes on this page all including the app at different 
>>> densities.
>>>
>>> Steve
>>>
>>> On Thu, May 5, 2016 at 3:32 PM, Gareth Murfin  
>>> wrote:
>>>
 Awesome thanks for joining the chat steve, after running ccleaner all 
 the errors actually went away, works great on opera and canary. My final 
 questions for now are about improving the loading screen, I think I read 
 somewhere how to customise that, so I can google that. Other than that I 
 was wondering if you can embed the app inside another html document ? Not 
 a 
 huge deal but it would be good for various reasons, almost like the applet 
 days lol :)


 On Friday, May 6, 2016 at 5:51:17 AM UTC+8, Gareth Murfin wrote:
>
> one funny thing is it seems to have that error even when im not 
> reading or writing, unless its the log file its writing to
>
> On Friday, May 6, 2016 at 5:50:30 AM UTC+8, Gareth Murfin wrote:
>>
>> Im using the .war on a tomcat installation on amazon. I tried 
>> clearing local storage but it still seems to happen. Im actually using 
>> chrome canary not sure if that matters, my ordinary chrome is infected 
>> and 
>> crashes when i visit url too. I will email you a link to the app maybe 
>> you 
>> can see something from inspector.
>>
>> On Friday, May 6, 2016 at 5:12:55 AM UTC+8, Steve Hannah wrote:
>>>
>>> Hmm.  Are you running it in the HTML preview or from your own 
>>> distribution (.war or .zip)?  In the HTML preview, your browser may 
>>> share 
>>> the quota with all other CN1 JS apps because they are all hosted from 
>>> the 
>>> same appengine domain.
>>>
>>> Try clearing your local storage for this domain.
>>> http://superuser.com/a/655198
>>>
>>> (Because we use LocalForage for the local storage, it uses a 
>>> different mechanism on different browsers.  On some browsers it uses 
>>> IndexDB, on others it falls back to local storage (and may even use 
>>> WebSQL 
>>> under the covers in some cases --- therefore I'm not sure where you'll 
>>> find 
>>> this storage, but that link should list them all).
>>>
>>> Steve
>>>
>>> On Thu, May 5, 2016 at 2:07 PM, Gareth Murfin  
>>> wrote:
>>>
 Chrome, literally just trying to store a few bits of text, it 
 doesnt remember them. 

 I must say though I am blown away by how good the JS port is!!  I 
 got my "proxy" working (websocket to socket for IRC) and managed to 
 get my 
 chat client working on the browser on desktop AND in the browsers on 
 android, ios, amazing! The results are bloody impressive too even with 
 sliding menus etc, excellent work guys, this is the sort of thing that 
 I 
 really love about CN1. Also it works perfectly in my apps on 
 android/ios 
 which was actually the main aim. Really really cool. 



 On Friday, May 6, 2016 at 4:17:51 AM UTC+8, Steve Hannah wrote:
>
> Yes it is supported, but different browsers have different limits 
> on how much you can store?  Which browser and how much are you trying 
> to 
> store?
>
> On Thursday, 5 May 2016, Gareth Murfin  
> wrote:
>
>> Is storage implemented in Javascript? When I read or write I see
>>
>> com.codename1.teavm.ext.localforage.LocalForage$QuotaExceededException:
>>  
>> Failed to set value 
>>
>> -- 
>> You received this message because you are subscribed to the 
>> Google Groups "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to 
>> codenameone-discussions+unsubscr