Also, if you're using Firefox, the Firebug extension is quite handy for
viewing requests and seeing what exactly was POSTED to a given page.
I've never tried this with Active4D, but I'm wondering if it would be
possible to write an Active4D debug routine that would insert inline
Javascript that would wrap Firebug console.log statements? This might
allow you to dump debug statements to the browser console instead of
Active4D's console. Since we run the web server on Client, I have to
observe A4D's console via Timbuktu.
-- Brad
This is some PHP code which does something in the same vein. I just ran
a quick test and replacing the alert w/ console.log and it worked.
function js_alert($msg) {
/*
------------------------------------------------------------
Output markup that will cause a javascript alert to appear
on screen.
WARNING: This function may cause an error to occur if
called from the wrong place within a page. One example would
be from within PHP code that is already outputting JS
markup.
------------------------------------------------------------
*/
$html = "<script language=\"javascript\">
<!--
alert ('$msg');
// -->
</script>";
echo $html."\n";
}
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/