Could you possibly show us more code? Does the script below fall within
an Active4D code, or is Active4D generating the script?
Are you using jQuery? I'm not a Javascript expert by any means, and am
only familiar with jQuery through recently studying examples, but the
naming of jQuery's $() Function might be tripping up Active4D from the
error message you describe (it thinks its found an A4D variable).
If A4D's interpreter was designed based on the rule...
"You can give any name to the (Javascript) function as long as it is
not a JavaScript reserved keyword. The function name can contain
only alphanumeric characters (alphabet and digits) and the
underscore. Also, the name cannot begin with a numeral." that might
be why it is breaking."
... I can see why it might break. Aparajita will have to confirm this
though.
-- Brad
Jason T. Slack wrote:
Hi Brad,
What happens if you wrap your script with HTML comments? This was
the trick to hide JS code from old browsers.
<script type="text/javascript>
<!--
$(document).ready(
function()
{
$('#drag1').Draggable();
........
//-->
</script>
No dice, What I expect to happen is not happening, but again, when
served through Apache, everything works.
-Jason
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/