I'm not sure I'm going to ask this the right way. I am developing for feature phones for the first time, e.g. users with limited bandwidth running Opera Mini and no javascript.
I have a form with a text box and an optional photo uploader. Most people do not upload a photo. I would like to achieve the following behavior: if the user chooses a file from the phone to be submitted in the form, the submit button text changes from "Submit" to "Submit with Photo". Is this possible without javascript?
With out javascript answer is no. And my answer is no and with javascript.
Let me explain.
About javascript in Opera Mini.
Javascript is not disabled in
Opera Mini
. You can use it. Opera Mini supportsXMLHttpRequest
,querySelector/querySeletorAll
, for example.Opera Mini
has aPresto
javascript engine on its servers which was using on desktop Opera, but with out CSS3 features which a expensive on rendering for browser.About forms and it elements.
Opera Mini
supports change event forselect
elements only. And then you change selectOpera Mini
re-render the page by reloading it with changed select value from Opera Mini server.Example
:HTML:
Javascript:
Read this to know what Opera Mini can: