Hello everyone, I have a problem....

twingos

New member
Sep 19, 2012
1
0
0
Hi everyone, it's my first time here.

Hope someone can help....

I am having problems on the Gingerbread OS browser on a HTC Desire HD.

I am writing some mobile sites.

This script works on test phones such as the HTC One X( ICS), Iphone, Ipad and all PC browsers.... But not the Desire HD..

I have written a simple test script to highlight the problem...

<script type="text/javascript">
function Boxes()
{
a=confirm('A - Press OK or CANCEL');
b=confirm('B - Press OK or CANCEL');

alert('A was '+a+', B was '+b);

}
</script>
<input type="button" value="Test me" name="B1" onclick="Boxes();">

When you run this in any browser, you get the following sequence of events...

1) confirm dialogue "A- Press OK or Cancel." - I press OK
2) confirm dialogue "B- Press OK or Cancel." - I press OK
3) alert dialogue "A was true, B was true";


However, when I run this in the Desire HD browser, I get the following sequence of events...

1) confirm dialogue "A- Press OK or Cancel." - I press OK
2) alert dialogue "A was true, B was false";
3) confirm dialogue "B- Press OK or Cancel." - I press OK

The browser for some reason has decided to show the alert dialogue before I have even answered the second confirm dialogue to set it to true or false.

I am getting really frustrated with this, as I need to ask the user two questions.:-\

Has this rung any bells with anybody else?

Thanks..
 

Trending Posts

Members online

Forum statistics

Threads
956,350
Messages
6,967,725
Members
3,163,517
Latest member
amaka