core helpers are in the cake's core folder(look in core directory
lib/views/helpers). you need to insert the code block in the code block
function of javascript helper.

<?php $javascript->codeBlock("new HelpBalloon({
                       title: 'Mouseover Balloon',
                       content: 'This balloon was shown using the mouseover
event.',
                       useEvent: ['mouseover']
               });") ?>

I hope you understood my point.


On 1/29/08, monstercake <[EMAIL PROTECTED]> wrote:
>
>
> hi all,
> im trying to add the help balloons inside a view file
> here they are
> http://www.beauscott.com/2006/08/19/ajax-enabled-help-balloons
>
> i added the files inside js/helpbuttons
>
> in a layout file i added this within the <head> tags
>
> print $javascript->link('helpbuttons/lib/prototype/prototype.js');
> print $javascript->link('helpbuttons/lib/prototype/
> prototype.improvements.js');
> print $javascript->link('helpbuttons/lib/scriptaculous/
> scriptaculous.js');
> print $javascript->link('helpbuttons/HelpBalloon.js');
>
> now, i try to invoke the script inside the view file with the
> following code:
>
>        <script type="text/javascript">
> new HelpBalloon({
>                        title: 'Mouseover Balloon',
>                        content: 'This balloon was shown using the
> mouseover event.',
>                        useEvent: ['mouseover']
>                });
>        </script>
>
> but the result is that the icon and the balloon won´t be loaded
>
> i also tried this
>
> <?php $javascript->codeBlock(); ?>
> new HelpBalloon({
>                        title: 'Mouseover Balloon',
>                        content: 'This balloon was shown using the
> mouseover event.',
>                        useEvent: ['mouseover']
>                });
> <?php $javascript->blockEnd(); ?>
>
> but i get
>
> Warning: Missing argument 1 for codeblock() in c:\...\cake\libs\view
> \helpers\javascript.php on line 49
>
> but actually there is no javascript.php inside helpers folder
> how can i fix this?
> thanks
>
>
> >
>


-- 
Thanks & Regards,
Novice (http://ishuonweb.wordpress.com/).

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to