Broetchen1234 / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

May I know how to make Message prompt in iUI? #297

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
May I know how to make Message prompt in iUI? does it provide by default? Or 
others alternative way.

Original issue reported on code.google.com by asdfisee...@usj.edu.mo on 18 Aug 2011 at 1:48

GoogleCodeExporter commented 9 years ago
Are you talking about the natural iOS pop-up boxes?  This is all javascript 
(place an onClick='alert("Hello World")' inside the opening element tag), not 
iUI formatting.

For a simple box with an "OK" button, use onClick='alert("Hello World")
For an OK/Cancel box, use onClick='confirm("Hello World")
For an box with a text input, use onClick='prompt("Hello World")

Original comment by michael....@gmail.com on 31 Aug 2011 at 5:57