<?php
$pass = 1;
$options = array(
'update' => 'loading',
'complete' => "Element.show('loading')"
);
echo $javascript->event('window','load',$ajax-
>remoteFunction($options),false);
?>
<?php
$pass = 2;
$options = array(
'update' => 'loading',
'complete' => "Element.show('loading')"
);
echo $javascript->event('window','load',$ajax-
>remoteFunction($options),false);
?>
<div id="loading">Loading...<?=$pass?></div>
The preceding code consists of two PHP part and one div.
What I expected was "Loading...1" shows and next "Loading...2" shows,
but actually "Loading...2" showsed and "Loading...2" showed again.
1. Why the first PHP part in not executed?
2. Why is the value of $pass not changed? It keeps to be 2.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---