Hello,

does anybody have experience with integrating Dojo in Cake? I know
there's a Dojo-Cake Helper, but i haven't had success with it.

I am trying to integrate Dojo without this helper. This is the code-
block in my home.ctp:

-----------------------------------------------------------------------------------------------------------------------------------------------------------------
<script>
    var djConfig = {
        parseOnLoad: true,
        isDebug: true,
        locale: 'de',
        baseUrl: "<?php echo $html->url('/js');?>",
                modulePaths: {mine:'widgets'}
   };
</script>

<!-- Dojo load per CDN -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/dojo/1.6/dojo/dojo.xd.js"></script>

echo $html->image('visualizer/tag.png', array('alt' =>
'tag_hinzufuegen', 'url' => 'javascript:createTagWidget()'));?>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------

function createTagWidget() {
        tagDialog = new mine.TagWidget();
}

My problem is that I can't get my own Widgets load. The errors i get
in my web-console are:

- Could not load 'mine.TagWidget'; last tried 'widgets/TagWidget.js' @
http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js:14
- uncaught exception: Could not load cross-domain resources:
mine.TagWidget

Do you have any idea what's the matter? I can't figure out what I'm
doing wrong.

kindly regards,
Marco

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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