I need to change a variable in an Ajax situation that displays my Result message to the user. What i'm doing is performing an Ajax function, then checking a variable to see if I should show the message or not. I only want the message to show if the Ajax request completed without errors. That is, it's a form and there were no validation issues while processing, and the information got saved.
i tried
and
that's not working. I even tried simply
and that's not working. Lastly I tried:
and that never alerts me.
I need to figure out how to change the var proceed somewhere on my PHP processing page. Any ideas.
btw, i even tried something as crazy as using a session variable to change, but it still didn't work:
_______________
_brian.
i tried
Code:
<script type="text/javascript" language="javascript">setProceed(true);</script>
Code:
var proceed = false;
function setProceed(towhat){
proceed = towhat;
}
that's not working. I even tried simply
Code:
<script type="text/javascript" language="javascript">proceed = true;</script>
Code:
<script type="text/javascript" language="javascript">proceed = true; alert(proceed);</script>
I need to figure out how to change the var proceed somewhere on my PHP processing page. Any ideas.
btw, i even tried something as crazy as using a session variable to change, but it still didn't work:
Code:
var proceed = false;
function updateProceed(){
if(<?php echo $_SESSION['proceed']; ?>){ //this gets set to true in my PHP page.
proceed = true;
<?php $_SESSION['proceed'] = "false"; ?>
}
}
_______________
_brian.