That's nothing! :P I have even seen "null" title's on my iPhone.
my idea is to expand:
to (note the [ and ] for optional parameters so that it stays standard compliant):
alert("hello world" [, "title" [, "name of the button" ]])
the prompt and confirm popup syntax is analogue:
prompt("text goes here" [, "title" [, <array of length 2 with the button names>]])
-> it should be possible here to only have one button if you pass an array of length 1 (longer arrays can be ignored) so that a log in box makes more sense (when you *have/want* to log in you don't cancel)
confirm("text" [, "title [, button-names]])
And... a suggestion for a new popup would be a 'choice'-box. It's like a confirm-popup but with more that 2 buttons (you can integrate it with the confirm but then it wouldn't be standard compliant anymore... i think).
choice("would you like to save you're progress?", "My webapp", [ "Cancel", "yes", no"], cancel)
you specify text, title, buttons and ofcourse a default for the buttons
is this possible? or is it something that will never be supported? I would love to see these little things in the next major update (safari 5 and iphoneOS 4.0)
Thank you... and please keep me posted... I would like your opinion on my ideas.
> my idea is to expand:
> alert("hello world")
> to (note the [ and ] for optional parameters so that it stays standard
> alert("hello world" [, "title" [, "name of the button" ]])
It's unlikely we will expand these API unilaterally without consensus from other browser vendors. If you would like to build consensus among browser vendors for these features, I recommend you bring you ideas up to the HTML working group:
that was a quick reponse.
not the one i hoped for but one that i can understand... standards are good but they are slow to 'evolve'
thx for the link