Re: EMY - receiving an asynchronous request

2018-03-22 Thread Rune Back
I have only ONE section:

**

In the *function goingTo(val)* I also have
*document.getElementById("viewTitle").innerHTML=getTitle(val)* which
updates the title, so the user gets the feeling of moving between different
screens. I don't use *emy.ajax()*, but I have made my own function for it.

R


2018-03-22 12:08 GMT+02:00 Remi Grumeau :

>
> *I like Emy.*
>
>
> Me too :)
>
>
> I use callbacks only in order to send/receive something to/from another
> App via the server. I've also made it possible for making  a backup of the
> ldb in the server and of course to retrieve the ldb from there. At leat 95%
> of my code is JavaScript. I tiny little bit of my code is in the server.
>
> The link may look like this: *href="javascript:goingTo(11);"*
>
> In *goingTo(val)* I have *switch (val)* ...
>
> ...
> *case 11: MAKE_MAIN(); break*
> ...
>
> *MAKE_MAIN()* stuffs the html code into a variable *dump*, and finally I
> have
> *document.getElementById("HOME").innerHTML=dump*
>
> I have two variables "comingFrom" and "whereAmI". I have a back button up
> in the right corner with goingTo(comingFrom). As I already mentioned, it's
> very fast.
>
> *If not Emy, what then?*
>
>
> If you use emy.ajax() for the ajax calls, emy.$ for selectors or other
> screens transitions to the rest of the app, or simply like the UI themes,
> then stick with it :)
> https://emy-library.org/documentation/latest/core-
> documentation.html#emy-ajax
> https://emy-library.org/documentation/latest/core-documentation.html#emy-$
> --> document.getElementById("HOME") can be emy.$(‘#HOME’) or
> emy.getSelectedView() if you are on this view.
>
>
> If not, then you probably don’t need a library at all to just pull / push
> data from a server.
>
> Remi
>
> --
> You received this message because you are subscribed to the Google Groups
> "iPhoneWebDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to iphonewebdev+unsubscr...@googlegroups.com.
> To post to this group, send email to iphonewebdev@googlegroups.com.
> Visit this group at https://groups.google.com/group/iphonewebdev.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: EMY - receiving an asynchronous request

2018-03-22 Thread Remi Grumeau

> I like Emy.

Me too :)


> I use callbacks only in order to send/receive something to/from another App 
> via the server. I've also made it possible for making  a backup of the ldb in 
> the server and of course to retrieve the ldb from there. At leat 95% of my 
> code is JavaScript. I tiny little bit of my code is in the server.
> 
> The link may look like this: href="javascript:goingTo(11);"
> 
> In goingTo(val) I have switch (val) ...
> ...
> case 11: MAKE_MAIN(); break
> ...
> MAKE_MAIN() stuffs the html code into a variable dump, and finally I have
> document.getElementById("HOME").innerHTML=dump
> 
> I have two variables "comingFrom" and "whereAmI". I have a back button up in 
> the right corner with goingTo(comingFrom). As I already mentioned, it's very 
> fast.
> 
> If not Emy, what then?

If you use emy.ajax() for the ajax calls, emy.$ for selectors or other screens 
transitions to the rest of the app, or simply like the UI themes, then stick 
with it :)
https://emy-library.org/documentation/latest/core-documentation.html#emy-ajax
https://emy-library.org/documentation/latest/core-documentation.html#emy-$
--> document.getElementById("HOME") can be emy.$(‘#HOME’) or 
emy.getSelectedView() if you are on this view.


If not, then you probably don’t need a library at all to just pull / push data 
from a server.

Remi

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: EMY - receiving an asynchronous request

2018-03-22 Thread Rune Back
*I like Emy.* I use callbacks only in order to send/receive something
to/from another App via the server. I've also made it possible for making
a backup of the ldb in the server and of course to retrieve the ldb from
there. At leat 95% of my code is JavaScript. I tiny little bit of my code
is in the server.

The link may look like this: *href="javascript:goingTo(11);"*

In *goingTo(val)* I have *switch (val)* ...

...
*case 11: MAKE_MAIN(); break*
...

*MAKE_MAIN()* stuffs the html code into a variable *dump*, and finally I
have
*document.getElementById("HOME").innerHTML=dump*

I have two variables "comingFrom" and "whereAmI". I have a back button up
in the right corner with goingTo(comingFrom). As I already mentioned, it's
very fast.

*If not Emy, what then?*

Rune


2018-03-22 0:31 GMT+02:00 Remi Grumeau :

> Humm
>
> I'd rather put this in a DIV rather than a SECTION then.
> Emy uses all direct SECTION tags child nodes as views.
> So it won't bother you with this DIV (just put a display:none on it would
> be enough)
>
> But ... if you're doing the ajax call on your side and uses one single
> section to replace its content without any navigation transition, why using
> Emy ? :)
>
> Also, , you forgot a "
>
> Remi
>
> Le 21 mars 2018 à 16:49, Rune Back  a écrit :
>
> I tried...
>
> 
>
>
> ​...​
> and theat seems to work fine
> ​, so far at least​
> . / R
>
> 2018-03-21 10:08 GMT+02:00 Rune Back :
>
>> Hi!
>>
>> I use only one section tag "HOME" in my code. When the user navigates to
>> "another" section tag, I only change the code of the section tag. - *Very
>> fast!*
>>
>> I do have another section tag called "DUMP", for *internal *use only.
>> That's where I receive the answers for any asynchronous requests sent to
>> the server. After I've sent something to the server I check the "DUMP"
>> every second.
>>
>> It seems to me that the section tag isn't the right tag for this use. -
>> Any suggestions?
>>
>>
>> Thanks,
>>
>> Rune
>>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "iPhoneWebDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to iphonewebdev+unsubscr...@googlegroups.com.
> To post to this group, send email to iphonewebdev@googlegroups.com.
> Visit this group at https://groups.google.com/group/iphonewebdev.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "iPhoneWebDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to iphonewebdev+unsubscr...@googlegroups.com.
> To post to this group, send email to iphonewebdev@googlegroups.com.
> Visit this group at https://groups.google.com/group/iphonewebdev.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: EMY - receiving an asynchronous request

2018-03-21 Thread Remi Grumeau
Humm

I'd rather put this in a DIV rather than a SECTION then.
Emy uses all direct SECTION tags child nodes as views.
So it won't bother you with this DIV (just put a display:none on it would be 
enough)

But ... if you're doing the ajax call on your side and uses one single section 
to replace its content without any navigation transition, why using Emy ? :)

Also, , you forgot a "

Remi

> Le 21 mars 2018 à 16:49, Rune Back  a écrit :
> 
> I tried...
> 
> 
> 
> ​...​and theat seems to work fine​, so far at least​. / R
> 
> 2018-03-21 10:08 GMT+02:00 Rune Back  >:
> Hi!
> 
> I use only one section tag "HOME" in my code. When the user navigates to 
> "another" section tag, I only change the code of the section tag. - Very fast!
> 
> I do have another section tag called "DUMP", for internal use only. That's 
> where I receive the answers for any asynchronous requests sent to the server. 
> After I've sent something to the server I check the "DUMP" every second. 
> 
> It seems to me that the section tag isn't the right tag for this use. - Any 
> suggestions?
> 
> Thanks,
> 
> Rune
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "iPhoneWebDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to iphonewebdev+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to iphonewebdev@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/iphonewebdev 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: EMY buttons

2018-01-30 Thread Rune Back
R / Only postpone *bad *things, not good ones! / R :)

2018-01-26 16:01 GMT+02:00 Remi Grumeau :

> Hi rune,
>
> I guess the 100% doesn’t take in account extra margin or padding between
> them. Or just the extra pixel inline-block elements can have next to each
> others.
>
> Classic box-model issue.
>
> Segment is here to help you out with it yes, using table layout model. But
> nowdays we have flexbox & grid display modes, which i should definitely
> recode Emy css part with... one day :)
>
> Remi GRUMEAU
> 06.63.68.72.06
> https://remi-grumeau.com
>
> Le 26 janv. 2018 à 14:30, Rune Back  a écrit :
>
> I have this code for two buttons side by side:
>
> 
>
>   
>
> Go
> somewhere!
>
>   
>   
>
> Go somewhere else!
>   
> 
>
>
> In a Samsung pad the two button come out as 100% wide, the one under the
> other one. - *Any ideas? Suggestions?*
> Would ex. https://emy-library.org/emy/1.1/plugins/elements/element
> s-demo.html#_segments be more reliable?
>
> Regards, Rune
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "iPhoneWebDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to iphonewebdev+unsubscr...@googlegroups.com.
> To post to this group, send email to iphonewebdev@googlegroups.com.
> Visit this group at https://groups.google.com/group/iphonewebdev.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "iPhoneWebDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to iphonewebdev+unsubscr...@googlegroups.com.
> To post to this group, send email to iphonewebdev@googlegroups.com.
> Visit this group at https://groups.google.com/group/iphonewebdev.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: EMY buttons

2018-01-26 Thread Remi Grumeau
Hi rune,

I guess the 100% doesn’t take in account extra margin or padding between them. 
Or just the extra pixel inline-block elements can have next to each others.

Classic box-model issue.

Segment is here to help you out with it yes, using table layout model. But 
nowdays we have flexbox & grid display modes, which i should definitely recode 
Emy css part with... one day :)

Remi GRUMEAU
06.63.68.72.06
https://remi-grumeau.com

> Le 26 janv. 2018 à 14:30, Rune Back  a écrit :
> 
> I have this code for two buttons side by side:
> 
> 
>   
> Go 
> somewhere!
>   
>   
> Go somewhere else!
>   
> 
> 
> In a Samsung pad the two button come out as 100% wide, the one under the 
> other one. - Any ideas? Suggestions?
> Would ex. 
> https://emy-library.org/emy/1.1/plugins/elements/elements-demo.html#_segments 
> be more reliable?
> 
> Regards, Rune
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "iPhoneWebDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to iphonewebdev+unsubscr...@googlegroups.com.
> To post to this group, send email to iphonewebdev@googlegroups.com.
> Visit this group at https://groups.google.com/group/iphonewebdev.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: EMY

2018-01-06 Thread Remi Grumeau
> ​This rose a lot of questions, until I checked your link below. (I haven't 
> checked the code as yet.) So you use the password as the key AND you don't 
> store the password locally, at least not locally. - Right?

At very worse, you can store a hash of the password locally, and compare this 
hash with the hash of the submitted password to login offline.


>> ex: https://remi-grumeau.com/lab/cryptojs.html
>>  
>> 
>>>  
 Note that both will come with some performance cost.
>>> 
>>> ​Great you mention that. I however use the server very little. Insteda I 
>>> use almost completely the local device.
>> 
>> I was referring to client side (local) performance :) (and at some point, 
>> battery usage).
> 
> Thanks for the specification!
> ​
>> GET comes with url encoding issues you won't have with POST. POST can also 
>> integrate file binary (file upload) GET cannot.
> 
> ​Interesting. Do you mean I can pass ex spaces as such with POST?​!? (I 
> started out with GET, and found a work around, and never thought of the 
> matter when I changed to POST)

You can pass whatever you want in both, but GET = url. So a space with be 
converted to %20 for ex. All server side languages comes with a method to url 
decode (urldecode() in php). Won’t have those kind of issues with POST.

Remi

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: EMY

2018-01-06 Thread Rune Back
Hi again!

​​
> Key should be set by the user on login.
> Never stored in your code. If you store the decryption key in the code,
> then don't bother encrypt data.
>

​This rose a lot of questions, until I checked your link below. (I haven't
checked the code as yet.) So you use the *password as the key* AND you *don't
store the password* locally, at least not locally. - Right?
​


>
> ex: https://remi-grumeau.com/lab/cryptojs.html
>
>
>
>>
>>> Note that both will come with some performance cost.
>>>
>>
>> ​Great you mention that. I however use the server very little. Insteda I
>> use almost completely the local device.
>>
>
> I was referring to client side (local) performance :) (and at some point,
> battery usage).
>

Thanks for the specification!
​

> GET comes with url encoding issues you won't have with POST. POST can also
> integrate file binary (file upload) GET cannot.
>

​Interesting. Do you mean I can pass ex *spaces* *as such* with POST?​!? (I
started out with GET, and found a work around, and never thought of the
matter when I changed to POST)

​Regards

Rune​

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: EMY

2018-01-06 Thread Remi Grumeau
>
> ​I've got Kb:s in my LDB now and no problem so far.​ - ​I couple of years
>> ago I stumbled somewhere over a code of a simple local database, but I
>> can't find it anymore.
>>
>>
>> Less than a Mb you should be fine.
>>
>
> ​Great! - I had been wondering/worring about what would happen with the
> LBD ​growing and when the customer would be reaching the limit. I *can *check
> that it won't grow bigger than ex. 1Mb and then start sending the rest to
> the server to be stored, no problem, but it would be too easy, too dull and
> wouldn't react to devices that are getting bigger, more intelligent and
> faster for each year. - *What if I would check how long a time it takes
> to read/write a file in the LDB?* It should be possible? Measuring the
> responce time in 1/1000 secs??
>

AFAIR localStorage is limited to 5mb per domain name. subdomain excluded.
localStorage is said to be slow, but i never had too much problems with it.
Never try to deal with Mb of datas in it btw...


>
>
>> Mozilla LocalForage ?
>>
>
> ​Don't know. I'll look into it... maybe... if I haven't already found the
> solution.:)
>

It used to be a solution years ago. Splitting datas into multiple cookies
if localStorage wasn't supported for ex.
Not sure it's still revenant nowadays, localStorage is pretty well
supported.



> ​
>
>>
>> The install prompt is a new spec only available on Google Chrome. It uses
>>> a web manifest json file to do it. Then all the rest that makes a
>>> “progressive webapp” (PWA) is a set of new html5 features like service
>>> workers, push api, ...
>>> For Safari (iOS), standalone mode still exists, but you have to
>>> implement this “add to homescreen” prompt yourself.
>>>
>>
>> ​We need to find a better way - *really *easy for the user.
>>
>>
>> Chrome’s Web Manifest is the easiest way to go then. You need https for
>> that btw.
>>
>
> ​GREAT! (Yea, I found out about the neeed of SSL the hard way.)​
>


Let's Encrypt gives them for free anyway.
Hosting companies like OVH even set them by default on their shared hosting
plans btw.



> Scramblers? Are you looking for a way to minimize your JS/CSS file size or
>>> to really encrypt them?
>>>
>>
>> ​Encryption. Encyption of especially the code but also the database.
>>
>>
>> Code & data encryption is two very different things. First should rely to
>> some serverside mechanisms.
>>
>
> ​Yes, of course, code and data encryption are different things. - ​
>
> ​Google used to have http://crypto-js.googlecode.com/svn/tags/3.1.2/build/
> rollups/aes.js which I used for encrypting the LDB. I think I can find/do
> something similar and hide it (the key) as well as possible in my code.​
>

> What about Google Closure Compiler (https://developers.google.
> com/closure/compiler/?csw=1). *Any experience of that*?
>

Nope.
On first look, this looks like more as a JS Minifier than a real
obfuscator.
Which is fine, but i'm not sure this is really what you are looking for.



>
>
>> Second is something you should code. Basic way is to encrypt & decrypt
>> based on user´s credentials. This means at some point you need a login
>> screen.
>>
>
> ​*User's credentials?* - Do you mean username and password (and 40
> alfanumeric user Id which is for internal use only)​?
> *Login screen?* - Yes, I use a login screen. And the user's email address
> is also verified, since he/she with a click is able to send a report to
> his/her email address.
>


Key should be set by the user on login.
Never stored in your code. If you store the decryption key in the code,
then don't bother encrypt data.

ex: https://remi-grumeau.com/lab/cryptojs.html



>
>> Note that both will come with some performance cost.
>>
>
> ​Great you mention that. I however use the server very little. Insteda I
> use almost completely the local device.
>

I was referring to client side (local) performance :) (and at some point,
battery usage).



>
> ​I use GET when I'm checking the code and afterwards I use POST.​
>

GET comes with url encoding issues you won't have with POST. POST can also
integrate file binary (file upload) GET cannot.



>
> Thanks a million!
>
> Rune
>


You're welcome!
That's what those list are there for :)


Remi

On Sat, Jan 6, 2018 at 2:47 PM, Rune Back  wrote:

> Remi!
>
>> ​I've got Kb:s in my LDB now and no problem so far.​ - ​I couple of years
>> ago I stumbled somewhere over a code of a simple local database, but I
>> can't find it anymore.
>>
>>
>> Less than a Mb you should be fine.
>>
>
> ​Great! - I had been wondering/worring about what would happen with the
> LBD ​growing and when the customer would be reaching the limit. I *can *check
> that it won't grow bigger than ex. 1Mb and then start sending the rest to
> the server to be stored, no problem, but it would be too easy, too dull and
> wouldn't react to devices that are getting bigger, more intelligent and
> faster for each year. - *What if I would check how long a time it takes
> to read/write a file in the 

Re: EMY

2018-01-06 Thread Rune Back
Remi!

> ​I've got Kb:s in my LDB now and no problem so far.​ - ​I couple of years
> ago I stumbled somewhere over a code of a simple local database, but I
> can't find it anymore.
>
>
> Less than a Mb you should be fine.
>

​Great! - I had been wondering/worring about what would happen with the LBD
​growing and when the customer would be reaching the limit. I *can *check
that it won't grow bigger than ex. 1Mb and then start sending the rest to
the server to be stored, no problem, but it would be too easy, too dull and
wouldn't react to devices that are getting bigger, more intelligent and
faster for each year. - *What if I would check how long a time it takes to
read/write a file in the LDB?* It should be possible? Measuring the
responce time in 1/1000 secs??



> Mozilla LocalForage ?
>

​Don't know. I'll look into it... maybe... if I haven't already found the
solution.:)
​

>
> The install prompt is a new spec only available on Google Chrome. It uses
>> a web manifest json file to do it. Then all the rest that makes a
>> “progressive webapp” (PWA) is a set of new html5 features like service
>> workers, push api, ...
>> For Safari (iOS), standalone mode still exists, but you have to implement
>> this “add to homescreen” prompt yourself.
>>
>
> ​We need to find a better way - *really *easy for the user.
>
>
> Chrome’s Web Manifest is the easiest way to go then. You need https for
> that btw.
>

​GREAT! (Yea, I found out about the neeed of SSL the hard way.)​



> Scramblers? Are you looking for a way to minimize your JS/CSS file size or
>> to really encrypt them?
>>
>
> ​Encryption. Encyption of especially the code but also the database.
>
>
> Code & data encryption is two very different things. First should rely to
> some serverside mechanisms.
>

​Yes, of course, code and data encryption are different things. - ​

​Google used to have
http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/aes.js which I
used for encrypting the LDB. I think I can find/do something similar and
hide it (the key) as well as possible in my code.​

What about Google Closure Compiler (
https://developers.google.com/closure/compiler/?csw=1). *Any experience of
that*?



> Second is something you should code. Basic way is to encrypt & decrypt
> based on user´s credentials. This means at some point you need a login
> screen.
>

​*User's credentials?* - Do you mean username and password (and 40
alfanumeric user Id which is for internal use only)​?
*Login screen?* - Yes, I use a login screen. And the user's email address
is also verified, since he/she with a click is able to send a report to
his/her email address.



> Note that both will come with some performance cost.
>

​Great you mention that. I however use the server very little. Insteda I
use almost completely the local device.



>
> ​
>
>> What about eval() ? It’s pretty unpopular those days but surely doing the
>> job.
>> Or you can just call localStorage as an array.
>>
>> function init_ldb(fname){
>>   return (fname!=“”)?localStorage[fname].toString():null;
>> }
>>
>> But then, “fname” must match your localStorage object name (customers,
>> products, jobs,...)
>>
>
> ​H... interesting...great! I'll try that.
>
> I handle the LDBs a strings, and then split them with ("fileEnd" in the
> communication with the server) "postEnd" and "fieldEnd". Getting them back
> into one string for each data file is a peace of cake.
>
>
> Not sure i get it but if this works for you, fine :)
>

​*fileEnd*, *postEnd *and *fieldEnd *are special charachters of your own
choice, but you need to ensure that the user can't insert them even by
mistake.
​​

> Another question.
> I use GET or POST in the communication between the app and the server. It
> happens that the server points out that my URL is too long (I don't
> remember if it is using GET or POST or both). This happens particularly
> when I have a report (it may consist of several pages) in my app​ and want
> to send it (via the server) to my email box. (As soon as I get the info to
> the server I have a
> ​ ​
> simple
> php script that takes care of the emailing.)
>
>
> Any suggestions?
>
>
> No limitations on POST except server side conf. Mostly 2mb by default btw.
> You should definitely use POST anytime.
>
> A GET request will hit the 2kb limitation, with other issues like special
> chars encoding, req cache & others...
>

​I use GET when I'm checking the code and afterwards I use POST.​

Thanks a million!

Rune

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: EMY

2018-01-06 Thread Remi Grumeau
> ​I've got Kb:s in my LDB now and no problem so far.​ - ​I couple of years ago 
> I stumbled somewhere over a code of a simple local database, but I can't find 
> it anymore.

Less than a Mb you should be fine.
Mozilla LocalForage ?

>> The install prompt is a new spec only available on Google Chrome. It uses a 
>> web manifest json file to do it. Then all the rest that makes a “progressive 
>> webapp” (PWA) is a set of new html5 features like service workers, push api, 
>> ...
>> For Safari (iOS), standalone mode still exists, but you have to implement 
>> this “add to homescreen” prompt yourself.
> 
> ​We need to find a better way - really easy for the user.

Chrome’s Web Manifest is the easiest way to go then. You need https for that 
btw.

> ​
>> Scramblers? Are you looking for a way to minimize your JS/CSS file size or 
>> to really encrypt them?
> 
> ​Encryption. Encyption of especially the code but also the database.

Code & data encryption is two very different things. First should rely to some 
serverside mechanisms. Second is something you should code. Basic way is to 
encrypt & decrypt based on user´s credentials. This means at some point you 
need a login screen.

Note that both will come with some performance cost.

> ​
>> What about eval() ? It’s pretty unpopular those days but surely doing the 
>> job.
>> Or you can just call localStorage as an array.
>> 
>> function init_ldb(fname){
>>   return (fname!=“”)?localStorage[fname].toString():null;
>> }
>> 
>> But then, “fname” must match your localStorage object name (customers, 
>> products, jobs,...)
> 
> ​H... interesting...great! I'll try that.
> 
> I handle the LDBs a strings, and then split them with ("fileEnd" in the 
> communication with the server) "postEnd" and "fieldEnd". Getting them back 
> into one string for each data file is a peace of cake.

Not sure i get it but if this works for you, fine :)

> 
> Another question.
> I use GET or POST in the communication between the app and the server. It 
> happens that the server points out that my URL is too long (I don't remember 
> if it is using GET or POST or both). This happens particularly when I have a 
> report (it may consist of several pages) in my app​ and want to send it (via 
> the server) to my email box. (As soon as I get the info to the server I have 
> a​ ​simple php script that takes care of the emailing.)
> 
> Any suggestions?

No limitations on POST except server side conf. Mostly 2mb by default btw. 
You should definitely use POST anytime.

A GET request will hit the 2kb limitation, with other issues like special chars 
encoding, req cache & others...
> 
> 
Remi

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: EMY

2018-01-05 Thread Rune Back
Thank you, Remi!​

If you have dozens of Mb of datas, then LocalStorage is a dead end. It has
> been designed to be a local cookie (aka not available server-side, so not
> sent in every http request). So just to store a string or two (username,
> json string of params, ...), not megabytes of text.
> IndexedDb is the (only) right way to go. It’s a totally crappy
> over-engineered noSql beast, but that’s the only option we have nowdays...
> Longer answer here : https://softwareengineering.
> stackexchange.com/a/219964
>

​I've got Kb:s in my LDB now and no problem so far.​ - ​I couple of years
ago I stumbled somewhere over a code of a simple local database, but I
can't find it anymore.

The install prompt is a new spec only available on Google Chrome. It uses a
> web manifest json file to do it. Then all the rest that makes a
> “progressive webapp” (PWA) is a set of new html5 features like service
> workers, push api, ...
> For Safari (iOS), standalone mode still exists, but you have to implement
> this “add to homescreen” prompt yourself.
>

​We need to find a better way - *really *easy for the user.
​

> Scramblers? Are you looking for a way to minimize your JS/CSS file size or
> to really encrypt them?
>

​Encryption. Encyption of especially the code but also the database.
​

> What about eval() ? It’s pretty unpopular those days but surely doing the
> job.
> Or you can just call localStorage as an array.
>
> function init_ldb(fname){
>   return (fname!=“”)?localStorage[fname].toString():null;
> }
>
> But then, “fname” must match your localStorage object name (customers,
> products, jobs,...)
>

​H... interesting...great! I'll try that.

I handle the LDBs a strings, and then split them with ("fileEnd" in the
communication with the server) "postEnd" and "fieldEnd". Getting them back
into one string for each data file is a peace of cake.

Another question.
I use GET or POST in the communication between the app and the server. It
happens that the server points out that my URL is too long (I don't
remember if it is using GET or POST or both). This happens particularly
when I have a report (it may consist of several pages) in my app​ and want
to send it (via the server) to my email box. (As soon as I get the info to
the server I have a
​ ​
simple
php script that takes care of the emailing.)


Any suggestions?


thanks,

Rune

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: EMY

2018-01-05 Thread Remi Grumeau
Hi Rune,

If you have dozens of Mb of datas, then LocalStorage is a dead end. It has been 
designed to be a local cookie (aka not available server-side, so not sent in 
every http request). So just to store a string or two (username, json string of 
params, ...), not megabytes of text.
IndexedDb is the (only) right way to go. It’s a totally crappy over-engineered 
noSql beast, but that’s the only option we have nowdays...
Longer answer here : https://softwareengineering.stackexchange.com/a/219964


The install prompt is a new spec only available on Google Chrome. It uses a web 
manifest json file to do it. Then all the rest that makes a “progressive 
webapp” (PWA) is a set of new html5 features like service workers, push api, ...
For Safari (iOS), standalone mode still exists, but you have to implement this 
“add to homescreen” prompt yourself.


Scramblers? Are you looking for a way to minimize your JS/CSS file size or to 
really encrypt them?


What about eval() ? It’s pretty unpopular those days but surely doing the job.
Or you can just call localStorage as an array.

function init_ldb(fname){
  return (fname!=“”)?localStorage[fname].toString():null;
}

But then, “fname” must match your localStorage object name (customers, 
products, jobs,...)


Remi

> Le 5 janv. 2018 à 16:15, Rune Back  a écrit :
> 
> - What if my app uses a lot of local data, let's say 10 or 10s of Mb. Any 
> suggestions of a database to use so that my app won't be slowed down?
> 
> - Everyone is used to pushing a button in order to download and install an 
> app. How do I make an hml5 app downloadable that way?
> 
> - How reliable are the scramble programs on the market? - My app conists of 
> around 250Kb JavaScript. Even though I myself get lost at times in the code, 
> I would like to scramble both the code and the data.
> 
> - Let's say I have this function:
> 
> function init_ldb(fName) {
>   if (fName=="job") theLdbData = localStorage.jobs
>else if (storageName=="cust") theLdbData = localStorage.customers
> else if (storageName=="prod") theLdbData = localStorage.products
>  else 
> // ...
> }
> 
> Is there any way of simplying this kind of like this:
> 
> function init_ldb(fName) {
>   theLdbData = localStorage.fName
> // ...
> }
> 
> ​Appreciating any help.​
> -- 
> You received this message because you are subscribed to the Google Groups 
> "iPhoneWebDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to iphonewebdev+unsubscr...@googlegroups.com.
> To post to this group, send email to iphonewebdev@googlegroups.com.
> Visit this group at https://groups.google.com/group/iphonewebdev.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at https://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: emy backButton

2014-06-11 Thread Remi Grumeau
Always use *emy.goBack()* !!

That's VERY important

Remi


On Fri, Jun 6, 2014 at 8:22 AM, Rune Back rune.b...@gmail.com wrote:

 Hi Remi

 There was a bug in my code. Got it working. - Sorry about that.

 One more thing: *emy.goBack()* and *window.history.back()* - Can I use
 either one?

 regards

 Rune



 2014-06-05 15:57 GMT+03:00 Remi Grumeau remi.grum...@gmail.com:

 Nope, no easy build-in solution. Just like with native apps, you have to
 do your homework :)

 By the way, you have events to help you with that.

 http://www.emy-library.org/documentation/1.0/core-documentation.html#event-custom
 *beforetransition / aftertransition*
 Those events are triggered each time you slide from a panel to another.

 Or you can directly use transitions attributes to trigger a JS function
 when sliding between panels
 If you look at the Notes app demo
 http://www.emy-library.org/demos/notes/notes.html
 In the code you can see
 *section id=note data-title=Notes App class=panel
 data-onshow=notes.tlbManager() data-onexit=notes.emptyForm()*
 Those really helps to trigger a function at a particular moment on a
 particular screen


 Again, If you don't care about device physical back button  browser's
 prev/next buttons, are on schedule / budget, you can just create your own
 backButton  hide Emy's one
 *section id=screenA data-title=Screen A class=panel *
 *data-hidebackbutton=true***
 and put your own button in the toolbar's first div (for the left side) or
 second div (for the right side)
 a id=mybackbutton class=button onclick=*myFunction(myVar)*
 Back/a

 Kind of like the About button in the toolbar of the same Notes demo app
 :)


 Remi


 Le 5 juin 2014 à 13:59, Rune Back rune.b...@gmail.com a écrit :

 Hi Remi

 No good Remi. 70%?!! - I was hoping for better news :((

 So you go from screen A to B and to C. At C you update some information
 which means you also need to update screen A and B. So after the update you
 go straight to screen B and before doing so you update the screen and
 everything's ok. But ... when you at screen B hit the backButton the old
 info at screen A will appear. (If I remember correctly that is what will
 happen.)

 No easy (almost) built-in solution? ~)

 Regards

 Rune



 2014-06-05 14:02 GMT+03:00 Remi Grumeau remi.grum...@gmail.com:

 eh eh :)
 If you don't play the rules, be ready to face those kind of problems ;)

 Emy deals with going from screen A to screen B by itself. If you want no
 transitions between screens, just set emy.transitionMode to none

 http://www.emy-library.org/documentation/1.0/core-documentation.html#emy-transitionmode

 Then going back and forward with browser prev/next buttons is supported.

 Only way to do it by yourself would be to totally recreate 70% of the
 library, aka dealing with hash  hashChange events.
 And i'm pretty sure you don't want to do that :)


 Or, even worse, you can hide the backButton, and create your own
 backButton (just call it something else than backButton) with the onClick
 you want on it.
 That wouldn't support the device physical back button by the way…


 Remi

 Le 5 juin 2014 à 07:55, Rune Back rune.b...@gmail.com a écrit :

 Hi

 I've got all pages in one *section/section*. When changing to
 another page I change the content of this *section/section* This
 raises the need of changing the backButton so that it instead of doing
 something like *window.history.back()* it might call *myFunction(myVar)*
 where I can update the content of the section/section.

 *How do I do that?*

 Thank you for any help

 Rune




 --
 You received this message because you are subscribed to the Google
 Groups iPhoneWebDev group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to iphonewebdev+unsubscr...@googlegroups.com.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev.
 For more options, visit https://groups.google.com/d/optout.



 --
 You received this message because you are subscribed to the Google
 Groups iPhoneWebDev group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to iphonewebdev+unsubscr...@googlegroups.com.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev.
 For more options, visit https://groups.google.com/d/optout.



 --
 You received this message because you are subscribed to the Google Groups
 iPhoneWebDev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to iphonewebdev+unsubscr...@googlegroups.com.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev.
 For more options, visit https://groups.google.com/d/optout.


  --
 You received this message because you are subscribed to the Google Groups
 iPhoneWebDev group.
 To unsubscribe from this group and stop receiving 

Re: emy backButton

2014-06-05 Thread Remi Grumeau
eh eh :)
If you don't play the rules, be ready to face those kind of problems ;)

Emy deals with going from screen A to screen B by itself. If you want no 
transitions between screens, just set emy.transitionMode to none
http://www.emy-library.org/documentation/1.0/core-documentation.html#emy-transitionmode

Then going back and forward with browser prev/next buttons is supported.

Only way to do it by yourself would be to totally recreate 70% of the library, 
aka dealing with hash  hashChange events.
And i'm pretty sure you don't want to do that :)


Or, even worse, you can hide the backButton, and create your own backButton 
(just call it something else than backButton) with the onClick you want on it.
That wouldn't support the device physical back button by the way...


Remi

Le 5 juin 2014 à 07:55, Rune Back rune.b...@gmail.com a écrit :

 Hi
 
 I've got all pages in one section/section. When changing to another page 
 I change the content of this section/section This raises the need of 
 changing the backButton so that it instead of doing something like 
 window.history.back() it might call myFunction(myVar) where I can update the 
 content of the section/section.
 
 How do I do that?
 
 Thank you for any help
 
 Rune
 
 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to iphonewebdev+unsubscr...@googlegroups.com.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: emy backButton

2014-06-05 Thread Rune Back
Hi Remi

No good Remi. 70%?!! - I was hoping for better news :((

So you go from screen A to B and to C. At C you update some information
which means you also need to update screen A and B. So after the update you
go straight to screen B and before doing so you update the screen and
everything's ok. But ... when you at screen B hit the backButton the old
info at screen A will appear. (If I remember correctly that is what will
happen.)

No easy (almost) built-in solution? ~)

Regards

Rune



2014-06-05 14:02 GMT+03:00 Remi Grumeau remi.grum...@gmail.com:

 eh eh :)
 If you don't play the rules, be ready to face those kind of problems ;)

 Emy deals with going from screen A to screen B by itself. If you want no
 transitions between screens, just set emy.transitionMode to none

 http://www.emy-library.org/documentation/1.0/core-documentation.html#emy-transitionmode

 Then going back and forward with browser prev/next buttons is supported.

 Only way to do it by yourself would be to totally recreate 70% of the
 library, aka dealing with hash  hashChange events.
 And i'm pretty sure you don't want to do that :)


 Or, even worse, you can hide the backButton, and create your own
 backButton (just call it something else than backButton) with the onClick
 you want on it.
 That wouldn't support the device physical back button by the way...


 Remi

 Le 5 juin 2014 à 07:55, Rune Back rune.b...@gmail.com a écrit :

 Hi

 I've got all pages in one *section/section*. When changing to another
 page I change the content of this *section/section* This raises the
 need of changing the backButton so that it instead of doing something like
 *window.history.back()* it might call *myFunction(myVar)* where I can
 update the content of the section/section.

 *How do I do that?*

 Thank you for any help

 Rune




 --
 You received this message because you are subscribed to the Google Groups
 iPhoneWebDev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to iphonewebdev+unsubscr...@googlegroups.com.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev.
 For more options, visit https://groups.google.com/d/optout.


  --
 You received this message because you are subscribed to the Google Groups
 iPhoneWebDev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to iphonewebdev+unsubscr...@googlegroups.com.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: emy backButton

2014-06-05 Thread Remi Grumeau
Nope, no easy build-in solution. Just like with native apps, you have to do 
your homework :)

By the way, you have events to help you with that.
http://www.emy-library.org/documentation/1.0/core-documentation.html#event-custom
beforetransition / aftertransition
Those events are triggered each time you slide from a panel to another.

Or you can directly use transitions attributes to trigger a JS function when 
sliding between panels
If you look at the Notes app demo
http://www.emy-library.org/demos/notes/notes.html
In the code you can see
section id=note data-title=Notes App class=panel 
data-onshow=notes.tlbManager() data-onexit=notes.emptyForm()
Those really helps to trigger a function at a particular moment on a particular 
screen


Again, If you don't care about device physical back button  browser's 
prev/next buttons, are on schedule / budget, you can just create your own 
backButton  hide Emy's one
section id=screenA data-title=Screen A class=panel 
data-hidebackbutton=true
and put your own button in the toolbar's first div (for the left side) or 
second div (for the right side)
a id=mybackbutton class=button onclick=myFunction(myVar)Back/a

Kind of like the About button in the toolbar of the same Notes demo app :)


Remi


Le 5 juin 2014 à 13:59, Rune Back rune.b...@gmail.com a écrit :

 Hi Remi
  
 No good Remi. 70%?!! - I was hoping for better news :((
  
 So you go from screen A to B and to C. At C you update some information which 
 means you also need to update screen A and B. So after the update you go 
 straight to screen B and before doing so you update the screen and 
 everything's ok. But ... when you at screen B hit the backButton the old info 
 at screen A will appear. (If I remember correctly that is what will happen.)
  
 No easy (almost) built-in solution? ~)
  
 Regards
  
 Rune
  
 
 
 2014-06-05 14:02 GMT+03:00 Remi Grumeau remi.grum...@gmail.com:
 eh eh :)
 If you don't play the rules, be ready to face those kind of problems ;)
 
 Emy deals with going from screen A to screen B by itself. If you want no 
 transitions between screens, just set emy.transitionMode to none
 http://www.emy-library.org/documentation/1.0/core-documentation.html#emy-transitionmode
 
 Then going back and forward with browser prev/next buttons is supported.
 
 Only way to do it by yourself would be to totally recreate 70% of the 
 library, aka dealing with hash  hashChange events.
 And i'm pretty sure you don't want to do that :)
 
 
 Or, even worse, you can hide the backButton, and create your own backButton 
 (just call it something else than backButton) with the onClick you want on 
 it.
 That wouldn't support the device physical back button by the way...
 
 
 Remi
 
 Le 5 juin 2014 à 07:55, Rune Back rune.b...@gmail.com a écrit :
 
 Hi
 
 I've got all pages in one section/section. When changing to another page 
 I change the content of this section/section This raises the need of 
 changing the backButton so that it instead of doing something like 
 window.history.back() it might call myFunction(myVar) where I can update the 
 content of the section/section.
 
 How do I do that?
 
 Thank you for any help
 
 Rune
 
 
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to iphonewebdev+unsubscr...@googlegroups.com.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev.
 For more options, visit https://groups.google.com/d/optout.
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to iphonewebdev+unsubscr...@googlegroups.com.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev.
 For more options, visit https://groups.google.com/d/optout.
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to iphonewebdev+unsubscr...@googlegroups.com.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: Emy list editing

2013-04-27 Thread Remi Grumeau
Btw, added to the milestone list:
https://github.com/remi-grumeau/emy/issues/milestones?with_issues=no

Anybody to work on that?


Remi

Le lundi 22 avril 2013 14:05:25 UTC+2, Remi Grumeau a écrit :

 The shared concept is to keep the main core files small  clean. 
 At this stage, both library are mainly ready-to-use CSS UI elements + a 
 bit of Javascript to deal with sliding transitions, browser back  forward 
 buttons  ajax submission. 
 That's pretty much it.
 That's why any other functionalities like Themes, Google Analytics or 
 Extended Styles plugins (and so would this edit/validation) are separate 
 files. And why you won't find anything like this in iUI neither Emy at the 
 moment.

 That said, we have something very interesting here for a nice plugin!
 Two different ways to handle edit / delete a list

 This first one (very iPhonish in fact)

 http://tuts-authors.s3.amazonaws.com/mobile.tutsplus.com/Bart%20Jacobs/2012/12/24/figure-01.1.png

 Or this second one

 http://dragonforged.com/devblog/wp-content/uploads/2009/01/maildelete-300x147.jpg
 Where you select row by row, and hit Delete selected.

 Like in the iOS Mail app, and in pretty much all other platforms in fact
 http://fs02.androidpit.info/ass/x09/9401909-1363800270247.jpg
 http://gadgetix.com/wp-content/uploads/2010/12/BloghuB-Comments-All.jpg
 http://comtech247.net/wp-content/uploads/2012/06/IMG_0025.jpg

 http://rimhelpblog.files.wordpress.com/2011/07/bridge-messages-6.jpg?w=360h=355

 So as a cross-platform library, my $0.02 would be to implement something 
 similar than this, rather than the touchscreen-only iPhonish first solution.

 Plugin should then:
 - Listen for the aftertransition event and check if a data-editablelist 
 attribute is set on the active view node
 - Add and Edit“ button
 - If tapped, a class editable might be added to the view's node, and 
 each list item should get a delete toggle element.
 - Once Delete selected is fired, all selected element should get deleted 
 form the list
 - A callback function should return all deleted elements ID.

 In fact, it really sounds more like an editing plugin more than a delete 
 plugin, since the callback should returns you the selection, then you 
 should be able to do whatever you want with it.
 Use cases could be: mark as read, mark as unread, delete, keep only those 
 and remove others, send a grouped email to those selected people, set as 
 done … endless use cases in fact.

 So i guess the callback function should only return the selection, then 
 the developer decides what to do with it.
 And a few cases could be pre-built, like removeItems for example.

 Any Javascript dev to handle this (or just a part) ?
 Would a bounty (https://bountify.co) would decide some dev to handle this 
 task?


 Remi


 Le 22 avr. 2013 à 00:30, Will Hartung willhart...@gmail.com a écrit :



 On Sunday, April 21, 2013 12:24:03 PM UTC-7, Remi Grumeau wrote:

 Hi Will, 

 What do you mean exactly by list editing? 
 This mailing-list ? 
 A specific demo app? 

 Or a real UI component like this: 
 http://photos.appleinsider.com/12.01.04-Editing.jpg 


 This. The standard TableView editing look and feel. You have the + 
 button in the upper right, to add things, and a Edit button. When Edit is 
 click, text animates and slides over and the icons slide fade in, tap an 
 icon, a delete button slides in, and then the row deletes and is animated 
 away. Finally, the Done button is tapped and the icons fade away and the 
 sliding is reversed.

 I just wasn't sure how far the vision was of where this toolkit would go, 
 or where iUI was currently, if it had a similar kind of functionality.


 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to iphonewebdev+unsubscr...@googlegroups.com.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Emy list editing

2013-04-22 Thread Will Hartung


On Sunday, April 21, 2013 12:24:03 PM UTC-7, Remi Grumeau wrote:

 Hi Will, 

 What do you mean exactly by list editing? 
 This mailing-list ? 
 A specific demo app? 

 Or a real UI component like this: 
 http://photos.appleinsider.com/12.01.04-Editing.jpg 


This. The standard TableView editing look and feel. You have the + 
button in the upper right, to add things, and a Edit button. When Edit is 
click, text animates and slides over and the icons slide fade in, tap an 
icon, a delete button slides in, and then the row deletes and is animated 
away. Finally, the Done button is tapped and the icons fade away and the 
sliding is reversed.

I just wasn't sure how far the vision was of where this toolkit would go, 
or where iUI was currently, if it had a similar kind of functionality.

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Emy list editing

2013-04-22 Thread Remi Grumeau
The shared concept is to keep the main core files small  clean. 
At this stage, both library are mainly ready-to-use CSS UI elements + a bit of 
Javascript to deal with sliding transitions, browser back  forward buttons  
ajax submission. 
That's pretty much it.
That's why any other functionalities like Themes, Google Analytics or Extended 
Styles plugins (and so would this edit/validation) are separate files. And why 
you won't find anything like this in iUI neither Emy at the moment.

That said, we have something very interesting here for a nice plugin!
Two different ways to handle edit / delete a list

This first one (very iPhonish in fact)
http://tuts-authors.s3.amazonaws.com/mobile.tutsplus.com/Bart%20Jacobs/2012/12/24/figure-01.1.png

Or this second one
http://dragonforged.com/devblog/wp-content/uploads/2009/01/maildelete-300x147.jpg
Where you select row by row, and hit Delete selected.

Like in the iOS Mail app, and in pretty much all other platforms in fact
http://fs02.androidpit.info/ass/x09/9401909-1363800270247.jpg
http://gadgetix.com/wp-content/uploads/2010/12/BloghuB-Comments-All.jpg
http://comtech247.net/wp-content/uploads/2012/06/IMG_0025.jpg
http://rimhelpblog.files.wordpress.com/2011/07/bridge-messages-6.jpg?w=360h=355

So as a cross-platform library, my $0.02 would be to implement something 
similar than this, rather than the touchscreen-only iPhonish first solution.

Plugin should then:
- Listen for the aftertransition event and check if a data-editablelist 
attribute is set on the active view node
- Add and Edit“ button
- If tapped, a class editable might be added to the view's node, and each 
list item should get a delete toggle element.
- Once Delete selected is fired, all selected element should get deleted form 
the list
- A callback function should return all deleted elements ID.

In fact, it really sounds more like an editing plugin more than a delete 
plugin, since the callback should returns you the selection, then you should be 
able to do whatever you want with it.
Use cases could be: mark as read, mark as unread, delete, keep only those and 
remove others, send a grouped email to those selected people, set as done … 
endless use cases in fact.

So i guess the callback function should only return the selection, then the 
developer decides what to do with it.
And a few cases could be pre-built, like removeItems for example.

Any Javascript dev to handle this (or just a part) ?
Would a bounty (https://bountify.co) would decide some dev to handle this task?


Remi


Le 22 avr. 2013 à 00:30, Will Hartung willhart...@gmail.com a écrit :

 
 
 On Sunday, April 21, 2013 12:24:03 PM UTC-7, Remi Grumeau wrote:
 Hi Will, 
 
 What do you mean exactly by list editing? 
 This mailing-list ? 
 A specific demo app? 
 
 Or a real UI component like this: 
 http://photos.appleinsider.com/12.01.04-Editing.jpg 
 
 This. The standard TableView editing look and feel. You have the + button 
 in the upper right, to add things, and a Edit button. When Edit is click, 
 text animates and slides over and the icons slide fade in, tap an icon, a 
 delete button slides in, and then the row deletes and is animated away. 
 Finally, the Done button is tapped and the icons fade away and the sliding is 
 reversed.
 
 I just wasn't sure how far the vision was of where this toolkit would go, or 
 where iUI was currently, if it had a similar kind of functionality.
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to iphonewebdev+unsubscr...@googlegroups.com.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Emy list editing

2013-04-21 Thread Hello Gurus
Hi Will, 

What do you mean exactly by list editing?
This mailing-list ?
A specific demo app?

Or a real UI component like this:
http://photos.appleinsider.com/12.01.04-Editing.jpg

This last screenshot could be a nice plugin/extension module, definitely 
something i'd be happy to work on with someone.
Splited in two different jobs:
- create all CSS new classes for the edit mode (new UI elements  buttons)
- Javascript code to toggle between the two modes, and how to delete a list 
element
- Javascript callback method when user tap the Done button

Not a 20min job btw...

What about a bounty?

Remi

Le 20 avr. 2013 à 19:27, Will Hartung willhart...@gmail.com a écrit :

 I know, it's early, and I'm quite new to this.
 
 The demos look great, what little I've seen.
 
 My simple question is whether we'll be getting the Edit capability on 
 Lists/TableViews any time soon. Or is there something somewhere that already 
 lets us do that readily.
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to iphonewebdev+unsubscr...@googlegroups.com.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to iphonewebdev+unsubscr...@googlegroups.com.
To post to this group, send email to iphonewebdev@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.