Re: SV: NFC

2019-03-27 Thread Remi Grumeau
If you want to transfer datas between two computers, the only other way i see 
would be a P2P communication via WebRTC. I never did try it btw.

WebBluetooth might be a way too.

But nothing here helps with NFC btw.


> Le 27 mars 2019 à 13:38, Mogens Beltoft  a écrit :
> 
> NFC is an RFID technology (NFC is near field RFID), not a way of 
> communicating arbitrary data between devices.
> I guess you should look into encrypting the data you need to communicate.
> I don't see that many ways around talking to a server of some kind to 
> communicate between devices from web environment.
> 
> /Mogens
> 
>> Den 27. marts 2019 kl. 13.20.03 +01.00, skrev Satu satu 
>> :
>> Interesting!
>> I use över 200Kb JS code, without  counting EMY. I can very well add som Kbs 
>> to it in order to make NFC work.
>> In some industries the information the company owns is what really gives the 
>> company it's value. In those cases they guard the information at any cost. I 
>> thought it would be a great sales argument for such a company if my APP 
>> would be able to data transfer using NFC instead of data transfer via the 
>> server.
>> R.
>> Från: Remi Grumeau
>> Skickat: ‎27.‎3.‎2019 13:44
>> Till: iphonewebdev
>> Ämne: Re: NFC
>> Hi Rune,
>> 
>> NFC is a network protocol, EMY is a client side library. There is no such 
>> thing as integrating EMY with NFC …
>> 
>> At best, you can connect an EMY app to a NFC reader via UDF / WebSocket. 
>> A NFC reader connected to a ESP8866 could do that for cheap I guess.
>> 
>> But that’s pure Javascript, not really something related to a frontend UI 
>> library.
>> 
>> Cheers,
>> Remi
>> 
>> Le 27 mars 2019 à 12:14, Rune Back  a écrit :
>> 
>> Hi!
>> 
>> Does anyone know anything about NFC (Near Field Communication)? Where can I 
>> find more info? Has anyone integrated it with EMY?
>> 
>> 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.
> 
> -- 
> 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: NFC

2019-03-27 Thread Remi Grumeau
Hi Rune,

NFC is a network protocol, EMY is a client side library. There is no such thing 
as integrating EMY with NFC …

At best, you can connect an EMY app to a NFC reader via UDF / WebSocket. 
A NFC reader connected to a ESP8866 could do that for cheap I guess.

But that’s pure Javascript, not really something related to a frontend UI 
library.

Cheers,
Remi

> Le 27 mars 2019 à 12:14, Rune Back  a écrit :
> 
> Hi!
> 
> Does anyone know anything about NFC (Near Field Communication)? Where can I 
> find more info? Has anyone integrated it with EMY?
> 
> 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 - 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-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: What's wrong with this code?

2018-03-19 Thread Remi Grumeau
section .row > input[type=radio] + label, 
section .row > input[type=checkbox] + label,
section .row > .toggle + label {
width:  100%;
max-width:  100%;
}

https://github.com/EmyLibrary/emy/blob/cbf65d893925ebec7b2bb3325c6c3190adc2bc60/emy/themes/emy/main.css#L362

parentEl > el1 + el2 means el2 must be the direct next sibling of el1 inside 
parentEl.
CSS is for cascading stylesheet so no selector can exists going backward in the 
DOM tree. 
Must be a following element.

If not following, label behave like when it’s on top of a text element, aka 30% 
max.
So it doesn’tt cover the complete row, and only the label element width toggles 
the checkbox, not the full row width (incl. the toggle element width) 
https://github.com/EmyLibrary/emy/blob/cbf65d893925ebec7b2bb3325c6c3190adc2bc60/emy/themes/emy/main.css#L279

So yeah, definitely better to put it after.

Cheers,
Remi


> Le 19 mars 2018 à 22:20, linedicons...@gmail.com a écrit :
> 
> Hey Remil
> 
> - bonus point : label should be after the div, not before it. can't remember 
> exactly why but there is a CSS selector reason for that.
> 
> I am curious about this, Look new to me... any reference?
> 
> Thank you
> 
> On Mon, Mar 19, 2018 at 2:59 AM, Remi Grumeau <remi.grum...@gmail.com 
> <mailto:remi.grum...@gmail.com>> wrote:
> You can change « for » & « id » value by whatever you want btw :)
> 
> https://www.w3schools.com/tags/att_label_for.asp 
> <https://www.w3schools.com/tags/att_label_for.asp>
> 
> Remi GRUMEAU
> 06.63.68.72.06
> https://remi-grumeau.com <https://remi-grumeau.com/>
> 
> Le 19 mars 2018 à 07:44, Rune Back <rune.b...@gmail.com 
> <mailto:rune.b...@gmail.com>> a écrit :
> 
>> My code was...
>> 
>> 
>>   Living?
>>   
>> 
>> 
>>   
>> 
>> 
>> ...when it should be something like this...
>> 
>> 
>>   
>> 
>> 
>>   
>>   Living?
>> 
>> 
>> Thanks again, Remi!
>> 
>> 
>> 2018-03-18 0:48 GMT+02:00 Remi Grumeau <remi.grum...@gmail.com 
>> <mailto:remi.grum...@gmail.com>>:
>> Two errors in fact :)
>> - Input should be a checkbox, not hidden. Otherwise, browser cannot toggle 
>> its value.
>> - you must set an "id" attribute on the input + a "for" attribute on the 
>> label, so wihen you click on the label, it toggle the input value. Label 
>> goes 100% width, on top of the toggle.
>> 
>> See this pen https://codepen.io/remi-grumeau/pen/dmpLvX?editors=1000 
>> <https://codepen.io/remi-grumeau/pen/dmpLvX?editors=1000> 
>> I added a green color on the label so you see how it covers the whole area.
>> 
>> 
>> - bonus point : label should be after the div, not before it. can't remember 
>> exactly why but there is a CSS selector reason for that.
>> 
>> Cheers,
>> Remi
>> 
>> 
>> Remi
>> 
>> On Sat, Mar 17, 2018 at 12:33 PM, Rune Back <rune.b...@gmail.com 
>> <mailto:rune.b...@gmail.com>> wrote:
>> 
>> 
>>   Living?
>>   
>> 
>> 
>>   
>> 
>> 
>> Thankful 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 
>> <mailto:iphonewebdev+unsubscr...@googlegroups.com>.
>> To post to this group, send email to iphonewebdev@googlegroups.com 
>> <mailto:iphonewebdev@googlegroups.com>.
>> Visit this group at https://groups.google.com/group/iphonewebdev 
>> <https://groups.google.com/group/iphonewebdev>.
>> For more options, visit https://groups.google.com/d/optout 
>> <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 
>> <mailto:iphonewebdev+unsubscr...@googlegroups.com>.
>> To post to this group, send email to iphonewebdev@googlegroups.com 
>> <mailto:iphonewebdev@googlegroups.com>.
>> Visit this group at https://groups.google.com/group/iphonewebdev 
>> <https://groups.google.com/group/iphonewebdev>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.

Re: What's wrong with this code?

2018-03-19 Thread Remi Grumeau
You can change « for » & « id » value by whatever you want btw :)

https://www.w3schools.com/tags/att_label_for.asp

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

> Le 19 mars 2018 à 07:44, Rune Back <rune.b...@gmail.com> a écrit :
> 
> My code was...
> 
> 
>   Living?
>   
> 
> 
>   
> 
> 
> ...when it should be something like this...
> 
> 
>   
> 
> 
>   
>   Living?
> 
> 
> Thanks again, Remi!
> 
> 
> 2018-03-18 0:48 GMT+02:00 Remi Grumeau <remi.grum...@gmail.com>:
>> Two errors in fact :)
>> - Input should be a checkbox, not hidden. Otherwise, browser cannot toggle 
>> its value.
>> - you must set an "id" attribute on the input + a "for" attribute on the 
>> label, so wihen you click on the label, it toggle the input value. Label 
>> goes 100% width, on top of the toggle.
>> 
>> See this pen https://codepen.io/remi-grumeau/pen/dmpLvX?editors=1000 
>> I added a green color on the label so you see how it covers the whole area.
>> 
>> 
>> - bonus point : label should be after the div, not before it. can't remember 
>> exactly why but there is a CSS selector reason for that.
>> 
>> Cheers,
>> Remi
>> 
>> 
>> Remi
>> 
>>> On Sat, Mar 17, 2018 at 12:33 PM, Rune Back <rune.b...@gmail.com> wrote:
>>> 
>>> 
>>>   Living?
>>>   
>>> 
>>> 
>>>   
>>> 
>>> 
>>> Thankful 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 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.

-- 
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: What's wrong with this code?

2018-03-17 Thread Remi Grumeau
Two errors in fact :)
- Input should be a checkbox, not hidden. Otherwise, browser cannot toggle
its value.
- you must set an "id" attribute on the input + a "for" attribute on the
label, so wihen you click on the label, it toggle the input value. Label
goes 100% width, on top of the toggle.

See this pen https://codepen.io/remi-grumeau/pen/dmpLvX?editors=1000
I added a green color on the label so you see how it covers the whole area.


- bonus point : label should be after the div, not before it. can't
remember exactly why but there is a CSS selector reason for that.

Cheers,
Remi


Remi

On Sat, Mar 17, 2018 at 12:33 PM, Rune Back <rune.b...@gmail.com> wrote:

> 
> 
>   Living?
>   
> 
> 
>   
> 
>
> Thankful 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 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 <rune.b...@gmail.com> 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 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 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 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: R/O checkbox - EMY

2018-01-01 Thread Remi Grumeau
Mogens is right, "readonly" makes sense on inputs that has text in them
(text, date, password, email, ...)
For booleans like radio or checkbox, it's disabled.

https://www.w3schools.com/tags/att_input_disabled.asp

Remi


Remi

On Mon, Jan 1, 2018 at 12:28 PM, Mogens Beltoft  wrote:

> Try disabled instead of readonly.
>
> /Mogens
>
>
> On 01-01-2018 12:08, Rune Back wrote:
>
> This doesn't seem to work:
>
>
>  >
>
> How should I do a R/O checkbox?
>
> --
> 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: Geolocation not working after iOS 10.0.2?

2017-05-13 Thread Remi Grumeau
Well.
It is a drag, but it definitely isn't a waste of time. HTTPS is for good,and 
anything related to user's datas should be encrypted. LetsEncrypt provides free 
SSL certificates, and shared hosting plans are now setting them up for free on 
your domain (at least OVH does).

I do have a webapp service that does exactly what you talk about, and once 
HTTPS is on, geolocation works like a charm.
https://www.pocket-locator.com

Remi

Le jeudi 20 octobre 2016 12:33:01 UTC+2, Thoern a écrit :
> It seems apple have made it hard for everybody who wants to position yourself 
> in a map, using a regular web app. HTML5 geolocation api.
> 
> 
> it seems one have to use a HTTPS / SSE   (same with Chrome latest edition?)
> 
> 
> Think its major drag and a wast of many peoples time. 
> 
> 
> or am I wrong?

-- 
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: Geolocation not working after iOS 10.0.2?

2016-10-20 Thread Remi Grumeau
You're right, Apple has follow Google Chrome path in its "HTTPS for all" quest.

Thing is, geolocation is a user personal data, so it is not something totally 
unfair or stupid move they did here. Note that LetsEncrypt offers free ssl 
certificates you can jnstall very easily on your server tru NPM, and shared 
hosting companies like OVH did install this free certificate for all its 
customers websites for free.

Also, we (as developers) have been warned about this for at least a year now, 
and still can use this API while developing since this limitation does not 
occur on "localhost" domain name.

A real PAI if you're not already on a https hosting service or do not maintain 
it, but all in all it's not such a bad thing for the user...

My 0,02€,

Remi

> Le 20 oct. 2016 à 12:33, Thoern  a écrit :
> 
> It seems apple have made it hard for everybody who wants to position yourself 
> in a map, using a regular web app. HTML5 geolocation api.
> 
> it seems one have to use a HTTPS / SSE   (same with Chrome latest edition?)
> 
> Think its major drag and a wast of many peoples time. 
> 
> or am I wrong?
> -- 
> 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: website broken last few day

2016-03-28 Thread Remi Grumeau
Not sure this is what you are looking for, but i have an old repo in 
backups still here
http://remi-grumeau.com/projects/iui/docs/
Some links & ressources might be broken btw.

Anyhow, perhaps you might consider switching to Emy by now.
iUI hasn't been supported since 2012, and what i coded to be iUI 0.5 wasn't 
"acceptable" and become foundations to Emy 1.0.

If you're used to iUI, you should quickly feel home using Emy.
http://www.emy-library.org/

Remi


Le jeudi 3 septembre 2015 17:28:52 UTC+2, joelkeepup a écrit :
>
> Docs links lead to Grails runtime exception:
>
> http://www.iui-js.org/documentation/latest/getting-started.html
>
> Are the docs anywhere else?
>

-- 
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: Uncaught TypeError: emy.param is not a function

2016-03-28 Thread Remi Grumeau
Hi Rahul,

Don't really see where the problem could come from, except you are trying 
to submit hacky datas.
See this link, i copy paste your code, and create a PHP to list its result.
http://www.emy-library.org/sandbox/form/
php file can be downloaded here : 
http://www.emy-library.org/sandbox/form/post.php.zip

Please try to download the latest version of Emy, and see if it still give 
you this error

Remi


Le lundi 21 mars 2016 17:13:41 UTC+1, Rahul Prasad a écrit :
>
> Hi Remi, 
>
> Hope you are doing well. 
>
> I am using your framework to develop an app, it's simple to use and 
> awesome! 
>
> Almost done with the project but I am stuck with this error while trying 
> to submit a form: 
>
> "Uncaught TypeError: emy.param is not a function" 
>
> Could you help me understand this issue please. 
>
> Below is my code: 
>
>  
>action="/mycustomthankyoupage/a/10?"> 
>  
>
>  placeholder="Type your text"> 
> First Name 
>
>
>  placeholder="Type your text"> 
> Last Name 
>
>
>  
> Select 
> AA 
> AB 
> AC 
>  
> Options 
>
>
>  
> Email 
>
>
>  
> Phone # 
>
>
>
>
>
>
>  
>  class="mainButton greenButton">Submit 
>  
>  
>
> I also tried implementing your example in my web app as a test but gets 
> same error: 
> http://www.emy-library.org/demos/getting-started/forms.html#_form-post 
>
> Thanks for your time and hope to hear from you soon. 
>
> Kind Regards, 
>
> Rahul.

-- 
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: Modern iUI Framework. (iOS 7 style UI.)

2016-02-20 Thread Remi Grumeau
Hi Morjiai,

Before you spend more time creating an iUI iOS7+ theme, you should consider 
giving www.emy-library.org a look. 

Specially its plugins section
http://www.emy-library.org/plugins.html

And its iOS7+ theme :)
http://www.emy-library.org/themes/5/ios7.html

Cheers,
Remi

Le samedi 20 février 2016 11:05:41 UTC+1, Morjiai a écrit :
>
> Hi, I have been trying to make a working version of iUI for iOS 7 style 
> UI. 
> If you would like to check it out, and think you can help, you can find it 
> on github. 
> https://github.com/Morjiai/ModerniUi-iOS 
>

-- 
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: Opening Native App with Emy

2015-12-28 Thread Remi Grumeau
Thx !
If you have any URL or screenshot you can share with us, i'd be happy to
see what you create with Emy :)

Chhers


Remi

On Wed, Dec 23, 2015 at 9:35 PM, Arthur Shanker <arthur.shan...@gmail.com>
wrote:

> Thank you, Remi, works like a charm.
>
> I greatly appreciate the patience and the source material.
>
> On Mon, Dec 21, 2015 at 3:07 PM, Remi Grumeau <remi.grum...@gmail.com>
> wrote:
>
>> Hi Arthur,
>>
>> There is a method called "isNativeUrl" in both iUI & Emy to deal with
>> native URL Schemes.
>>
>> http://emy-library.org/documentation/latest/core-documentation.html#emy-isnativeurl
>>
>> Any clic event is intercepted by Emy, and go tru a list of checks, this
>> one included.
>> If this method returns true, then Emy stops checks and leave the browser
>> to handle the clic event by its own.
>> So the simplest for now for you is to edit emy.js & add yours in this
>> method.
>>
>> The best would be to modify Emy's code to add a addNativeUrl method so
>> you can do this onload from your code without editing the core one.
>> ( Github pull request appreciate :) )
>>
>> Remi
>>
>>
>> On Mon, Dec 21, 2015 at 7:48 PM, Arthur <arthur.shan...@gmail.com> wrote:
>>
>>> I migrated my studying from iUI Framework to Emy for building a
>>> standalone web app and ran into a problem.
>>>
>>> Under iUI, I had a link to a native iOS app which worked,and a link to
>>> an external web site ( using "a href") which  didn't.
>>>
>>> Now, the link to the external web site works (using "a href" and
>>> "target="_blank") but the native app does not work (using the same Apple
>>> URI scheme as before (a href="abdigateaccess://WI")
>>>
>>> Any suggestions how to fix this?
>>>
>>> --
>>> 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.
>

-- 
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: Opening Native App with Emy

2015-12-21 Thread Remi Grumeau
Hi Arthur,

There is a method called "isNativeUrl" in both iUI & Emy to deal with
native URL Schemes.
http://emy-library.org/documentation/latest/core-documentation.html#emy-isnativeurl

Any clic event is intercepted by Emy, and go tru a list of checks, this one
included.
If this method returns true, then Emy stops checks and leave the browser to
handle the clic event by its own.
So the simplest for now for you is to edit emy.js & add yours in this
method.

The best would be to modify Emy's code to add a addNativeUrl method so you
can do this onload from your code without editing the core one.
( Github pull request appreciate :) )

Remi


On Mon, Dec 21, 2015 at 7:48 PM, Arthur  wrote:

> I migrated my studying from iUI Framework to Emy for building a standalone
> web app and ran into a problem.
>
> Under iUI, I had a link to a native iOS app which worked,and a link to an
> external web site ( using "a href") which  didn't.
>
> Now, the link to the external web site works (using "a href" and
> "target="_blank") but the native app does not work (using the same Apple
> URI scheme as before (a href="abdigateaccess://WI")
>
> Any suggestions how to fix this?
>
> --
> 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: the use of loading.gif

2015-04-15 Thread Remi Grumeau
For this matter, Emy works exactly the same as iUI.
A link in a Li element with a selected=progress attribute shows up the
loading GIF. This attribute is set by internal Ajax mechanism showByHref.

This is the only purpose and default use of this loading gif. If you want
to use it on a button or in any other case, you'll have yo code it
yourself. That's the KISS philosophy of iUI/Emy.

Doing this is pretty damn simple actually, just add a class to your button
(emy.addClass()), create this class in CSS to set the text color to
rgba(0,0,0,0) and put the GIF as a background. Remove the class when done.
You're done :)
--
De : Rune Back rune.b...@gmail.com
Envoyé : ‎15/‎04/‎2015 08:42
À : iphonewebdev@googlegroups.com
Objet : Re: the use of loading.gif

Thank you for the answer! - I've been doing it in the following way, which
doesn't seem so neat although it works:

var junk=document.getElementById(submitButtonText).innerHTML
document.getElementById(submitButtonText).innerHTML = Working...
// fetching the info from the server
document.getElementById(submitButtonText).innerHTML = junk


I'm sorry for not explaining myself more clearly. - I'm using emy
http://www.emy-library.org/. The main.css
http://www.emy-library.org/emy/1.1/themes/emy/main.css should contain
everything necessary. I still don't seem to be able to get it to work
(although it works here
http://www.emy-library.org/documentation/latest/assets/samples/getting-started-example-2.html#_first).
Furthermore I don't know how to make the loading image to work with a
*button*. Should I just use *my old* way changing the button text?

Rune

2015-04-14 9:03 GMT+03:00 Mogens Beltoft mog...@beltoft.dk:

 In async calls you set up a callback funtion to receive the result of e.g.
 the login. The callback function removes the loading.gif while you set the
 loading.gif just before starting the async call.

 Have a look at this:

 http://stackoverflow.com/questions/1853662/how-to-show-page-loading-div-until-the-page-has-finished-loading

 /Mogens

 On April 14, 2015, Rune Back rune.b...@gmail.com wrote:

 How do I use the *loading.gif* ? I would be interested in using it with a
 (a)synchronous request i.e. at login when checking with the server that the
 login info is correct.

 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 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.


Releasing Emy 1.1

2015-03-05 Thread Remi Grumeau
Hey list!

Long time no see :)
I'm happy to share with you this very great news : i've just released Emy 
1.1. \o/

In brief, i fixed some very odd bugs in the navigation stack, improve the 
ajax method, add 3 new themes, totally recode the toggle form component, 
improve the insertViews method, create new UI elements as part of the 
Elements plugin, ... well, quite a lot :)

If you want a complete changelog from v1.0 to v1.1, check out the pull 
request
https://github.com/EmyLibrary/emy/pull/11

Download links, demos, plugins and an updated documentation are all 
available starting now at www.emy-library.org.


Looking forward for some feedback!

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 http://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: How can I prevent iUI to use its own datepicker

2015-01-30 Thread Remi Grumeau
Wow just saw your message now.
I don't really think there is a date picker in iUI … i'm pretty sure iUI 
doesn't even deal with date inputs.
So the date picker you have probably is the default browser's one.

Sorry for this late reply, you probably don't need it anymore btw :)

Le vendredi 29 août 2014 09:36:11 UTC+2, Fibo a écrit :

 Hi,

 I'm using a previous version of iUI; WhenI used that, most browsers 
 support for date input field was poor, so iUI's datepeicker was a better 
 solution.
 This is not true anymore, most specifically since the format used by iUI 
 fails with some browsers / date combination, while the native date field 
 works well if using some tricks.

 Not sure how / where I can disable this...

 Thx for help, suggestions and pointers


-- 
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.


Emy v1.1 release

2015-01-30 Thread Remi Grumeau
Hey list!

I'm actually releasing Emy 1.1.

I'll sum up all major modifications between v1.0  v1.1 in a later post but 
quite a few things has been changed 
(https://github.com/EmyLibrary/emy/commits/v1.1). Fear not, if you already have 
an webapp powered by Emy (you should, it rocks! :) ), nothing should break with 
this update.

This v1.1 brings some new cool kids in town:
- iOS 7/8 theme : http://emy-library.org/themes/5/ios7.html
- Blackberry 10 theme : http://emy-library.org/themes/6/bb10.html
- new Elements plugin : http://emy-library.org/extensions/6/elements.html
- new grid layout in the Extended Styles plugin : 
http://emy-library.org/extensions/1/extended-styles.html (experimental)

Website has been updated too, mainly the documentation part (style 
documentation still need to be updated) and plugins/themes.

If one of you have a few dozen minutes to spare (lunch break?) I would really 
appreciate some feedback / bug tracking / 404 hunting / error  typo reports.

Thanks !
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 http://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: IOS7 theme for Emy

2014-07-08 Thread Remi Grumeau
Hey Alon,

can you check on your BB phone now? I've made a few changes and it might
looks fine on BB too now.

Thx


Remi


On Thu, Jul 3, 2014 at 12:49 AM, Alon Raskin aras...@go3i.com wrote:

  Looks great Remi. A few bugs on my BB10 but overall a great start.

  Sent from my BlackBerry 10 smartphone.
*From: *remi.grum...@gmail.com
 *Sent: *Wednesday, July 2, 2014 5:46 PM
 *To: *iphonewebdev
 *Reply To: *iphonewebdev@googlegroups.com
 *Subject: *IOS7 theme for Emy

  Hi list!

  Just wanted to share with you guys my current progress with Emy's  iOS7
 theme.

  http://emy-library.org/emy/1.1/themes/ios7/test.html

  It really is a work in progress yet pretty good looking, I still have
 the dialog panel to do and fix the form toggle element.

  Some feedback would be really appreciate!

  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 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: IOS7 theme for Emy

2014-07-07 Thread Remi Grumeau
Hi,

Well... the hosting company really isn't what i would define as reliable, i 
made a backup on my domain for the time being (a dedicated server is on its way)

You can temporary see the iOS7 theme here:
http://www.remi-grumeau.com/emy/emy/1.1/themes/ios7/test.html

Still WIP, dialog still hangs  form toggle button still won't show its green 
background (for obscure reason...)

Remi


Le 3 juil. 2014 à 09:02, Kemal Serkan Yildirim kemalserkanyildi...@gmail.com 
a écrit :

 How can I acces your site 
 
 Forbidden
 
 You don't have permission to access /emy/1.1/themes/ios7/test.html on this 
 server.
 
 Additionally, a 403 Forbidden error was encountered while trying to use an 
 ErrorDocument to handle the request.
 
 
 
 
 
 2014-07-03 1:49 GMT+03:00 Alon Raskin aras...@go3i.com:
 Looks great Remi. A few bugs on my BB10 but overall a great start. 
 
 Sent from my BlackBerry 10 smartphone.
 From: remi.grum...@gmail.com
 Sent: Wednesday, July 2, 2014 5:46 PM
 To: iphonewebdev
 Reply To: iphonewebdev@googlegroups.com
 Subject: IOS7 theme for Emy
 
 Hi list!
 
 Just wanted to share with you guys my current progress with Emy's  iOS7 theme.
 
 http://emy-library.org/emy/1.1/themes/ios7/test.html
 
 It really is a work in progress yet pretty good looking, I still have the 
 dialog panel to do and fix the form toggle element.
 
 Some feedback would be really appreciate!
 
 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 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.
 
 
 
 -- 
 
 
 Software Developer
 Logo Business Solutions
 kemalserkanyildi...@gmail.com
  
 
   
 Kemal Serkan YILDIRIM
 about.me/kyildirim
  
 
 
 -- 
 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-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 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: HTML5 (WebApp) solution for mms

2014-05-10 Thread Remi Grumeau
Sorry guys, i'm going to ban You both. If you have anything to say not to
get ban, contact me.


On Saturday, May 10, 2014, Mina Damani fu.lakhanidevelop...@gmail.com
wrote:



  I am looking for HTML5 (WebApp) solution for mms.. but it should be
 compatible with Iphone and Andriod..
  Please advise.

 -

 WORST PSYCHO TYPE OF PERSON

 Never work with him

 No one (even GOD) can not satisfy him

 He thing every person in this world is a CHEATER (except him)

 He has lots of idle time to blame others.

 PLEASE don't work with him

 HE IS A TOTAL PSYCHO, A MAD

 -

 --
 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 javascript:;.
 To post to this group, send email to 
 iphonewebdev@googlegroups.comjavascript:;
 .
 Visit this group at http://groups.google.com/group/iphonewebdev.
 For more options, visit https://groups.google.com/d/optout.



-- 

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 http://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: Demo Image like footer and fixed header - iUi

2014-04-17 Thread remi . grumeau
Position fixed puts the DOM element out of the flow. Being out, it can't inherit from other to set its box model parameters.That's why it's trying to set its width based on its content rather than full width. Forcing full width do the job. Then you get a z-index issue so you have to increase it too.Code could bediv class="toolbar" style="width:100%;position:fixed;z-index:99" Working exemple:http://jsfiddle.net/VK374/Remi  De: Atanu ShomeEnvoyé: jeudi 17 avril 2014 08:12À: iphonewebdev@googlegroups.comRépondre à: iphonewebdev@googlegroups.comObjet: Re: Demo Image like footer and fixed header - iUiThank you for your reply. And thanks for informing about the footer. I've already tried position fixed and that is breaking the style. Like thishttp://jsfiddle.net/LkgpX/240/On Wednesday, April 16, 2014 5:30:55 PM UTC+6, Remi Grumeau wrote:The topbar, by default, has position: absolute, which means it keeps its position at a 0,0 position on the layout.You can change to position: fixed in the css, so it's fixed on the screen.Bottom bar you see is the navigator one (Safari) :)Remi   De: Atanu ShomeEnvoyé: mercredi 16 avril 2014 12:52À: iphone...@googlegroups.comRépondre à: iphone...@googlegroups.comObjet: Demo Image like footer and fixed header - iUiI want to use iUi to convert one of my cordova app to iphone look. I want a fixed header like jquery mobile. Is there any property in iUi for this?And there is footer in most images on the documentation. Like herehttp://www.iui-js.org/documentation/latest/getting-started.html in the first mobile UI image there is a small blue footer. I can't footer in any of the example files after download. How to activate that footer and use that. Am I missing something?



-- 
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...@googlegroups.com.
To post to this group, send email to iphone...@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: Demo Image like footer and fixed header - iUi

2014-04-16 Thread remi . grumeau
The topbar, by default, has position: absolute, which means it keeps its position at a 0,0 position on the layout.You can change to position: fixed in the css, so it's fixed on the screen.Bottom bar you see is the navigator one (Safari) :)Remi   De: Atanu ShomeEnvoyé: mercredi 16 avril 2014 12:52À: iphonewebdev@googlegroups.comRépondre à: iphonewebdev@googlegroups.comObjet: Demo Image like footer and fixed header - iUiI want to use iUi to convert one of my cordova app to iphone look. I want a fixed header like jquery mobile. Is there any property in iUi for this?And there is footer in most images on the documentation. Like herehttp://www.iui-js.org/documentation/latest/getting-started.html in the first mobile UI image there is a small blue footer. I can't footer in any of the example files after download. How to activate that footer and use that. Am I missing something?



-- 
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: Multiple form

2014-04-13 Thread Remi Grumeau
Hi Paul,

If you look at the iui.js file itself, line 577, you can see how iUI deals 
with form.
https://github.com/remi-grumeau/iUI/blob/master/web-app/iui/iui.js
Onclick, it checks if the button or link has an attribute type equals to 
submit. If so, it gets the closest form element in parent nodes.
Which means the submit button has to be between form  /form + needs to 
have a type=submit (you can put this on a input, button or link).
Then it looks if the form has a target=_self and use the onsubmit 
attribute to do the job. If onsubmit is not set, then a regular 
form.submit() is triggered.

That's how forms are taken in account in iUI.
But all of this is done only when you click on the submit button.

If the form element has a target=_self, there is submit event by default 
on all form. iui.js, line 660.
What it does is adding a classname progress on the form element, using 
its action value to trigger iui.showPageByHref() (in this case, it 
returns the action url output in the DOM and navigates to it).

So perhaps there is something wrong with the action value or with the 
format / content of form outputs.

Remi

Le mardi 1 avril 2014 16:24:42 UTC+2, Paul Hooker a écrit :

 Hello,
   I have created a iUI webapp which uses a series of HTML forms.

   I have found a problem.

   If I navigate to a HTML form, but don't submit instead go backwards... 
 When I navigate to another form I can not submit that form.

   I have given each form a unique ID and Name, so the javascript submit is 
 different in each case.  However, backing out of a form removes the ability 
 to submit any other form.

   Is this a known bug?  How do I fix it?

 Thanks!



-- 
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: problem with android theme

2014-04-13 Thread Remi Grumeau
Then it probably means your server-side script is doing a bad job, and 
$Android is not set to true with Android default browser.


Le mercredi 26 mars 2014 12:48:20 UTC+1, ges87 a écrit :

 Hello

 I have built a small website for mobile with IUI
 If I use the default theme everything works fine.
 To make it nicer, I have made with php an automatic theme selection 
 depending on the kind of mobile device:

?php if($iPod||$iPhone||$iPad) { ?
link rel=stylesheet href=iui/t/defaultgrad/defaultgrad-theme.css 
 type=text/css/
?php } else if($Android) {?
link rel=stylesheet 
 href=iui/ext-sandbox/t/android/android-theme.css type=text/css/
?php } else if($webOS) {?
link rel=stylesheet href=iui/ext-sandbox/t/webos/webos-theme.css 
 type=text/css/
?php } else { ?
link rel=stylesheet href=iui/t/default/default-theme.css 
 type=text/css/
?php } ?

 This selectes correctly the theme depending on the device. 
 BUT! If I try to open the website with android using the default browser, 
 the selected div is invisible!
 If I use chrome as a browser on adroid, it works fine!
 If I force the use of the default theme for all devices, the website works 
 fine also on adroid with default browser.

 If the theme-selection is enabled, when trying to load the page, for half 
 second the page is shown correctly, after the screen becomes black

 have a look here: http://jsfiddle.net/bNchQ/ (in my page i load also 
 jquery and flexslider, that I did not include in the fiddle)



-- 
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: iOS7 theme

2014-04-13 Thread Remi Grumeau
Any news?

Le jeudi 13 mars 2014 17:20:13 UTC+1, Sean Gilligan a écrit :

 I'm hoping to get the iOS 7 them into the main repo later this month.  Any 
 help in improving it would be greatly appreciated.



 On Monday, February 3, 2014 6:27:56 PM UTC-8, Jeff wrote:

 Sean, 

 Congrats on your iOSDevCamp work. Looks like lots of good work came out 
 of that wknd!

 Just started to look into doing some more dev work using iUI and was 
 wondering about an iOS7 theme. As only a hobbyist and a relative newbie at 
 this stuff, I don't know if I can be much help, but if there's anything I 
 can do to help, let me know.

 Jeff



-- 
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: Help with login authentication and offline webapp

2014-03-21 Thread Remi Grumeau
Hi Bart,

Is content dynamic or static?

If static and not sensible, you do the login/pass test only online on first 
access and use manifest to cache all files locally.
If dynamic, then well ... it's a complicated job :)


Remi

Le 21 mars 2014 à 19:12, Bart Cockheyt bart.cockh...@gmail.com a écrit :

 Hy,
  
 It's not a native app but a 100% web-app.
 Its going to be used by a select group of users but one goal is that thay can 
 still use the app if there is no internet available.
  
 
 Op vrijdag 21 maart 2014 18:39:07 UTC+1 schreef john.mb...@googlemail.com:
 You've probably seen my new app 2014-football?!
 https://itunes.apple.com/gb/app/2014-football/id830027023?mt=8
 I use PhoneGap and get my data from an external site using JSON
 
 Hope this helps
 
 J
 
 
 
 Sent from my iPad
 
 On 21 Mar 2014, at 17:33, Bart Cockheyt bart.c...@gmail.com wrote:
 
 Hy,
  
 I'm making an 1 file webapp (different screens in 1 html file) with user 
 authentication.
 I tried different type of scripts but all seem to lack to work flawless with 
 the iUI screen setup.
 If i use a script with separate login files it screws up the backlink in the 
 topbar (displaying the login link in the first screen).
 Another thing is that it uses a mysql database to store the userdata, thats 
 ok, but one of the goals of the webapp is to also make it usable when 
 offline (cache).
 Has anyone any ideas on how to implement something like this (if possible 
 with working example)?
  
 What i need to do is this:
  
 - Making the login screen part of the index screen (load screen login if 
 not logged in, else display other content, or a script that can handle the 
 #_screenid tag)
 - Using a cacheble database (secure so no flat file, maybe msqli?) so it 
 also works when site is cached/offline
 - Letting users change there password
 - If possible admin the users when logged in as admin, add users, delete 
 users, change user password.
 - NO user registration
  
 Curently i'm using this script: http://php-login-script.com/
 It works but i have the backlink isue and the stay logged in doesen't work 
 (and is not going to work for offline usage), but it gives an idea of what 
 i'm trying to do here.
  
 Any help, pointers, tutorials, scripts are welcome.
  
  
  
 
 -- 
 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...@googlegroups.com.
 To post to this group, send email to iphone...@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: add2home with iUI

2014-03-21 Thread Remi Grumeau
Can you put a demo online?

iUI takes all childnodes of body as screens. So the one with selected=true is 
shown, others are hidden.
So is this prompt message i guess.

Force display: block!important on it, same with visibility:visible!important. 
It might help.

Remi

Le 21 mars 2014 à 19:51, Jeff fjr...@gmail.com a écrit :

 Wondering if anyone has used Cubic.org's Add2Home with an iUI WebApp. Wasn't 
 working or me so I started investigating and there appears to be a conflict 
 with iui.css (that's as far as I've gone so far) so figured someone here has 
 likely dealt with this already. 
 
 Any Thoughts?
 
 -- 
 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: Help with login authentication and offline webapp

2014-03-21 Thread Remi Grumeau
There is only one way to get a webapp offline today: cache manifest.

Cache manifest is pretty simple on the paper: once online, you access to an
url. This url as a manifest attribute in the html tag, so the browser
knows where to find it and read it.
This file is a list of urls you want the browser to keep a copy locally.
Those urls are grouped as cache, fallback  network. urls could refer
to any file (except videos afaik). But once the browser have cached those
urls locally, he will simply not ask the server again to serve this file.
except the manifest file itself got corrupt, updated or is missing. Even is
user phone/tablet has signal. That's the whole point.

This is why i'm asking if the content is sensible and if you need offline
login.

If not, then do the login online, and only put a manifest reference on the
html tag once user is logged in. So you know only logged users can has a
manifest-based local copy of the app.
This could be simple to implement, but means you store the app  its
content in its logged status  until user keeps offline, he can access
app+content forever. (if user is banned or fired, just empty his/her
manifest file and app would be removed locally - then next time it would
ask online to the server to serve the content - login screen).

If you need user to login each time + have dynamic content, then you need
to totally recreate the app to split everything between what's the app 
what's the content. So you can use the manifest file to store what is the
app files, and populate the app with datas from the online database via
Ajax calls (when online) or from the local storage (localStorage or
localDatabase are the two options). The exact same process of a native app
in fact, and the only way to do it properly. Here, you can ask online for
login/pass check, and fallback to an localStorage hash test when no signal
/ too long.

Not an easy job for sure, but a very interesting one, and totally
server-side tech agnostic (in both cases).


I'll give you 2 examples using Emy rather than iUI just because demos are
online and functional, but the exact same could be done with iUI since it's
not really related to the frontend library at all.

Emy cache manifest plugin :
http://www.emy-library.org/emy/1.0/plugins/cache-manager/cache-manager-demo.html
(see you the logo image switch from online to offline, based on what's
in fallback in its manifest file)

Emy Note app demo : http://www.emy-library.org/demos/notes/notes.html
(see how views are empty, datas stored in localStorage as a JSON string,
parsed onload to populate the app)

Hope this help.

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 http://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/d/optout.


Re: New IUI site

2014-01-26 Thread remi . grumeau
Hi Alan,You can fork the iUI website repo on GitHub, make changes and ask for a pull request. Then wait.Pretty easy.If not savvy, reply here with informations on the screen (title, author, websites, screenshots, description, ...) and we'll do that for you   De: Alan MathersEnvoyé: samedi 25 janvier 2014 22:46À: iphonewebdev@googlegroups.comRépondre à: iphonewebdev@googlegroups.comObjet: New IUI siteHi I have finished adapting my site for mobile using IUI. Would it be possible to be added to the gallery? There is only one niggle I have left with it, once you log in, the style appears to be messed up and a blank button appears to the top. If you reload then it always sorts itself out. This only seems to happen when logging in and out so I am sure its something I have done wrong somewhere along the line with the login / out script.www.jivetreasurebox.com/i/there's a temporary login:id=iuitestpw=passwordcheersAlan



-- 
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/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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Refreshing ajax content

2013-11-21 Thread Remi Grumeau
As told in another thread, there is nothing built-in in iUI to fill this
kind of app-specific use-case. It has a _replace mechanism to extend a list
view, but nothing to replace an element.

function refreshCurrentPage()
{
  iui.ajax(MyAjaxFile.php,null, 'get', function(response) {
if (response.readyState == 4) {
  var currentPage = iui.getSelectedPage();
  currentPage.innerHTML = response.responseText;
}
  });
}

Note that in this case, MyAjaxFile.php should only contains the page
fragment content.

You can also give iui.insertPages(fragment) a try:
iui.insertPages(frag)
If an AJAX call (showPageByHref()) is made without supplying a replace
element, insertPages() is called to insert the newly-created element
fragment into the page DOM. Each child-node of the HTML fragment is a panel
and *if any of them are already in the DOM, they will be replaced by the
incoming elements*.

Note that in this case, this will replace the whole page, not just its
content or a particular part of its content.


Remi


Remi


On Thu, Nov 21, 2013 at 12:06 AM, Sean Gilligan msgilli...@gmail.comwrote:

 What version of iUI are you using?  Do you have a simplified demonstration
 (or the full app) available somewhere I can look at it?

 -- Sean



 On 11/18/13 12:17 PM, Wayne Bennett wrote:

 I have built a simple iui webapp which gets data from a mysql db via ajax
 which all works the way it should. I want to refresh the data via a script
 and so need to reload the new ajax data and replace the current page
 fragment with the new data.
   I have tried this:

 function refreshCurrentPage() {
 MyAjax = iui.ajax(MyAjaxFile.php,null,null,success);
 }


 function success(Ajax){
  if (Ajax.readyState == 4){
  $('#CurrentPage').replaceWith(Ajax.responseText);
  }
 }

 That sort of works except that the selected attribute of the newly loaded
 fragment doesn't exist so I get a blank page. If I set it in my success
 script, voilla, my content appears. The only problem then is that the iui
 navigation gets screwed up. If I click the back button, I end up with two
 page fragments with selected set to true and the href links which worked
 previously, so longer work.

 I'm sure there is an easy way to do this and I've probably overlooked it
 in the documentation but I would appreciate any help you could manage.

 Thanks


 --
 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/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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: panel view exists?

2013-11-20 Thread Remi Grumeau
You mean like the Facebook native app menu ?
Most people call that a off-canvas menu, since it's mostly used for a menu.

Yes it's pretty common now.
And no, there is no such thing for now.
It would be a plugin, it's in my next-things to-do list.
But no there is nothing at the moment.


Remi

Le 19 nov. 2013 à 20:50, Faruk S. Can faruks...@gmail.com a écrit :

 Does Emy has a panel view, a panel button on left upper corner and when it is 
 pressed a panel from left slides in?
 Or any plugin for that functionality.
 As far as i have seen there is not such a view type.
 if nothing exists like this, will it be added to built in because this seems 
 to be a very standard thing nowaday's web apps?
 
 -- 
 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/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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Replace inner HTML

2013-11-18 Thread Remi Grumeau
Hi Alan,

_replace was designed to expand a list content, but since it replaces a DOM 
element by an external HTML content, that might do the trick.
Note that this replace thing does replace the element, so you can't redo or do 
it twice. The element you clicked on is removed.

If you want to avoid an ajax call for that, you might write up your own small 
function to do this.


Remi

Le 18 nov. 2013 à 22:30, Alan Mathers alan.math...@gmail.com a écrit :

 Hi All
 
 I am trying to get the latest version of iui to add a bit of html in the 
 middle of an existing form when a link is manually clicked. I had this 
 working in an old release by implementing a patch (ie issue 74 / 104) 
 
 I have noticed the code has now changed since then and replaceElementWithFrag 
 seems to suggest to me there is a better way of doing this?!
 
 What is the accepted way of doing this now (before I start messing around 
 with the new code :) )
 
 So far I have used the target _replace but that only appends..
 
 cheers
 
 Alan
 
 -- 
 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/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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: buttons (images) not visible in some browsers

2013-10-25 Thread Remi Grumeau
Do you have a URL we can check ?



Le 23 oct. 2013 à 15:25, runback rune.b...@gmail.com a écrit :

 Hi Remi
 
 My App looks ok in Chrome and Safari. But when I use FireFox or Opera I can't 
 see the buttons. Do you have any idea of why?
 
 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 http://groups.google.com/group/iphonewebdev.
 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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: li tag also with align right

2013-10-18 Thread Remi Grumeau
Dont forget position: relative; on li.group to avoid the em to go on top of 
the screen. 


Le 18 oct. 2013 à 06:17, Rune Back rune.b...@gmail.com a écrit :

 Remi
 Yup!
 .group  em.right {font-style:normal; position:absolute; right:3px; }
 Works like a dream!
 Thanks!
 Rune
 
 
 
 2013/10/17 Remi Grumeau remi.grum...@gmail.com
 Hi Rune,
 
 You can't have to different text alignment in the same element.
 Which means you need another element to put your content in.
 
 Two solutions: 
 A real element like 
 li class=grouptextemsecond text/em/li, 
 
 Or using a pseudo-element and a specific attribute 
 li class=group data-alternative=second texttext/li 
 
 Real element kinda pollute the DOM, pseudo-element is limited to text-only 
 (no link, image, …)
 
 In both cases, define position: relative on li.group, then use position: 
 absolute; right: 0; for the em  / pseudo-element.
 
 
 Remi 
 
 Le 17 oct. 2013 à 15:55, runback rune.b...@gmail.com a écrit :
 
 Hi Remi
 
 I use the following code:
 
 li class=groupText to the left/li
 
 Works like a dream! - But what if I also want to set some text to the right 
 on the same line (but with another font and color)? How do I do that?
 
 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 http://groups.google.com/group/iphonewebdev.
 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.
 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.
 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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: li tag also with align right

2013-10-17 Thread Remi Grumeau
Hi Rune,

You can't have to different text alignment in the same element.
Which means you need another element to put your content in.

Two solutions: 
A real element like 
li class=grouptextemsecond text/em/li, 

Or using a pseudo-element and a specific attribute 
li class=group data-alternative=second texttext/li 

Real element kinda pollute the DOM, pseudo-element is limited to text-only (no 
link, image, …)

In both cases, define position: relative on li.group, then use position: 
absolute; right: 0; for the em  / pseudo-element.


Remi 

Le 17 oct. 2013 à 15:55, runback rune.b...@gmail.com a écrit :

 Hi Remi
 
 I use the following code:
 
 li class=groupText to the left/li
 
 Works like a dream! - But what if I also want to set some text to the right 
 on the same line (but with another font and color)? How do I do that?
 
 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 http://groups.google.com/group/iphonewebdev.
 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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: File Uploads in IUI

2013-10-02 Thread Remi Grumeau
This is a proof of concept file upload app (using Emy but it should work 
with iUI too with a bit of extra adaptation)

It uses Sean's second approach, aka not integrated inside the library.
Since uploading a file is really not a must have feature most app would 
use, it clearly doesn't belongs in the main iUI / Emy core code.

Feel free to give it a test, and post some feedback :)


Le mercredi 28 août 2013 14:56:20 UTC+2, Remi Grumeau a écrit :

 You don't need an iframe for that.

 Something similar to this (not tested) should be enough

 input id=fileinput type=file name=file onchange=uploadIt()

 script
 function uploadIt() {

 var xhr = new XMLHttpRequest();

 xhr.upload.addEventListener('progress',function(ev){
 var progress = (ev.loaded/ev.total)*100;
 console.log('Upload progress: '+progress+%);
 }, false);

 xhr.onreadystatechange = function(ev) {
   if (xhr.readyState === 4) {
 if (xhr.status === 200) {
 if(xhr.responseText != 'error')
 {
 console.log('Upload done');
 }
 } else {  
   console.log(Upload Error + xhr.statusText);  
 }  
   }
 };

 xhr.open('POST', xhr_upload.php, true);
 var files = document.getElementById('fileinput').files;
 var data = new FormData();
 data.append('file', files[0]);
 xhr.send(data);
 }
 /script


 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 http://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/groups/opt_out.


Re: File Uploads in IUI

2013-10-02 Thread Remi Grumeau
This is a proof of concept for mobile webapp file upload.
http://emy-library.org/sandbox/fileupload/

Its using Emy but might just fit in iUI easily too (tweaking here and 
there) since it's plain Javascript.
Feel free to fork :)

This will never be a core feature for Emy, since uploading a picture is 
really not a common scenario for most web applications.

Remi


Le mercredi 28 août 2013 14:56:20 UTC+2, Remi Grumeau a écrit :

 You don't need an iframe for that.

 Something similar to this (not tested) should be enough

 input id=fileinput type=file name=file onchange=uploadIt()

 script
 function uploadIt() {

 var xhr = new XMLHttpRequest();

 xhr.upload.addEventListener('progress',function(ev){
 var progress = (ev.loaded/ev.total)*100;
 console.log('Upload progress: '+progress+%);
 }, false);

 xhr.onreadystatechange = function(ev) {
   if (xhr.readyState === 4) {
 if (xhr.status === 200) {
 if(xhr.responseText != 'error')
 {
 console.log('Upload done');
 }
 } else {  
   console.log(Upload Error + xhr.statusText);  
 }  
   }
 };

 xhr.open('POST', xhr_upload.php, true);
 var files = document.getElementById('fileinput').files;
 var data = new FormData();
 data.append('file', files[0]);
 xhr.send(data);
 }
 /script


 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 http://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/groups/opt_out.


RE: Nook? Scrolling issue.

2013-09-27 Thread Remi Grumeau
  Frankly, I just realize they officially give up the tablet market so...
 --
De : Jim Kelly jkmac...@yahoo.com
Envoyé : 26/09/2013 18:01
À : iphonewebdev@googlegroups.com
Objet : Re: Nook?  Scrolling issue.

i use nook, but expect stuff not to work

puffin paid browser works best for nook

  --
 *From:* Remi Grumeau remi.grum...@gmail.com
*To:* iphonewebdev@googlegroups.com
*Sent:* Thursday, September 26, 2013 6:03 AM
*Subject:* Re: Nook? Scrolling issue.

Do you have the same problem with those following links?
- http://emy-library.org/demos/music/music.html ?
-
http://cdn.sencha.com/touch/sencha-touch-2.2.1/built-examples/kitchensink/index.html
- http://jquerymobile.com/demos/1.2.1/
- http://jqtjs.com/preview/demos/main/

JQtouch is the only one not to use overflow-x: hidden. Sencha does not has
one on the body but on its main DIV.

Remi

Le 25 sept. 2013 à 23:33, Teri Wenger teriwen...@gmail.com a écrit :

I developed a mobile site with iUI.

Has anyone checked these pages on the nook?  When my page is longer than a
screen's length on the  nook, I can't scroll.  Is this a known issue, I
searched this forum on nook and found nothing.  Other mobile sites on the
Internet (Southwest.com for example) scroll just fine.

Would anyone have any ideas as to something I could tweak that would make
it work on nook but not mess up the rest?

-- 
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/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.
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.
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Nook? Scrolling issue.

2013-09-26 Thread Remi Grumeau
Do you have the same problem with those following links?
- http://emy-library.org/demos/music/music.html ? 
- 
http://cdn.sencha.com/touch/sencha-touch-2.2.1/built-examples/kitchensink/index.html
- http://jquerymobile.com/demos/1.2.1/
- http://jqtjs.com/preview/demos/main/

JQtouch is the only one not to use overflow-x: hidden. Sencha does not has one 
on the body but on its main DIV.

Remi

Le 25 sept. 2013 à 23:33, Teri Wenger teriwen...@gmail.com a écrit :

 I developed a mobile site with iUI.
 
 Has anyone checked these pages on the nook?  When my page is longer than a 
 screen's length on the  nook, I can't scroll.  Is this a known issue, I 
 searched this forum on nook and found nothing.  Other mobile sites on the 
 Internet (Southwest.com for example) scroll just fine.
 
 Would anyone have any ideas as to something I could tweak that would make it 
 work on nook but not mess up the rest?
 
 -- 
 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/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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: File Uploads in IUI

2013-08-28 Thread Remi Grumeau
You don't need an iframe for that.

Something similar to this (not tested) should be enough

input id=fileinput type=file name=file onchange=uploadIt()

script
function uploadIt() {

var xhr = new XMLHttpRequest();

xhr.upload.addEventListener('progress',function(ev){
var progress = (ev.loaded/ev.total)*100;
console.log('Upload progress: '+progress+%);
}, false);

xhr.onreadystatechange = function(ev) {
  if (xhr.readyState === 4) {
if (xhr.status === 200) {
if(xhr.responseText != 'error')
{
console.log('Upload done');
}
} else {  
  console.log(Upload Error + xhr.statusText);  
}  
  }
};

xhr.open('POST', xhr_upload.php, true);
var files = document.getElementById('fileinput').files;
var data = new FormData();
data.append('file', files[0]);
xhr.send(data);
}
/script


Remi


Le 28 août 2013 à 01:40, KR kurt.rob...@krglobaldev.com a écrit :

 I just managed to get it working.   I just implemented the same hidden iframe 
 approach that I used on desktop.
 
 Instead of submitting the form with a submit button, I did a button calling 
 form.submit()  to make sure it did a normal submit and not an IUI ajax 
 submit.
 
 The form had target=hidden iframe
 
 It turns out that my response is either an alert if an error or a redirect 
 anyway, so I was able to code a responds_to_parent  block which sends some JS 
 to the parent of the iframe.So, in the end, it works just like desktop 
 bypassing IUI completely.
 
 Thanks for your input on this problem.
 Kurt
 
 
 
 On Tuesday, August 27, 2013 2:10:17 PM UTC-7, Sean Gilligan wrote:
 Responses inline... 
 
 
 On 8/27/13 11:44 AM, KR wrote: 
  I actually run my desktop app on iPad's and am adding this support 
  there, but it's a normal submit and working fine. 
  
  I have found that the OS's that don't support HTML5 file fields render 
  the file field as disabled and then don't return the parameter in the 
  response, so I downgrade automatically to my existing approach where 
  they can email the file. 
 
 I'm assuming the file is a photo?  Is that correct? 
 
 
  Sean - my IUI version is old and modified so I'm not sure we'll get a 
  useful patch from this work. 
 
 If you get a chance try doing a diff between the unmodified copy of the 
 version of iUI you are using and the latest version.  Look at the 
 changes in form handling and see if you can merge in just those 
 changes.  It has been significantly improved and that may help you with 
 adding file upload. 
 
 
 One other question: are you using jQuery or Zepto? 
 
 -- Sean 
 
 
 -- 
 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/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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: File Uploads in IUI

2013-08-27 Thread Remi Grumeau
Hi Kurt,

This limitation is not due to iUI (or any other library) but to the OS.
file input is only supported by 
iOS since iOS6
Android since 2.3 or 4
Blackberry since OS6
Still not supported by WindowsPhone8

But for the rest, you can use regular Ajax-based file upload scripts like there 
is dozen on the web if you type HTML5 file upload ajax in Google ;)


Remi

Le 27 août 2013 à 17:20, KR kurt.rob...@krglobaldev.com a écrit :

 Hi All - 
 
 I'm trying to implement HTML5 file uploads now and getting the standard 
 problem of file uploads not supported with AJAX.
 
 Any tips on how to implement in IUI?   In my desktop app I use the hidden 
 frame approach where the form specifies the frame as target for the response.
 
 Will something like this work with IUI?
 
 THANKS!
 
 Kurt
 
 -- 
 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/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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: File Uploads in IUI

2013-08-27 Thread Remi Grumeau
Actually, Blackberry only supports file upload on its QNX platform, aka BB X  
Playbook OS (tablet)

(thx for the little voice in the shadow for correcting me)


Remi

Le 27 août 2013 à 17:42, Remi Grumeau remi.grum...@gmail.com a écrit :

 Hi Kurt,
 
 This limitation is not due to iUI (or any other library) but to the OS.
 file input is only supported by 
 iOS since iOS6
 Android since 2.3 or 4
 Blackberry since OS6
 Still not supported by WindowsPhone8
 
 But for the rest, you can use regular Ajax-based file upload scripts like 
 there is dozen on the web if you type HTML5 file upload ajax in Google ;)
 
 
 Remi
 
 Le 27 août 2013 à 17:20, KR kurt.rob...@krglobaldev.com a écrit :
 
 Hi All - 
 
 I'm trying to implement HTML5 file uploads now and getting the standard 
 problem of file uploads not supported with AJAX.
 
 Any tips on how to implement in IUI?   In my desktop app I use the hidden 
 frame approach where the form specifies the frame as target for the response.
 
 Will something like this work with IUI?
 
 THANKS!
 
 Kurt
 
 -- 
 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/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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Mobile devises knowing to pick up mobile IUI webpage instead of index page

2013-06-19 Thread Remi Grumeau
Hi JandC,

There is no magic: you have to do this redirection.
I would recommend to check the user-agent if it contains iphone, 
android, windows phone, blackberry, bada, ...
If you are on desktop, redirect on mobile, and don't forget the other way 
(if you're on mobile, redirect on desktop if user agent doesn't contains 
one of those)
(old link, but it might help 
: http://www.9lessons.info/2010/09/redirect-mobile-devices-with-php.html)

Do that server-side otherwise mobile user will download the desktop 
homepage, then be redirect to mobile.
And canonical for SEO.

Have fun, and do not forget to share your work on the list once online!

Remi

Le mercredi 19 juin 2013 01:37:50 UTC+2, JandC InternetWorks a écrit :

 I am creating my first mobile version of a website. I do web design for 
 computers and am looking for a mobile friendly version of the website. I 
 decided to use the IUI-js framework but am having a difficult time 
 installing it. 

 How will the cell phone/tablet know to go to that site rather then my 
 default index page? 

 I have successfully created a page using the IUI framework and it displays 
 correctly on the computer when I test the file I just don't understand 
 how to have it display on the phone after uploading it (the html css and js 
 files) to my hosting server. 

 For instance... instead of going to my index html homepage, how does the 
 mobile devise know to go to the mobile page instead?

 I hope this question makes since please ask if clarification is needed, 
 thanks in advance for 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 http://groups.google.com/group/iphonewebdev.
For more options, visit https://groups.google.com/groups/opt_out.




Re: iOS siteminder authentication

2013-06-19 Thread Remi Grumeau
http://www.mediawiki.org/wiki/Extension:Siteminder_Authentication

Everything is explain here for PHP.
Then use PHP to generate the HTML you need (via Ajax or onload)


Remi

Le mardi 7 mai 2013 23:17:07 UTC+2, anabillo a écrit :

 Hello,

 Any ideas on how to connect to siteminder? I have a webservice that needs 
 siteminder authentication..suggestion..

 Thanks 

 -- 
 Best Regards
 Bill
  

-- 
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/groups/opt_out.




Emy Cordova / PhoneGap

2013-05-13 Thread Remi Grumeau
Hi list,

I've been playing around with Cordova/PhoneGap and Emy this weekend, and 
realize it just can't work out of the box.
Cordova has a specific deviceready event triggered onload, where both iUI 
 Emy are waiting for the unload event to initialize.

So i'm thiking of this small modification to the code:
- move initializing code to an init() function
- add a emy.ready parameter, default to false
- call this init() function from the onload event  a new function 
emy.init() (which is different from the private init() function).

init() checks is emy.ready is equal to false, turn it to true and load its 
init code just like before.
The big difference here is that you can now load this initialization when 
you want, which means on deviceready too.

Hacking this, i've successfully created the first ever emy-based native iOS 
app. You can grab the source .codeproj here:
http://cl.ly/1Q192A3Q0d2U

What do you think? Is this should be a core modification or simply a trick 
to give to debs looking to do so? 
I'm up to do this change in the main branch, It's just 2 more lines of 
code, a below 30 caracters change.

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 http://groups.google.com/group/iphonewebdev?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.




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 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: backButton issue with Nokia 5800

2013-04-11 Thread Remi Grumeau
The backButton is hidden by default.
Then, when iUI performs a transition to a screen (forward or backward), it adds 
or remove this new page from an internal history array.
Once added or removed, it checks this history array length. If equal to zero, 
then there is no previous page in the history stack, so it hides the back 
button.

Can't really help you guys for fixing this, i don't have this kind of device 
here.
Everything on the iUI demo app works just fine on the Nokia Series S40 
simulator 

Remi

Le 11 avr. 2013 à 14:44, Sav25 richardsavill...@gmail.com a écrit :

 I'm having he same issue, I go back to the home screen and there will still 
 be a 'back' button that gives the name of the last page I accessed. I didn't 
 think it was possible for the home screen to have a back button??

-- 
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: Issue with display map and another DIV

2013-04-02 Thread Remi Grumeau
Looking at 
http://msdn.microsoft.com/en-us/library/gg427624.aspx
It seems Bing Maps API needs a credential key to load.

Please look at this doc a little more, everything is quite well explain.


Remi

Le 29 mars 2013 à 21:22, Remi Grumeau remi.grum...@gmail.com a écrit :

 Hey,
 
 Please remove the selected=true from the second screen (aka Hans). You can 
 only have one screen as selected=true.
 Also, give it another id, like screen2.
 
 Is setup(); triggered?
 
 
 Remi
 
 Le 8 sept. 2011 à 15:52, SiKni8 hasan...@gmail.com a écrit :
 
   !DOCTYPE html
   html
   head
   script src=http://dev.virtualearth.net/mapcontrol/v4/
 mapcontrol.js/script
   script type='text/javascript'
 var map = null;
 
 function setup()
 {
   map = new VEMap('mymap');
   map.LoadMap();
   map.SetMapMode(VEMapMode.Mode3D);
   map.AttachEvent(onchangeview, SetInfoBlock);
 }
 function SetInfoBlock(e)
 {
   var info = Lat, Long:  + map.GetCenter()
   + brAltitude:  + map.GetAltitude()
   + brPitch:  + map.GetPitch()
   + brHeading:  + map.GetHeading();
   document.getElementById(info).innerHTML = info;
 }
 
   /script
  titleFV.com/title
  meta name=viewport content=width=device-width; initial-
 scale=1.0; maximum-scale=1.0; user-scalable=0;/
  link rel=stylesheet href=iui/iui.css type=text/css /
  link rel=stylesheet href=iui/t/default/default-theme.css
 type=text/css/
  script type=application/x-javascript src=iui/iui.js/
 script
   /head
   body  onload=setup();
  div class=toolbar
 h1 id=pageTitle/h1
 a id=backButton class=button href=#/a
  /div
 
  ul id=screen1 title=Map selected=true
 div id=mymap style=width:800px;height:600px;/div
  /ul
  ul id=screen1 title=Hans selected=true
 div id=mymap style=width:800px;height:600px;/div
  /ul
 
  div id=screen2 title=Apple Bees
 Hello World
  /div
   /body
 /html
 
 
 The previous is what my HTML looks like.
 
 I am trying to display two headers on the first page as can be seen by
 UL, but i only see the MAP header and not the HANS header on page
 one.
 
 Also i am trying to display the BING MAP, which i do not see on the
 page under the MAP header.
 
 Any help would be appreciated as I am new to iUI design.
 
 Thank you,
 SiKni8
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/iphonewebdev?hl=en.
 
 

-- 
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: Issue with display map and another DIV

2013-03-29 Thread Remi Grumeau
Hey,

Please remove the selected=true from the second screen (aka Hans). You can 
only have one screen as selected=true.
Also, give it another id, like screen2.

Is setup(); triggered?


Remi

Le 8 sept. 2011 à 15:52, SiKni8 hasan...@gmail.com a écrit :

!DOCTYPE html
html
head
script src=http://dev.virtualearth.net/mapcontrol/v4/
 mapcontrol.js/script
script type='text/javascript'
  var map = null;
 
  function setup()
  {
map = new VEMap('mymap');
map.LoadMap();
map.SetMapMode(VEMapMode.Mode3D);
map.AttachEvent(onchangeview, SetInfoBlock);
  }
  function SetInfoBlock(e)
  {
var info = Lat, Long:  + map.GetCenter()
+ brAltitude:  + map.GetAltitude()
+ brPitch:  + map.GetPitch()
+ brHeading:  + map.GetHeading();
document.getElementById(info).innerHTML = info;
  }
 
/script
   titleFV.com/title
   meta name=viewport content=width=device-width; initial-
 scale=1.0; maximum-scale=1.0; user-scalable=0;/
   link rel=stylesheet href=iui/iui.css type=text/css /
   link rel=stylesheet href=iui/t/default/default-theme.css
 type=text/css/
   script type=application/x-javascript src=iui/iui.js/
 script
/head
body  onload=setup();
   div class=toolbar
  h1 id=pageTitle/h1
  a id=backButton class=button href=#/a
   /div
 
   ul id=screen1 title=Map selected=true
  div id=mymap style=width:800px;height:600px;/div
   /ul
   ul id=screen1 title=Hans selected=true
  div id=mymap style=width:800px;height:600px;/div
   /ul
 
   div id=screen2 title=Apple Bees
  Hello World
   /div
/body
 /html
 
 
 The previous is what my HTML looks like.
 
 I am trying to display two headers on the first page as can be seen by
 UL, but i only see the MAP header and not the HANS header on page
 one.
 
 Also i am trying to display the BING MAP, which i do not see on the
 page under the MAP header.
 
 Any help would be appreciated as I am new to iUI design.
 
 Thank you,
 SiKni8
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/iphonewebdev?hl=en.
 

-- 
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: iuiPad and msgilligan-iuiscroll repository

2013-03-13 Thread Remi Grumeau

 Because I need to effectively 'style' existing CMS output, which has a
 navigation column already in the page (can specify YUi TreeView for
 example), it is possible that any code I write may not subsequently fit
 well with iUI.  I am basically just implementing a document viewer, with a
 single navigation column and display pages on the RHS.


 We did something like this using iUI and and an HTML5 reference doc.  I
 don't think it is currently working, but the code is here:
 http://code.google.com/r/**msgilligan-iuiscroll/source/**
 browse/#hg%2Fweb-app%**2Fsamples%2Fiuipadhttp://code.google.com/r/msgilligan-iuiscroll/source/browse/#hg%2Fweb-app%2Fsamples%2Fiuipad



You're right, it's not :)
If you look at it on a desktop browser, you'll see some stuffs sliding out
of the floating box when sliding.

But as a quick fix for you Rick, i guess that might be a good path to
follow. 30% padding for content  a DIV on top with an overflow on it.
I'm sorry to come with some bad news, but since iUI is not done for
multi-column, you'll have to deal with sliding transition inside this DIV
by yourself... aka by a specific CSS/JS code.
Try first with a proof-of-concept with links in it.
Note that the main column will slide below it, rather than contains
itself to its column like native app does.

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 http://groups.google.com/group/iphonewebdev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: iuiPad and msgilligan-iuiscroll repository

2013-03-11 Thread Remi Grumeau
It's an open source project man, every single small contribution is welcomed!
If you want to work on this two-column thing, go ahead !! We'll all give you 
advices  review when needed.
The biggest job will be to actually add a column support, and make transitions 
in those column using column's width instead of screen width.

AFAIR, the problem i had with what Sean did is that it's really not a two 
column implementation. It puts a left padding of 30% on all screens, and adds a 
DIV on top of those unused 30%.
This has a lot of overflow issues, and does not sync navigation stacks.

But hey, if it fits your needs, code a quick prototype with it and see how it 
goes :)


Remi

Le 10 mars 2013 à 15:45, rickyh rickyshamil...@hotmail.com a écrit :

 Remi,
  
 Thanks for the reply.  I'll take your advice! :-)
  
 However, that means I now have to achieve a simple two-column display with 
 navigation on left and content retreived via AJAX on the right, sort out the 
 logic of the screen modes, and orientation change, etc. etc. all myself.  
 Perhaps that will be even worse!  At least Sean's iuiPad code might have 
 given me a head start?
  
 I am only targeting iPad, for a very specific objective.
  
 Perhaps rather than trying to style everything myself from scratch, I should 
 use the current iUI version to deliver a non-split screen version one, and 
 then maybe enhance when v2.0 of iUI is available.
  
 Would it be feasible for me to contribute to iUI development by working on 
 the 2-column layout features?
  
 Regards
 Richard
  
 
 On Saturday, March 9, 2013 5:56:17 PM UTC, rickyh wrote:
 I would like to experiment with iuiPad, and so have just downloaded this repo 
 which I see is a complete drop-in replacement for iUI.
  
 The last push to this repository was 6th Oct 2010, and I imagine there has 
 been a huge amount of change to iUI since then.  Does anyone know if the 
 iuiPad specific code will work with a more recent version of iUI?
  
 Is it realistic for me to merge iuiPad code into a current v0.4?
  
 If so, which files are relevant?
  
 Regards  many thanks,
 Richard
  
 
  
 
 -- 
 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: iuiPad and msgilligan-iuiscroll repository

2013-03-10 Thread Remi Grumeau
Honestly, i wouldn't.
this iuiPad was just a one weekend project, and a lot more should be done
to be sure it does not only works on the iPad. Kindle, Nexus  Surface
exists too now...

Remi

Le samedi 9 mars 2013, rickyh a écrit :

 I would like to experiment with iuiPad, and so have just downloaded this
 repo which I see is a complete drop-in replacement for iUI.

 The last push to this repository was 6th Oct 2010, and I imagine there has
 been a huge amount of change to iUI since then.  Does anyone know if the
 iuiPad specific code will work with a more recent version of iUI?

 Is it realistic for me to merge iuiPad code into a current v0.4?

 If so, which files are relevant?

 Regards  many thanks,
 Richard




 --
 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 javascript:_e({},
 'cvml', 'iphonewebdev%2bunsubscr...@googlegroups.com');.
 To post to this group, send email to 
 iphonewebdev@googlegroups.comjavascript:_e({}, 'cvml', 
 '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.





-- 

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 http://groups.google.com/group/iphonewebdev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Refresh data from server

2013-03-06 Thread Remi Grumeau
If i got it correctly, you have index.php with a home screen containing a 
button stat.
Stat button is a href='stats.php'.
stats.php contains a screen called stats.

When you click on stat button, it loads the stats screen via Ajax and adds 
it to the index.php and navigates to it.

So now we have a index.php containing a home view  a stat view.
Of course, the stat view does not exists in index.php by itself but has been 
added to the actual DOM by the ajax call. Not in index.php itself.

Please note that if you press the back button and click on the stat button 
again, it reloads the stat screen from stats.php and erase the previously 
added one.

So yes of course, if you reload index.php, the server loads what's in 
index.php. Aka only the home screen. You have to click the stat button 
again to load the content of stats.php in it. aka stat screen. The DOM is 
reloaded so everything Ajax added to it in your previous usage is obviously 
removed.

Note that you can also use those internal functions

iui.ajax(stats.php, null, GET,null, function(frag) {
iui.insertPages(frag);
});

Or something close to this :) (can't test this code right now)


Remi

Le 6 mars 2013 à 16:55, Jeff (iUI Noob) fjr...@gmail.com a écrit :

 I guess it is working, just not doing what I was wanting it to do. :-(
 
 As mentioned, I have a link on the main screen that opens a 'stats' screen 
 via AJAX, a href='stats.php'. 
 This PHP script returns a div, div id='Stats' ..., that contains data from 
 a mySQL database. 
 If I understand correctly, the AJAX call places the output of stats.php into 
 the main document, index.php, therefore the window.location.reload(true) 
 statement does not access the the stats.php file. Although, if it were to 
 reload index.php from the server, it would not yet have the 'Stats' div yet 
 and no way of knowing where to look for it, so where does it reload the 
 'Stats' div from???
 
 My solution is to use the following function to perform the refresh:
 
 function refreshStats() {
   var xmlhttp = new XMLHttpRequest();
   xmlhttp.open(GET,stats.php,false);
   xmlhttp.send();
   document.getElementById('Stats').innerHTML=xmlhttp.responseText;
 }
 
 -- 
 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: Understanding target=_replace

2013-02-25 Thread Remi Grumeau
Hi Jeff,
Yes, it is misleading…

Let's dig inside the all process!

First, the on click event, which detects if the target=_replace exists (line 
612)

if (link.target == _replace)
{
  followAjax(link, link);
}

Then it goes to (line 685)

function followAjax(link, replaceLink)
{
  link.setAttribute(selected, progress);
  iui.showPageByHref(link.href, null, GET, replaceLink, function() { 
link.removeAttribute(selected); });
}

So as you can see, when it goes to followAjax, link  replaceLink are the exact 
same.
(if no target set, it loads followAjax(link, null); so there is a difference 
between a replace call or not)

inside iui.showPageByHref  (line 261)

 if (replace)
 {
   replaceElementWithFrag(replace, frag);
   iui.busy = false;
 }
 else
 {
   iui.insertPages(frag);
 }

This is where the difference is done (but in both case an ajax call is done on 
the HREF value).
in followAjax, we send replaceLink which is known as replace in here.
frag is what the Ajax call returns.

Then in  replaceElementWithFrag (line 1020)

function replaceElementWithFrag(replace, frag)
{
var page = replace.parentNode;
var parent = replace;
while (page.parentNode != document.body)
{
page = page.parentNode;
parent = parent.parentNode;
}
page.removeChild(parent);

var docNode;
while (frag.firstChild) {
docNode = page.appendChild(frag.firstChild);
sendEvent(iui.afterinsert, document.body, 
{insertedNode:docNode});
}
sendEvent(iui.afterinsertend, document.body, {fragment:frag})
}


var page = replace.parentNode;
var parent = replace;

First line, a page variable is set using the parent node of the replace 
target. replace is the a element so its parent is the li.
Second line, parent equals the a element.
That's what is misleading, but we have no choice. Otherwise the fragment would 
replace the a element inside the li, which wouldn't serve any purpose. 
That's why it goes to the parentNode, which should be the li element if 
properly used inside a ul / li list.

while (page.parentNode != document.body)
{
  page = page.parentNode;
  parent = parent.parentNode;
}

The while loop goes back in parent nodes down to the body child node (aka the 
page).

So if your page is 
body
…
  ul id=my page title=My Page
lia href=#page1Link 1/a/li
lia href=#page2Link 2/a/li
lia href=myfrag.html target=_replaceLoad more/a/li
  /ul
…
/body

Since there is only one node step between the li (page variable) and the UL 
that creates your page, this while loop will only execute once.
So the variable page is now the UL DOM element, parent is the li element. 

 page.removeChild(parent);

The LI element containing the clicked a is removed from the UL

var docNode;
while (frag.firstChild) {
  docNode = page.appendChild(frag.firstChild);
  sendEvent(iui.afterinsert, document.body, {insertedNode:docNode});
}

This parses the fragment returned by the Ajax call and adds each first level 
Node into the page node.
So here, it adds each first level Node inside the UL (and send a callback event 
afterinsert with the inserted fragment each time)
Which means your fragment HTML should contains LI elements.

lia href=#page3Added link to page 3/a/li
lia href=#page4Added link to page 4/a/li
lia href=myfrag2.html target=_replaceLoad more again/a/li


Note that it does not replace the LI but remove the LI, then adds the Ajax 
content to the list. Since the clicked link is the last element of the UL, it 
feels like it has been replaced. But it's not. And this is misleading, i'm 
agree.

Note also that since the LI element containing the load more link is removed, 
you have to add it too inside the fragment if you need to add some more again.



Hope this helps!

Remi


Le 25 févr. 2013 à 10:51, Jeff (iUI Noob) fjr...@gmail.com a écrit :

 I'm a little bit confused on how this works. I understand that iUI will do an 
 AJAX call, but...
 The Documentation says that iUI will replace the panel that the link is in 
 but somewhere in here Remi states that it will replace the contents of the 
 element the link is in (or something like that,) and the example in the 
 link-types.html file replaces a li element with a series of li elements 
 in the frag file. Maybe I'm misunderstanding what is meant by panel in the 
 docs but that was just the start of my confusion.
 Now, when I attempted to use the attribute, within a panel class div, I 
 created an unordered list containing a single list item, the link, and a 
 frag.php file that created several list items. When I touched the link, it 
 did replace the link with the output of the frag file, but the output had no 
 style. Adding a ul.../ul to the file output solved the problem. So it's 
 working, but why did I need to add the unordered list tags to the Frag? Is it 
 because the process 'steps' back to them because they have no other content?
 
 -- 
 You received this message 

Re: Server-side language pool

2013-02-15 Thread Remi Grumeau
Agree, the documentation miss a big part about dealing with login  generating 
screens on-the-fly based on a JSON object (served by the server, localStorage 
or localDatabase).

The website documentation page (and all the rest of it btw) is on GitHub : feel 
free to fork, add it  make a pull request. Sean would do the rest.
https://github.com/iui


Remi

Le 15 févr. 2013 à 11:03, Jeff (iUI Noob) fjr...@gmail.com a écrit :

 I primarily use PHP... but I'm a noob. ;-)
 
 IMHO, the server-side processing is independent of the UI development and 
 there is a lot more that can be done on the iUI documentation without concern 
 for server-side processing. 
 
 -- 
 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: Wondering if iUI is suitable for my objectives.

2013-02-11 Thread Remi Grumeau
That's pretty much the idea yes, doing what a native app is doing with native 
code (Obj C, Java, …) in HTML + Javascript.
Same amount of work, but for all platforms at once.

If offline access is not such a big issue (is your actual CMS works offline?), 
then #2 might be a good compromise.
I'm really not sure having hundreds  hundreds of nodes in the DOM is a good 
idea anyway… you'd probably better split things into separate html files (added 
to the manifest) and load/unload them by topic/category.

(+ huge files  HTML cache won't fit that well due to client-side file-size 
limitations) 

I'm afraid my answer might ends to something too-engineering.


Remi

Le 11 févr. 2013 à 14:02, rickyh rickyshamil...@hotmail.com a écrit :

 Ok, so if I understand correctly, this amounts to writing an entire 
 application using JavaScript/ECMAScript for execution inside browsers, rather 
 than using native code such as Objective C/Cocoa.
 
 The JavaScript is platform neutral which is an advantage, but the performance 
 hit could be considerable.
 
 Probably similar amount of work to writing in native code.
 
 Not really suitable for my case as I need to wrap an iOS skin around a huge, 
 serverside framework.
 
 I am going to reconsider my rejection of the idea of creating a huge HTML doc 
 with all content in it.  It won't be any bigger than a PDF copy of the entire 
 lot anyway!
 
 That would satisfy the requirement for offline access.
 
 Thank you very much, that's been really helpful.
 
 R.
 
 -- 
 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: Displaying a Fixed image in iUI

2013-01-23 Thread Remi Grumeau
 body  *:not(.toolbar)


This CSS code targets all body childnodes (aka divs, forms, ul, …) without the 
.toolbar class set.
Which means all screens.
They are all hidden by default, and the attribute selected=true tells iUI which 
one should be displayed.

That's why if you add your #cornerImage div to the body, it will be hidden, 
position absolute, top 0, left 0, width 100%, z-index 1.
The reason of my !important test… which seems to fail :) 

You might give this a look :)
http://codepen.io/anon/pen/fIKpw


Remi

Le 23 janv. 2013 à 01:06, Jeff (iUI Noob) fjr...@gmail.com a écrit :

 Sorry, let me clarify...
 This code works fine on my sites such as FJRRally.com/CFR when displayed on 
 iOS 5 and 6 devices. Of course, the image is quite small as the site is not a 
 mobile site (I was thinking of making an iUI version of the site.) It does 
 exhibit some interesting behaviour when zooming though.
 
 In my iUI code, the image is not displayed at all (that I can see.)
 I've tried adding adding a display: block; !important to .cornerImage with no 
 effect. Changing this class selector to an id selector does show the image, 
 but in the 0%,0% position in the main div.
 I have also been experimenting with a Border-Image in the body  
 *:not(.toolbar) CSS and, apparently, these 2 things do not work well together.
 
 I'll play with it further, Thanks Remi!
 
 On Tuesday, January 22, 2013 3:55:49 PM UTC-7, Remi Grumeau wrote:
 Well … what do you mean by this code does not work ?
 Image does not display or it does not show at the position you want?
 
 Absolute position is always tricky on mobile screens, note that position: 
 fixed is supported in iOS since iOS5 only. 
 It also works pretty bad on Android until 2.3.
 
 But if it does not show at all, then you might add a display: block!important 
 to #cornerImage.
 
 
 Le 22 janv. 2013 à 22:48, Jeff (iUI Noob) fjr...@gmail.com a écrit :
 
 Ok, I've been sucked in! I can't seem to stop playing with iUI. To date, I 
 have just built little personal webApps, but maybe one day I'll produce 
 something useful with it.
 
 So... I like to put a little image in my websites that is fixed in the 
 bottom right corner of the screen. The code I use is:
 
 [code]
 !-- Include Corner Image --
 style type=text/css #cornerImage {position: 
 fixed;_position:absolute;bottom:0px;right:0px;} /style
 div id=cornerImage class=cornerImage img src=CornerImage.png alt= 
 border=0 /div
 [/code]
 
 This code does not work in iUI. I suspected that this would be the case due 
 to the way iUI handles DIVs, but I'm not sure where to start to work around 
 it.
 Any thoughts?
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphone...@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Toolbar hidden (as default)

2013-01-11 Thread Remi Grumeau
i love this quote: it's not a bug, it's a feature! :)

For the first time, this is exactly the case. This scroll up goal is to hide 
Safari's address bar so you don't loose 60 pixels and got a more native-ish 
experience.
in iui.js, line 770, you'll find this code:
setTimeout(scrollTo, 100, 0, 1);

change it to
setTimeout(scrollTo, 0, 1, 1);

That might fix it, aka scroll 1px spit only hides the browser's toolbar.
Or if you don't want that, just remove/comment that line.


Remi

Le 11 janv. 2013 à 12:47, runback rune.b...@gmail.com a écrit :

 First: thank you everyone for your comments, especially Remi!
 
 I've got a problem in my html5-App; when I come into it for the first time 
 (or take refresh) the toolbar will scroll up so that the first (visibale) row 
 on the page is a li/group tag, i.e. the row that comes right after the 
 toolBar. Does anyone have a clue what it is I'm doing wrong or have forgotten?
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Toolbar hidden (as default)

2013-01-11 Thread Remi Grumeau
an URL to share?

Note that this browser address bar hiding scrollTo trick doesn't work on 
Chrome, since its address bar never hides.



Le 11 janv. 2013 à 15:12, Rune Back rune.b...@gmail.com a écrit :

 Noop, no change, not in Chrome anyhow.
 
 2013/1/11 Remi Grumeau remi.grum...@gmail.com
 i love this quote: it's not a bug, it's a feature! :)
 
 For the first time, this is exactly the case. This scroll up goal is to hide 
 Safari's address bar so you don't loose 60 pixels and got a more native-ish 
 experience.
 in iui.js, line 770, you'll find this code:
 setTimeout(scrollTo, 100, 0, 1);
 
 change it to
 setTimeout(scrollTo, 0, 1, 1);
 
 That might fix it, aka scroll 1px spit only hides the browser's toolbar.
 Or if you don't want that, just remove/comment that line.
 
 
 Remi
 
 Le 11 janv. 2013 à 12:47, runback rune.b...@gmail.com a écrit :
 
 First: thank you everyone for your comments, especially Remi!
 
 I've got a problem in my html5-App; when I come into it for the first time 
 (or take refresh) the toolbar will scroll up so that the first (visibale) 
 row on the page is a li/group tag, i.e. the row that comes right after the 
 toolBar. Does anyone have a clue what it is I'm doing wrong or have 
 forgotten?
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: multi-column display

2013-01-09 Thread Remi Grumeau
Well, multi-column was started like…. more than 2 years ago by Sean at an 
iPhoneWebDev hackathon. 
As far as i remember, a lot of work was still needed on that.

Since iUI makes all sliding navigations based on hash value, having 
multi-column is very complicated and need some complete refund of the core 
functions.
I was waiting for v0.5 to try something like splitting hash value with - and 
target different panels.  
A lot of work. It needs to deal with browser history  integrating ajax loaded 
external panels sounds like mad to think of.

If a skilled Javascript developer wants to work on it, i'd be happy to help, 
but i have no time to do it by myself atm. 

Remi

Le 9 janv. 2013 à 19:01, Jeff (iUI Noob) fjr...@gmail.com a écrit :

 Multi-column display for tablets is mentioned on the iUI home page, but I 
 cannot find any other mention of it. Can someone point me to an example of 
 this and what code is required to accomplish it?
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Making the whole background grey in iUI

2012-12-05 Thread Remi Grumeau
In order to let the user choose which background he wants PER SCREEN, 
background color or background image is set on each panel.
Each panel is a DIV, which gets its height from its content, or based on what 
you tell him in the CSS.

Previously, we used to set height: 100% for each screens. 
That was ok until your screen if smaller than the phone or tablet physical 
height. In such a case, background (color or image) wasn't there anymore when 
scrolling.

So that's why we removed it. and that i start this fitToScreen initiative 
waiting for people to test/improve/debug it and solve this problem.
Note that this is even worse on an iPad.
http://cl.ly/image/1R3k0W213X1g

fitToScreen goal was to avoid it, to make it look like this
http://cl.ly/image/0L0l1J3Y0U46

Again, any of you feel free to take this fitoScreen code and commit it into 
iUI's github code.
I'm pretty much out of the main iUI branch for now… working on a separate fork 
of it (soon to be released)


Remi

Le 5 déc. 2012 à 13:32, Mikael Kindborg mikael.kindb...@mobilesorcery.com a 
écrit :

 Thanks for this info. I would guess consistent background rendering is
 something most apps would want, so it would be good to see this make
 its way into iUI. Is it by design the background does not fill the
 whole screen?
 Best, Mikael
 

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




RE: Fixed header, selected li tag

2012-11-10 Thread Remi Grumeau
You'll find informations in this post:
http://groups.google.com/group/iphonewebdev/browse_thread/thread/7c18c87169733e07
De : Michael De Rubertis
Envoyé : 10/11/2012 11:43
À : iphonewebdev@googlegroups.com
Objet : Fixed header, selected li tag
I'd like to know that too.

-- 
You received this message because you are subscribed to the Google
Groups iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: CSS bottom

2012-11-01 Thread Remi Grumeau
Well, i'm really not sure about bottom: 0px. Perhaps it exists but i've
never seen it.
Bottom alignment is a common issue in CSS.
There is two different way to do this:
CSS only: position: fixed; top: 100%; height: 100px; margin-top: -100px;
But well... there is a hell of a lot to say about fixed positioning with
mobile browsers
(read http://www.quirksmode.org/blog/archives/2011/12/position_fixed.htmlto
get to the point)

Other solution if you know a bit of Javascript, you can use a fixed layout
and put your contents inside an iScroll view.
But then, detecting real available viewport height is even worse to deal
with.

Sorry, i don't really have one single bullet-proof solution for this...


Remi


On Thu, Nov 1, 2012 at 8:35 PM, Kimmax kim.nuernber...@hotmail.de wrote:

 Hey, I just started using Google Adsense and I want to show my Ads on the
 bottom of screen.
 Normaly I just would use CSS and the bottom: 0px rule, but anyway it
 isn't working. I also tried to use margin-bottom and I set the position to
 relative too.
 Here is an example what I get with the following CSS:

 div style=position: relative; display: inline; height: 50px;
 background-color: transparent; bottom: 0px;



 http://puu.sh/1lhxl

 Thank you for help,

 Kim


 --
 You received this message because you are subscribed to the Google Groups
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Googlemaps webapp in iOS 6.0?

2012-10-29 Thread Remi Grumeau
Yes.
iOS6 has a strange wait to behave with geolocation…

In standalone mode (aka web app), watchPosition is goofy. getPosition seems to 
work from time to time… but it's really unstable.
In the browser, things get better.

Feel free to test: 
http://we-are-gurus.com/labs/geoloc-getposition.html (using watchPosition)
http://we-are-gurus.com/labs/geoloc-getposition.html (using getCurrentPosition)

Both could be added to the home screen

Remi

Le 29 oct. 2012 à 14:39, Thoern turbokil...@gmail.com a écrit :

 using the javascript 3,0 api in a iphone webapp, it worked great until 
 upgrading to ios 6.0, but it wont even startup the map in ios 6.0.
 It uses geolocation and i´ve tried setting the priviligies to position 
 everywhere I could find without any luck.
 Anyone else had similar problems
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: iui wordwrap not working

2012-10-20 Thread Remi Grumeau
Is there any spaces in your string?
Any link to provide ?

Remi


On Sat, Oct 20, 2012 at 4:29 PM, kimmax kim.nuernber...@hotmail.de wrote:

 Hello everybody!
 I'm stuck on a small problem in the iui framework.
 I'm getting a long string outof my mysql database and wan't to present it
 on a Panel. Works fine, but there are no wordwraps. So I can see the
 beginning of the string but the rest stucks out of the display.
 Selfmade wordwrap will not work because the string lenghts are variable.
 I hope you can help me!
 Kim

 --
 You received this message because you are subscribed to the Google Groups
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: How to make a form to login?

2012-10-17 Thread Remi Grumeau
Man, we could use a bit more informations on what you're trying to do... single 
ident/pass login? multiple accounts? database driven? Offline capable?

I guess with such a few infos, a correct reply could be with a login and a 
password input text (use password input as type=password) and a submit button. 
All inside a form element. Best practice would also consider a Forgot you 
password link below the password input.

Remi


On 17 oct. 2012, at 01:43 AM, Fernan fernanluk...@gmail.com wrote:

 How do I make a form to login with a user/pass?
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
 
 

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: How to make a form to login?

2012-10-17 Thread Remi Grumeau
Well, i guess Fernan is looking for some help to impl a login form in
iUI right Fernan?
Sadly, there is nothing much on Google about it (we're not THAT popular :) )


Remi


On Wed, Oct 17, 2012 at 6:31 AM, Giacomo Balli giacomoba...@gmail.comwrote:

 hard to add anything valuable that you wouldn't find on google...

 On Oct 16, 4:43 pm, Fernan fernanluk...@gmail.com wrote:
  How do I make a form to login with a user/pass?

 --
 You received this message because you are subscribed to the Google Groups
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Help with iui.showPageById()

2012-09-24 Thread Remi Grumeau
The problem is not iui.showPageById, which works great even in your case.
What's goofy here is href=#, who asks iUI to go nowhere. Rather than staying 
at the same spot, it goes on default screen. Which is #home for you. (agree it 
sounds like a bug to me too)

Solution 1
Replace href=# by href=javascript:;

Solution 2
Remove. onclick  replace href=# by href=javascript:loginUser();


Remi

On 25 sept. 2012, at 02:10 AM, Katrina katrina.mcke...@socraticarts.com wrote:

 Hi,
 By searching the archives I did discover showPageById but it doesn't seem to 
 be working for me.
 
 
 HTML*
 
 div id=home class=panel selected=true title=TEST
   h2TEST - Get Cash!/h2  
   ul
 lia href=#loginLogin/a/li
 lia href=#registerRegister/a/li
   /ul
 
 /div  
 
 
 div id=login class=panel
 h2Login into TEST/h2 
 fieldset
 div class=row
 labelEmail/labelinput type=text name=emailaddress 
 value=/
 /div
 div class=row
 labelPassword/labelinput type=password name=password 
 value=/
 /div
a class=btn-blue bt-big type=button href=# 
 onclick=loginUser();return false;Login/a
 /fieldset
 /div  
 
  
  div id=main class=panel  title=TEST
h2TEST - Get Cash!/h2
  fieldset
 div class=row
 labelHi user, /label
 /div
 div class=row
 labelI have a.../label
 /div
 a class=btn-blue bt-big type=button href=#nextSubmit/a  
   
 /fieldset
 /div  
 
 
 JavaScript 
 **
 function loginUser(){
   alert(test)
   iui.showPageById(main); 
 }
 
 The alert appears but the screen goes back to the home panel.
 
 Thank you for you help.
 
 Katrina
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Is there a built in class selector?

2012-09-04 Thread Remi Grumeau
- iui.hasClass(elmt, className)
- iui.addClass(elmt, className)
- iui.removeClass(elmt, className)

Element has to be an HTMLDomElement, not its ID, so for div id=home
title=Home class=panel, you have to do a
iui.hasClass(document.getElementById('home'), 'panel'), and not
iui.hasClass('home', 'panel').

If you need to select a list of elements by class name, native JS function
document.getElementsByClassName().

If you need more than that, you may consider zepto.js rather than jquery.
Or code your own few functions.

Remi


On Tue, Sep 4, 2012 at 10:22 PM, Steve Kallestad one...@tabtonic.comwrote:

 I'm wondering if iui has a built in class selector or if I should be
 looking at rolling my own. I'd prefer not to throw in a big set of
 javascript from jquery or prototype for a simple selection utility.

 --
 You received this message because you are subscribed to the Google Groups
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Server-side language poll

2012-09-01 Thread Remi Grumeau
On 31 août 2012, at 09:51 PM, Sean Gilligan msgilli...@gmail.com wrote:

 On 8/31/12 9:53 AM, Remi Grumeau wrote:
 This might help us to work when working on documentations.
 
 
 In general, I think the official documentation should continue to be 
 server-side agnostic.  The other thing to keep in mind is that for each 
 language there are a variety of frameworks and HTML template libraries, so 
 the number of choices is mind-boggling.

Agree. Just asking, in case we have one or two example (mainly for forms) where 
a server-side script would be used.
This is iphonewebdev ml, not iui-developers ;)

 What I think would be very helpful would be some documentation about how to 
 analyze issues (with iUI or other mobile webapps) in a way that separates the 
 client-side from the server side.  If it's a client side issue there are 
 techniques for reproducing almost every issue with static HTML.
 
 The best thing to do, of course, is to post a public example of the issue so 
 that other developers can look at it in their browser/debugger of choice.  If 
 that's not possible/practical (and we should encourage people to try harder 
 on this) it's always better to do a view source in the browser than to post 
 their server-side template code to the mailing list.

Be my guest.

 I think we should encourage list members to blog or write articles about 
 their iUI/mobile experiences in different languages and collect links to 
 these articles on the wiki.  I've done a bit of this in the past, but have 
 not been able to keep it up to date. Does anyone want to volunteer to do that?
 
 -- Sean

that's a totally different ml topic by itself. To be short, i would say i 
disagree with this idea since it generates a totally broken list of links 
within a year. Then the wiki is full of broken links (or references that now 
use other framewoks). 

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Double background lines after a search

2012-08-31 Thread Remi Grumeau
This might be a good topic for a article somewhere in a blog or website or
wiki.
Searching in a database from an iUI page using forms  PHP ( provide
server-side alternative sample in Grails, Ruby, ASPx, ...)


Remi


On Fri, Aug 31, 2012 at 5:32 PM, Sean Gilligan msgilli...@gmail.com wrote:

 Also (as Remi suggested), please double-check that you are not Ajaxing in
 a complete HTML page and inserting it into the DOM.  That might be your
 problem.

 -- Sean

 Sent from my iPhone

 On Aug 31, 2012, at 7:01 AM, Kurt kurtmey...@gmail.com wrote:

 Guys - I apologize as I am now finding out our hosting server is having
 DNS record issues which is why you can't get to my links. When they get
 fixed I will repost for you to take a look.

  Personally I would worry about Internet Explorer capabilities as it is
 quickly losing market share and increasingly disappoints me.

 Sean - I am going to take your advise and review the form examples.
 Hopefully I can find a fix in there.

 Hopefully, I havn't wasted your time.

 Thanks,
Kurt


 On Thursday, August 30, 2012 6:02:47 PM UTC-4, Sean Gilligan wrote:

  On 8/30/12 1:16 PM, Kurt wrote:

  I did reproduce it with one of your samples:



 *http://contrack.iupat.info/iui/samples/music/music.html*http://contrack.iupat.info/iui/samples/music/music.html



 I can't load that URL.  It starts to load, but Safari 6 times out and
 displays a can't connect to server message.

 Try to reproduce the problem on our demo site:
  http://demo.iui-js.org/samples/music/music.html#_home
 http://demo.iui-js.org/**samples/music/music.html#_home

 Is the problem reproducible there?


 -- Sean

 p.s. There is Form Tests web page on the demo site that has some
 example forms with different configurations that you might find helpful:
  http://demo.iui-js.org/test/form-test.html#_formTest
 http://demo.iui-js.org/test/**form-test.html#_formTest


   --
 You received this message because you are subscribed to the Google Groups
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en
 http://groups.google.com/group/iphonewebdev?hl=en.



  --
 You received this message because you are subscribed to the Google Groups
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Double background lines after a search

2012-08-31 Thread Remi Grumeau
This might be a good topic for a article somewhere in a blog or website or
wiki.
Searching in a database from an iUI page using forms  PHP ( provide
server-side alternative samples for ASPx, Ruby, ...)

Remi


On Fri, Aug 31, 2012 at 5:32 PM, Sean Gilligan msgilli...@gmail.com wrote:

 Also (as Remi suggested), please double-check that you are not Ajaxing in
 a complete HTML page and inserting it into the DOM.  That might be your
 problem.

 -- Sean

 Sent from my iPhone

 On Aug 31, 2012, at 7:01 AM, Kurt kurtmey...@gmail.com wrote:

 Guys - I apologize as I am now finding out our hosting server is having
 DNS record issues which is why you can't get to my links. When they get
 fixed I will repost for you to take a look.

  Personally I would worry about Internet Explorer capabilities as it is
 quickly losing market share and increasingly disappoints me.

 Sean - I am going to take your advise and review the form examples.
 Hopefully I can find a fix in there.

 Hopefully, I havn't wasted your time.

 Thanks,
Kurt


 On Thursday, August 30, 2012 6:02:47 PM UTC-4, Sean Gilligan wrote:

  On 8/30/12 1:16 PM, Kurt wrote:

  I did reproduce it with one of your samples:



 *http://contrack.iupat.info/iui/samples/music/music.html*http://contrack.iupat.info/iui/samples/music/music.html



 I can't load that URL.  It starts to load, but Safari 6 times out and
 displays a can't connect to server message.

 Try to reproduce the problem on our demo site:
  http://demo.iui-js.org/samples/music/music.html#_home
 http://demo.iui-js.org/**samples/music/music.html#_home

 Is the problem reproducible there?


 -- Sean

 p.s. There is Form Tests web page on the demo site that has some
 example forms with different configurations that you might find helpful:
  http://demo.iui-js.org/test/form-test.html#_formTest
 http://demo.iui-js.org/test/**form-test.html#_formTest


   --
 You received this message because you are subscribed to the Google Groups
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en
 http://groups.google.com/group/iphonewebdev?hl=en.



  --
 You received this message because you are subscribed to the Google Groups
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Server-side language pool

2012-08-31 Thread Remi Grumeau
Hi list,

Just a quick question: which server-side language are you using for your
mobile web projects/websites ? (if any)
- PHP
- ASPx
- Java
- ColdFusion
- Python
- Ruby
- SAP
- other (please tell)

This might help us to work when working on documentations.

Thanks!

Remi

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Double background lines after a search

2012-08-30 Thread Remi Grumeau
it seems like a common rookie mistake, having two reasons most of the time:
- selected=true attribute tag on new div
- div.toolbar in new file

Like Sean says, a URL we can test might help a lot

Remi Grumeau

On 29 août 2012, at 03:21 PM, Kurt kurtmey...@gmail.com wrote:

 First off just want to say how awesome the iUI framework is. We are planning 
 on using it for multiple projects in the future. 
 
 Currently we are using vTigerCRM (PHP) which has the older version of iUI 
 loaded as an add on. We are trying to upgrade to the latest version of iUI 
 and so far things have gone very smoothly. Due to this being a web 
 application programming in PHH, we have had to use the target=_webapp for 
 a lot of the links. 
 
 Unfortunately we are have problems with the search / Submit button to search 
 through our application, which basically refreshing the current page with the 
 results. The background of the title bar duplicates each time you press 
 search.. Here is what it looks after 4 searches: 
 http://contrack.iupat.info/After.png . The search functionality is actually 
 working just fine, the only problem is the duplicate title bar background?
 
 Here is the code for our button: 
 
 div class=toolbar
h1 id=pageTitle/h1
a class=button leftButton href=javascript:window.close();Home/a
a class=button href=#searchFormSearch/a
 /div
 
 Here is the code for the form: 
 
 form id=searchForm class=dialog onsubmit=if(this.search.value == '') 
 return false; action=index.php method=GET
fieldset
h1{$_MODULE-label()}/h1
a class=button leftButton type=cancelCancel/a
a target=_webapp class=button blueButton type=submitSearch/a 
label for=keywordSearch:/label
input type=hidden name=_operation value=listModuleRecords /
input type=hidden name=module value={$_MODULE-name()} /
input id='__searchbox__q_' type=text name=search class=searchbox 
 value={$_SEARCH}/ placeholder=Type your keywords
/fieldset
 /form
 
 Any help would be appreciated. Thank you again for all your hard work with 
 this framework.
 
 Kurt
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
 
 

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Double background lines after a search

2012-08-30 Thread Remi Grumeau
Tes URL is blank here.

Remi

On 30 août 2012, at 02:25 PM, Kurt kurtmey...@gmail.com wrote:

 Gentlemen - I appreciate the quick feed back. And yes I believe it is 
 probably a big rookie mistake. I have setup a demo environment quick, of 
 course not all of the functionality is working inside. But the general idea 
 is there and you can see double lines after you login and when you perform a 
 search under the projects section.
  
 http://test.iupat.info/vtigercrm/modules/Mobile/ user:test pass:test
  
 I appreciate you guys take the time to look at it. I believe it has to do 
 withe the way I am submitting the form in php, back to the index.php file. 
 Like I said before, I had to make a lot of
 the URL's target=webapp for things to work, however there is no way to do 
 that with forms. (At least that I can figure out).
  
 Kurt
  
 
 On Thursday, August 30, 2012 5:45:26 AM UTC-4, Remi Grumeau wrote:
 it seems like a common rookie mistake, having two reasons most of the time: 
 - selected=true attribute tag on new div 
 - div.toolbar in new file 
 
 Like Sean says, a URL we can test might help a lot 
 
 Remi Grumeau 
 
 On 29 août 2012, at 03:21 PM, Kurt kurtm...@gmail.com wrote: 
 
  First off just want to say how awesome the iUI framework is. We are 
  planning on using it for multiple projects in the future. 
  
  Currently we are using vTigerCRM (PHP) which has the older version of iUI 
  loaded as an add on. We are trying to upgrade to the latest version of iUI 
  and so far things have gone very smoothly. Due to this being a web 
  application programming in PHH, we have had to use the target=_webapp 
  for a lot of the links. 
  
  Unfortunately we are have problems with the search / Submit button to 
  search through our application, which basically refreshing the current page 
  with the results. The background of the title bar duplicates each time you 
  press search.. Here is what it looks after 4 searches: 
  http://contrack.iupat.info/After.png . The search functionality is actually 
  working just fine, the only problem is the duplicate title bar background? 
  
  Here is the code for our button: 
  
  div class=toolbar 
 h1 id=pageTitle/h1 
 a class=button leftButton href=javascript:window.close();Home/a 
 a class=button href=#searchFormSearch/a 
  /div 
  
  Here is the code for the form: 
  
  form id=searchForm class=dialog onsubmit=if(this.search.value == '') 
  return false; action=index.php method=GET 
 fieldset 
 h1{$_MODULE-label()}/h1 
 a class=button leftButton type=cancelCancel/a 
 a target=_webapp class=button blueButton 
  type=submitSearch/a 
 label for=keywordSearch:/label 
 input type=hidden name=_operation value=listModuleRecords / 
 input type=hidden name=module value={$_MODULE-name()} / 
 input id='__searchbox__q_' type=text name=search class=searchbox 
  value={$_SEARCH}/ placeholder=Type your keywords 
 /fieldset 
  /form 
  
  Any help would be appreciated. Thank you again for all your hard work with 
  this framework. 
  
  Kurt 
  
  -- 
  You received this message because you are subscribed to the Google Groups 
  iPhoneWebDev group. 
  To post to this group, send email to iphone...@googlegroups.com. 
  To unsubscribe from this group, send email to 
  iphonewebdev...@googlegroups.com. 
  Visit this group at http://groups.google.com/group/iphonewebdev?hl=en. 
  
  
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Double background lines after a search

2012-08-30 Thread Remi Grumeau
tell me about it... funny you ask about it today btw :)

i'm working on this at the moment, but it might not be part of master iUI 
branch anytime soon (if anytime) but an extended branch.


Remi

On 30 août 2012, at 04:25 PM, Kurt kurtmey...@gmail.com wrote:

 Remi, I had to update DNS this morning for this test server. Probally hasn't 
 propagated yet. Should be pointing to 12.141.183.227.
  
 I noticed IUI 0.4 doesn't work well with IE either and give's blank pages. 
 Seems to work better with firefox.
  
 Kurt
  
  
 
 On Thursday, August 30, 2012 9:41:16 AM UTC-4, Remi Grumeau wrote:
 Tes URL is blank here.
 
 Remi
 
 On 30 août 2012, at 02:25 PM, Kurt kurtm...@gmail.com wrote:
 
 Gentlemen - I appreciate the quick feed back. And yes I believe it is 
 probably a big rookie mistake. I have setup a demo environment quick, of 
 course not all of the functionality is working inside. But the general idea 
 is there and you can see double lines after you login and when you perform a 
 search under the projects section.
  
 http://test.iupat.info/vtigercrm/modules/Mobile/ user:test pass:test
  
 I appreciate you guys take the time to look at it. I believe it has to do 
 withe the way I am submitting the form in php, back to the index.php file. 
 Like I said before, I had to make a lot of
 the URL's target=webapp for things to work, however there is no way to do 
 that with forms. (At least that I can figure out).
  
 Kurt
  
 
 On Thursday, August 30, 2012 5:45:26 AM UTC-4, Remi Grumeau wrote:
 it seems like a common rookie mistake, having two reasons most of the time: 
 - selected=true attribute tag on new div 
 - div.toolbar in new file 
 
 Like Sean says, a URL we can test might help a lot 
 
 Remi Grumeau 
 
 On 29 août 2012, at 03:21 PM, Kurt kurtm...@gmail.com wrote: 
 
  First off just want to say how awesome the iUI framework is. We are 
  planning on using it for multiple projects in the future. 
  
  Currently we are using vTigerCRM (PHP) which has the older version of iUI 
  loaded as an add on. We are trying to upgrade to the latest version of iUI 
  and so far things have gone very smoothly. Due to this being a web 
  application programming in PHH, we have had to use the target=_webapp 
  for a lot of the links. 
  
  Unfortunately we are have problems with the search / Submit button to 
  search through our application, which basically refreshing the current 
  page with the results. The background of the title bar duplicates each 
  time you press search.. Here is what it looks after 4 searches: 
  http://contrack.iupat.info/After.png . The search functionality is 
  actually working just fine, the only problem is the duplicate title bar 
  background? 
  
  Here is the code for our button: 
  
  div class=toolbar 
 h1 id=pageTitle/h1 
 a class=button leftButton href=javascript:window.close();Home/a 
 a class=button href=#searchFormSearch/a 
  /div 
  
  Here is the code for the form: 
  
  form id=searchForm class=dialog onsubmit=if(this.search.value == '') 
  return false; action=index.php method=GET 
 fieldset 
 h1{$_MODULE-label()}/h1 
 a class=button leftButton type=cancelCancel/a 
 a target=_webapp class=button blueButton 
  type=submitSearch/a 
 label for=keywordSearch:/label 
 input type=hidden name=_operation value=listModuleRecords / 
 input type=hidden name=module value={$_MODULE-name()} / 
 input id='__searchbox__q_' type=text name=search class=searchbox 
  value={$_SEARCH}/ placeholder=Type your keywords 
 /fieldset 
  /form 
  
  Any help would be appreciated. Thank you again for all your hard work with 
  this framework. 
  
  Kurt 
  
  -- 
  You received this message because you are subscribed to the Google Groups 
  iPhoneWebDev group. 
  To post to this group, send email to iphone...@googlegroups.com. 
  To unsubscribe from this group, send email to 
  iphonewebdev...@googlegroups.com. 
  Visit this group at http://groups.google.com/group/iphonewebdev?hl=en. 
  
  
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphone...@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http

Re: apple multiple inline buttons

2012-08-29 Thread Remi Grumeau
did you took a look at
http://groups.google.com/group/iphonewebdev/browse_thread/thread/1fb8c9f10067fdd1
?

Might be a good start


Remi

On 28 août 2012, at 11:00 PM, nexx nexx2...@gmail.com wrote:

 
 
 On Sunday, April 8, 2012 10:28:35 AM UTC-3, nexx wrote:
 I'd like to create multiple inline buttons in Apple style. 
 
 For reference, if you check in IOS5 Settings  Wi-Fi   select some 
 network you're connected and pinch in  (  ). You'll see three buttons 
 like: 
 /\ 
 |   DHCP  |   BootP   |   Static  | 
 \/ 
 
 That's exactly the style of buttons I'd like to mimic.. 
 
 Is it possible with IUI? Do somebody mind posting a code snipet to do 
 that? (I'm coding with php5..) 
 
 Thank you very much! 
 V 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: IUI creating multiple small buttons in row?

2012-08-28 Thread Remi Grumeau
well, with CSS could sounds like an easy answer but that's pretty much all i 
can say.
Just add some CSS statements to colorize this how you want.

Remi

On 28 août 2012, at 01:47 AM, nexx nexx2...@gmail.com wrote:

 I'd like to make some of those buttons gray (or red), how do I do it?
 
 
 
 On Wednesday, April 4, 2012 7:45:01 PM UTC-3, Remi Grumeau wrote:
 My pleasure :)
 
 On 5 avr. 2012, at 12:07 AM, sblair s.b...@ieee.org wrote:
 
  Remi,
  
  That was AWESOME!  Thanks so much.  I'm a C language guy, so
  javascript and especially CSS are still completely foreign to me.
  That worked beautifully.
  
  Thanks!
  Scott
  
  
  
  On Apr 4, 1:15 am, Remi Grumeau remi.grum...@gmail.com wrote:
  Note that this is a custom need, so you have to code some custom CSS for 
  it.
  
  See this example here:http://jsfiddle.net/BRNBn/
  
  fieldset
  div class=row
  ul class=inlinebuttons
  lia href=javascript:; class=button--/a/li
  lia href=javascript:; class=button-/a/li
  lia href=javascript:; class=button+/a/li
  lia href=javascript:; class=button++/a/li
  /ul
  /div
  /fieldset
  
  Using this CSS
  
  ul.inlinebuttons li {
  display:inline-block;
  }
  ul.inlinebuttons li a {
  position: relative;
  height:   auto;
  padding:  0.7em 0.5em;
  top:  auto;
  right:auto;
  }
  
  See? 10 lines of CSS :)
  
  Also, default theme buttons comes with the blue of the toolbar as a
  background (since it's normally to use only there). For a clearer look,
  you'd better use the gradient-based theme
  
  In the header, just replace
  iui/t/default/default-theme.css
  by
  iui/t/defaultgrad/defaultgrad-theme.css
  
  Which results tohttp://jsfiddle.net/xTUaS/1/
  
  Remi
  
  
  
  On Wed, Apr 4, 2012 at 12:03 AM, sblair s.bl...@ieee.org wrote:
  So I tried dropping this in the ul/li format with the CSS and I still
  end up with it just drawing the buttons on top of each other it
  appears.  I only see the ++ button being visible.
  
  What I'm trying to achieve is:
  
  Row Label
  [--][ - ]   [ + ]  [++]
  
  Where the buttons are side by side on the same row.  Any help is
  greatly appreciated!
  
  Thanks
  Scott
  
  On Apr 3, 11:27 am, Remi Grumeau remi.grum...@gmail.com wrote:
  Using a ul/li combinaison?
  
  div class=row
ul class=inlinebuttons
  lia id=backButton class=button href=#/a/li
  lia class=button blueButton href=#--/a/li
  lia class=button blueButton href=#-/a/li
  lia class=button blueButton href=#+/a/li
  lia class=button blueButton href=#++/a/li
/ul
  /div
  
  then with some CSS
  ul.inlinebuttons {
width: 100%;}
  
  ul.inlinebuttons li {
display: inline;
  
  }
  
  But where do you want those buttons to be? In the page or in the
  toolbar? i
  see backButton... you know you can only have one element with the same
  ID ?
  
  Remi
  
  On Tue, Apr 3, 2012 at 8:11 PM, sblair s.bl...@ieee.org wrote:
  I'm trying to figure out how to create multiple small buttons within a
  single row all side by side.
  
  Basicallly I'm looking to have 4 buttons ( --, -,  +,  ++ ) in a
  single row in IUI.
  
  I've tried doing this as these buttons are the perfect size, but it
  just ignored the row I was putting them at and put them in the first
  row at the top with them all piled on top of each other and not
  positioned next to each other.
  
  div class=row
 a id=backButton class=button href=#/a
 a class=button blueButton href=#--/a
 a id=backButton class=button href=#/a
 a class=button blueButton href=#-/a
 a id=backButton class=button href=#/a
 a class=button blueButton href=#+/a
 a id=backButton class=button href=#/a
 a class=button blueButton href=#++/a
   /div
  
  Suggestions?
  
  Thanks.
  Scott
  
  --
  You received this message because you are subscribed to the Google
  Groups
  iPhoneWebDev group.
  To post to this group, send email to iphone...@googlegroups.com.
  To unsubscribe from this group, send email to
  iphonewebdev...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/iphonewebdev?hl=en.
  
  --
  You received this message because you are subscribed to the Google Groups
  iPhoneWebDev group.
  To post to this group, send email to iphone...@googlegroups.com.
  To unsubscribe from this group, send email to
  iphonewebdev...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/iphonewebdev?hl=en.
  
  -- 
  You received this message because you are subscribed to the Google Groups 
  iPhoneWebDev group.
  To post to this group, send email to iphone...@googlegroups.com.
  To unsubscribe from this group, send email to 
  iphonewebdev...@googlegroups.com.
  For more options, visit this group

Re: Please Please PLEASE Remove me! (Posting denied)

2012-08-21 Thread Remi Grumeau
Hi Eddy,

i just removed you.

Have a nice day,
Remi

On 21 août 2012, at 09:56 AM, Eddy Martinez iphoneweb...@fasteddy.org wrote:

 Please remove me from the list  iphonewebdev
 
 
 I am unable to unsubscribe from the group on my own. 
 
 
 Sorry...
 
 This service is restricted.
 
 You cannot join or post to iphonewebdev with your account 
 e...@fasteddy.org. If you believe this is an error, please contact your 
 domain administrator.
 
 Sign out of your current Google Account to access this group with a different 
 Google account. 
 
 Please return to the main page.
 
 
 
 Yes, I realize the error message has e...@fasteddy.org. however the 
 subscribed address is iphoneweb...@fasteddy.org
 
 
 The unsubscribe messages, with link, to confirm, *fails*. 
 
 Please remove me. 
 
 Thanks in advance, 
 Eddy
 
 
 Begin forwarded message:
 
 From: iphonewebdev+ow...@googlegroups.com
 Subject: Re: Please Please PLEASE Remove me! (Posting denied)
 Date: August 20, 2012 12:08:04 AM PDT
 To: iphoneweb...@fasteddy.org
 
 Your message to the iPhoneWebDev group has been rejected.  See the group 
 posting guidelines:
 http://groups.google.com/group/iphonewebdev/web/group-posting-guidelines
 
 We moderate all messages, comments, app promotion or job offers not related 
 to mobile web development. If we're wrong, please repost your message.
 
 Thank you for your understanding
 
 
 --
 Eddy Martinez
 e...@fasteddy.org
 760-529-3278
 
 
 
 
 

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Calling the numeric keyboard

2012-08-21 Thread Remi Grumeau
Could you share a link / demo of that?!
Sounds weird...

Remi Grumeau

On 20 août 2012, at 08:24 PM, Brian McMillin br...@bkmcm.com wrote:

 Input type=number is good for getting the numeric + special keyboard 
 instead of the alpha, but it suffers from a couple of (serious ?) annoyances.
 
 1. it fails JSLint as an invalid type (apparently because JSLint is not HTML 
 5...)
 
 2. it massively tweaks with the output format - i.e. deletes trailing zeroes 
 in the fractional part, deletes a trailing decimal point, and (!!) inserts 
 thousands separators (commas).
 
 If anyone has hints about controlling this behavior, I am sure many people 
 would be interested.
 
 Brian
 
 From: toy4fun ron.e...@gmail.com
 To: iphonewebdev@googlegroups.com 
 Sent: Monday, August 20, 2012 7:22 AM
 Subject: Re: Calling the numeric keyboard
 
 This is a good sample, thanks.
 The type=number is exactly what I needed, but when putting it in an ASPX 
 page I'm getting the following error:
 Parser Error Message: 'number' is not a valid type for an input tag.
 Any suggestions?
  
 
 On Sunday, August 19, 2012 6:12:30 PM UTC+3, Mogens Beltoft wrote:
 You could try type=number to get the alphanumeric keyboard with dot comma 
 etc.
 
 http://www.beltoft.dk/iPhone/presentation/keyboards.html
 
 I haven't seen a numeric only keyboard with dot.
 
 /Mogens
 
 On 19-08-2012 14:05, toy4fun wrote:
 Thanks for your quick reply.
 I've tried the input type=text pattern=[0-9]* method but I need the 
 dot...
 I've tried setting input type=number step=0.01 but I'm getting a parse 
 error message.
 Any advise will be welcome.
 
 On Sunday, August 19, 2012 12:28:43 PM UTC+3, Remi Grumeau wrote:
 you may want to look at
 http://we-are-gurus.com/labs/iui/#_inputs
 
 and
 http://blog.pamelafox.org/2012/05/triggering-numeric-keyboards-with-html5.html?m=1
 
 (can't find the inputs example page in iUI repo)
 
 Remi
 
 
 On 19 août 2012, at 10:43 AM, toy4fun ron@gmail.com wrote:
 
 Hi,
  
 I've search thru the group of how to call the numeric keyboard when the 
 focus is on input.
 I've tried style='-wap-input- format: *n;' and setting phone and zip in 
 the name but without success.
 Any other ideas?
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphone...@googlegroups.com.
 To unsubscribe from this group, send email to iphonewebdev...@googlegroups. 
 com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphone...@googlegroups.com.
 To unsubscribe from this group, send email to iphonewebdev...@ 
 googlegroups.com.
 Visit this group at http://groups.google.com/ group/iphonewebdev?hl=en.
  
  
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Calling the numeric keyboard

2012-08-20 Thread Remi Grumeau
On 20 août 2012, at 02:22 PM, toy4fun ron.e...@gmail.com wrote:

 This is a good sample, thanks.
 The type=number is exactly what I needed, but when putting it in an ASPX 
 page I'm getting the following error:
 Parser Error Message: 'number' is not a valid type for an input tag.
 Any suggestions?

forget about ASPx :)

I have no skills in aspx but if you can't do it server side due to some 
limitations, you may have to do it client-side (aka Javascript)

 
 On Sunday, August 19, 2012 6:12:30 PM UTC+3, Mogens Beltoft wrote:
 You could try type=number to get the alphanumeric keyboard with dot comma 
 etc.
 
 http://www.beltoft.dk/iPhone/presentation/keyboards.html
 
 I haven't seen a numeric only keyboard with dot.
 
 /Mogens
 
 On 19-08-2012 14:05, toy4fun wrote:
 Thanks for your quick reply.
 I've tried the input type=text pattern=[0-9]* method but I need the 
 dot...
 I've tried setting input type=number step=0.01 but I'm getting a parse 
 error message.
 Any advise will be welcome.
 
 On Sunday, August 19, 2012 12:28:43 PM UTC+3, Remi Grumeau wrote:
 you may want to look at
 http://we-are-gurus.com/labs/iui/#_inputs
 
 and
 http://blog.pamelafox.org/2012/05/triggering-numeric-keyboards-with-html5.html?m=1
 
 (can't find the inputs example page in iUI repo)
 
 Remi
 
 
 On 19 août 2012, at 10:43 AM, toy4fun ron@gmail.com wrote:
 
 Hi,
  
 I've search thru the group of how to call the numeric 
 keyboard when the focus is on input.
 I've tried style='-wap-input-format: *n;' and setting phone and zip in 
 the name but without success.
 Any other ideas?
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphone...@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphone...@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Calling the numeric keyboard

2012-08-19 Thread Remi Grumeau
you may want to look at
http://we-are-gurus.com/labs/iui/#_inputs

and
http://blog.pamelafox.org/2012/05/triggering-numeric-keyboards-with-html5.html?m=1

(can't find the inputs example page in iUI repo)

Remi


On 19 août 2012, at 10:43 AM, toy4fun ron.e...@gmail.com wrote:

 Hi,
  
 I've search thru the group of how to call the numeric keyboard when the focus 
 is on input.
 I've tried style='-wap-input-format: *n;' and setting phone and zip in the 
 name but without success.
 Any other ideas?
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Calling the numeric keyboard

2012-08-19 Thread Remi Grumeau
there is no numerical keyboard with a dot: a numerical keyboard is set for a 
numerical value. a numerical value doesn't have dots. it has numerics.
it's like asking for an email keyboard with a space key.

two options:
- split input in two inputs you merge with a dot on submit
- preventDefault + make your own numerical keyboard

about option 2: don't forget to deal with non-touchscreen devices 

Remi Grumeau

On 19 août 2012, at 05:12 PM, Mogens Beltoft mog...@beltoft.dk wrote:

 You could try type=number to get the alphanumeric keyboard with dot comma 
 etc.
 
 http://www.beltoft.dk/iPhone/presentation/keyboards.html
 
 I haven't seen a numeric only keyboard with dot.
 
 /Mogens
 
 On 19-08-2012 14:05, toy4fun wrote:
 Thanks for your quick reply.
 I've tried the input type=text pattern=[0-9]* method but I need the 
 dot...
 I've tried setting input type=number step=0.01 but I'm getting a parse 
 error message.
 Any advise will be welcome.
 
 On Sunday, August 19, 2012 12:28:43 PM UTC+3, Remi Grumeau wrote:
 you may want to look at
 http://we-are-gurus.com/labs/iui/#_inputs
 
 and
 http://blog.pamelafox.org/2012/05/triggering-numeric-keyboards-with-html5.html?m=1
 
 (can't find the inputs example page in iUI repo)
 
 Remi
 
 
 On 19 août 2012, at 10:43 AM, toy4fun ron@gmail.com wrote:
 
 Hi,
  
 I've search thru the group of how to call the numeric keyboard when the 
 focus is on input.
 I've tried style='-wap-input-format: *n;' and setting phone and zip in 
 the name but without success.
 Any other ideas?
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphone...@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Back button with external URL when at top level

2012-08-10 Thread Remi Grumeau
Looks at the iUI-logevent.js in iui/js.  This will activate
beforetransition/aftertransition events. Then you might be able to
show/hide a button based on those event (knowing your homescreen ID value.

Remi

Sent from my BlackBerry® PlayBook™
www.blackberry.com

--
*From:* Andy Rennard andy.renn...@gmail.com
*To:* iphonewebdev@googlegroups.com iphonewebdev@googlegroups.com
*Sent:* August 10, 2012 5:29 PM
*Subject:* Back button with external URL when at top level

Hi - I'm using iUI inside a UIWebView in an native iOS app - I'm using
it to display user documentation, and it looks nice.

I have a problem though - when at the top level of the uIU hierarchy,
I want to back button to stay visible (with a custom label), and when
clicked I need iUI to fire off an external http:// request, which my
native app can intercept and pop the iUI off my navigation stack.

I've tried a few things, but I'm struggling to get it to work. I get
get a button to appear, but it doesn't seem to do anything when at the
top level. I've tried adding a new pattern to the native URL patterns,
and trying to intercept that, but I never see the request being fired.

My Javascript skills are not great...anybody know how to solve this problem ?

Thanks !

-- 
You received this message because you are subscribed to the Google
Groups iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Redundant Toolbars - Request for best practice

2012-08-01 Thread Remi Grumeau
Any URL we might test?
Sounds like the UL you are loading via AJAX (i assume) misses an ID or
title, or have a selected attribute.

Which version of IUI are you using?

Remi


On Wed, Aug 1, 2012 at 5:32 PM, Jestre swsch...@gmail.com wrote:

 Afternoon,

 I am starting out with iui and and trying to add an iphone interface on to
 an existing site, basically a company directory.

 In short, the app opens with a blank (logo) page with a toolbar which has
 a search button on it.  Clicking the Search button drops down (a la one of
 the examples) a single-line search form with a single field (Name).  When
 the user enters the name (or part of it) and taps submit, it returns a list
 of possible matches.

 Right now I am returning a bare (no other html) list as a UL with each LI
 containing a possible match.  Each match is hyperlinked (A) to a detail
 page for that user, e.g. their phone numbers, email address, photo, etc.

 All of that seems to work, but every time I hit the back button to return
 to the main/index page, it contains one additional blank toolbar stacked
 below the first.  So after several searches the page is full of blank
 toolbars (surmounted by the real toolbar).

 Is there a better way to do this?  I am using (x)html and PHP to generate
 the views, but it seems like I should be handling something better.  I'm
 just not sure what.

 Any ideas appreciated.

 Scott

  --
 You received this message because you are subscribed to the Google Groups
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to
 iphonewebdev+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




-- 
You received this message because you are subscribed to the Google Groups 
iPhoneWebDev group.
To post to this group, send email to iphonewebdev@googlegroups.com.
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.




Re: Hide index title bar

2012-07-04 Thread Remi Grumeau
still think we have to provide a better and easier way to deal with 
beforetransition/aftertransition as screen attributes.
as part of iUI.

Remi Grumeau

On 3 juil. 2012, at 08:32 PM, Sean Gilligan msgilli...@gmail.com wrote:

 On 7/3/12 5:55 AM, Valerio Mercolini wrote:
 It's possible to hide the toolbar (blue box with the title) only in the 
 index page? (the Div with the selected=True)
 
 Take a look at this jsFiddle:
 http://jsfiddle.net/msgilligan/jfpEP/
 
 It uses custom CSS and the iUI extension mechanism to do what you need.  It 
 might need some fine-tuning, but this should get you started.
 
 -- Sean
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/iphonewebdev?hl=en.
 

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



Re: How to change page with javascript

2012-06-07 Thread Remi Grumeau
depends of what you need to do man.

if all you do is changing one or two text / elements, then you can put 
id=pagenameElement1 and change them with innerHTML.

if you change pretty much everything, just get the id of your page and change 
all of it with an innerHTML in it.

Once done, load your page with 
iui.showPageById(pageID);

Loading from a server DB or from local storages ?

Remi

On 7 juin 2012, at 07:55 AM, Giacomo Balli giacomoba...@gmail.com wrote:

 what are the pages?
 need some context in order to help.
 
 On Jun 7, 12:06 am, Musicman75 stephan.beu...@googlemail.com wrote:
 Hello,
 
 is there a documentation available how to change pages with
 javascript?
 
 I need to fill the pages with data before loading them.
 
 Thanks
 Stephan
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 iPhoneWebDev group.
 To post to this group, send email to iphonewebdev@googlegroups.com.
 To unsubscribe from this group, send email to 
 iphonewebdev+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/iphonewebdev?hl=en.
 

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



Re: Footer bar

2012-06-07 Thread Remi Grumeau
For iPhone since iOS5  Blackberry since OS7, yes.
Just use position: fixed.

For all previous versions + (crappy) Android, you have to use JS libraries
like iScroll.
See example here:
http://we-are-gurus.com/labs/showcase/moma/


Remi


On Thu, Jun 7, 2012 at 1:01 PM, Musicman75 stephan.beu...@googlemail.comwrote:

 Hello,

 is it possible to create a footer bar with IUI?
 A bar with buttons on the bottom of each site?

 Stephan

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



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



Re: Add event listener to react on back button

2012-06-07 Thread Remi Grumeau
Take a look at the Tbdmob plugin in iui/ext-sandbox/, or use the
event-log.js in iui/js
Then a beforetransition  aftertransition with a e.out to true/false will
help you to do that.

(again, this before/aftertransition listener should really be part of the
default iUI experience...)

Remi


On Thu, Jun 7, 2012 at 3:54 PM, Musicman75 stephan.beu...@googlemail.comwrote:

 Hello,

 is it possible to add an event listener to the back button?
 I need to change toolbar content for different pages.

 Thanks.

 Stephan

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



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



  1   2   3   4   5   6   >