I have a layout template that includes the prototype and scriptaculous
scripts that are placed in webroot/js directory.

The template looks like:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>
    <head>
        <?php echo $html->charset(); ?>
        <title>
            <?php __('TITLE - '); ?>
            <?php  echo $title_for_layout ?>

        </title>
        <?php
        echo $html->meta('icon');
        echo $html->css('gmg_frontend');
        echo $javascript->link('swfobject');
        //include prototype scriptaculous and lightbox scripts
        echo $javascript->link('prototype');
        echo $javascript->link('scriptaculous');
        echo $javascript->link('lightbox');
        //personal scripts
        echo $html->css('lightbox');
        echo $javascript->link('gmg');
        echo $javascript->link('menubar');

       ?>
    </head>
     ... (More stuff)...

The page seems to load correctly, altough the Firefox's error console
issues the following errors:

Error: syntax error
Source File: http://MY_DOMAIN/gmg/js/sound.js
Línea: 1
Código fuente:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

The code is a missing_controller page generate by cake in the
scriptaculous loading, because the "JS" controller is missing. (This
is the globlal object in scriptaculous that loads some scripts like
sound, dragdrop and others)

What is the solution for this trouble?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to