nate wrote:
> Because of the way Ajax (well, Prototype) works, you can't dynamically
> load external JavaScript libraries in Ajax calls.  So putting
> $javascript->link( ) calls in your Ajax layout won't do anything for
> you.  Any external libraries you use in a page must be loaded on the
> initial HTTP request.
>
> If you put your $javascript->link calls in the page that makes the Ajax
> requests, it should work.

So where do you say I should load the external libraries?
I make the calls in test.thtml with ajax->link.
Even when I put all the code block below

<script type="text/javascript">
        var djConfig = {isDebug: true};
        //djConfig.debugAtAllCosts = true;
</script>
<?= $javascript->link('dojo/dojo.js') ?>
<?= $javascript->link('prototype')?>
<?= $javascript->link('scriptaculous.js?load=effects') ?>
<script  type="text/javascript">

dojo.require("dojo.widget.Checkbox");
dojo.debug("The current version of dojo is: ",
dojo.version.toString());
</script>


in test.thtml or ajax.thtml i still have the same problem.
Where do you suggest i should put it so that it works?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to