"http://www.google.com/jsapi" doesn't appear to be a valid URL for the library you're trying to use.
On Dec 9, 7:30 am, Juan <[EMAIL PROTECTED]> wrote: > I'm trying to use the Google Visualization API with my CakePHP app. > The two first obstacles are: > > - how to link an external JS library? > > I try this in my view: > $javascript->link('http://www.google.com/jsapi', false); > > but it's not working. I see in the CakePHP source code that it doesn't > seem possible to do > this:http://api.cakephp.org/javascript_8php-source.html#l00258 > > I solve this by just adding the <script src ...> by hand without using > the javascript helper, but I liked the helper because then I can > include this script in the layout $scripts_for_layout. > > - Why it doesn't work when the view is rendered using AJAX? > > I'm running the chart sample > at:http://code.google.com/apis/visualization/documentation/using_overvie... > in my view, it works fine, but if I render the view in a div using > AJAX then the script stops executing after google.load (...) > > any ideas would be appreciated. thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---