I'm making a simple Ajax call to my CF server and returning
a result. It just determines whether the session is still
going.
It works fine in Firefox 1.5 and IE 7. Now as I get ready to
demo it,
the demo machine has Firefox 2 and the Ajax is broken! Seems
Firefox
has messed with Ajax in some way.
The strange thing is that Javascript IS turned on on the
machine that's
got FFv2, however, despite that clicking the button doesn't
produce an
alert. And it's coded to show up no matter what.
Here's the javascript on my page. Any ideas would be
appreciated!
-Rick
<script>
var loggedIn = false;
function My_Request(){ http( 'GET' , 'JSMX.cfm' ,
My_Response ); }
function My_Response(obj){
if (anythingwewant == 1) {
loggedIn = true;
alert(loggedIn);
}
else {
//alert(loggedIn);
loggedIn = false;
}
}
</script>
<script>
function isLoggedIn(url_add) {
My_Request();
//alert(loggedIn);
if (loggedIn == true) {
alert(loggedIn);
window.location=url_add;
}
else {
alert(loggedIn);
window.location="logout.cfm";
}
}
</script>