Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

an alert makes the script work?!

4 views
Skip to first unread message

Geoff Cox

unread,
Jul 11, 2009, 4:56:51 AM7/11/09
to
Hello,

I realise that many will simply say drop prototype.js but for the
others!

Can anyone see why unless I have

alert("press OK"); or some other alert message,

when flaglast is true, the text coming from the php script only stays
on the screen for a split second!

Thanks

Geoff

if (flag10 == true) {
new Ajax.Updater(
'updateDiv',
'fv-c1-arrays4-mysql-minus-wm.php',
{
asynchronous:true,
method:'post',
parameters: params
}
);
resultsSaved = true;
flag10 = false;

} else if (flaglast == true) {

alert("press OK");
new Ajax.Updater(
'updateDiv',
'fv-c1-arrays4-mysql-minus-wm.php',
{
asynchronous:true,
method:'post',
parameters: params
}
);
resultsSaved = true;
flaglast = false;

Geoff Cox

unread,
Jul 11, 2009, 9:11:28 AM7/11/09
to
On Sat, 11 Jul 2009 09:56:51 +0100, Geoff Cox <gc...@freeuk.com> wrote:

>Hello,
>
>I realise that many will simply say drop prototype.js but for the
>others!
>
>Can anyone see why unless I have
>
>alert("press OK"); or some other alert message,
>
>when flaglast is true, the text coming from the php script only stays
>on the screen for a split second!

problem solved - needed a second div as two different ajax updaters at
work.

Cheres

Geoff

0 new messages