Hi
I have a big problem with my QML Application
When I select any option in "select" tag of webivew, not work ? I´m using N9 for tests.
I tested for Symbian^3, it works. Any idea ?
Thanks
Hi
I have a big problem with my QML Application
When I select any option in "select" tag of webivew, not work ? I´m using N9 for tests.
I tested for Symbian^3, it works. Any idea ?
Thanks
gnuton,
Follwing my example:
<select onchange="setParcel()" id="ddlListaParcelas" name="ddlListaParcelas">
<option value="">Digite a quantidade de parcelas acima</option>
<option value="">1</option>
</select>
I think that my problem is a javascript. Only not understand why in Symbian^3 it works without problems.
Thanks.
Ok you meant the HTML tag. In theory JS code should work on MeeGo too.
Could you show us a minimal working code?
gnutton,
My JS ...
function somenteNumeros(id, e)
{
var ddl = document.getElementById('ddlListaParcelas');
var key;
var achou = 0;
if(id.value > 0 && id.value < 25 && isNaN(id.value) == false)
{
for (var i = 0; i < ddl.options.length; i++)
{
if (id.value == (ddl.options[i].value.split('|')[1])) {
ddl.options[i].selected = true;
achou = 1;}
}
if (achou == 0 && id.value > 0)
{
id.value = ddl.options[ddl.options.length - 1].value.split('|')[1];
ddl.options[ddl.options.length - 1].selected = true;
}
else if (achou == 0)
ddl.options[0].selected = true;
}
else if (id.value != '')
{
ddl.options[ddl.options.length - 1].selected = true;
id.value = ddl.options[ddl.options.length - 1].value.split('|')[1];
return true;
}
else
{
ddl.options[0].selected = true;
return false;
}
}
function setParcel()
{
var ddl = document.getElementById('ddlListaParcelas');
var txt = document.getElementById('txtParcela');
for (var i = 0; i < ddl.options.length; i++)
{
if (ddl.options[i].selected == true)
{
txt.value = ddl.options[i].value.split('|')[1];
}
}
}
Thanks
Do you get any error message? is the txt variable null?