I'm trying to create (my first) plugin, although this is a question about 
LOAD.

I'm using the example code from Google Charts, which has two SCRIPT tags, 
one to do this:
<script src="https://www.google.com/jsapi"; type="text/javascript"></script>

and one to draw the chart. It also defines a <DIV> as the destination of 
the chart.


In fact, my plugin_google_chart.load is just an exact copy of 
https://google-developers.appspot.com/chart/interactive/docs/quick_start.
A script and a <DIV id=...></div> at the end.
Google's javascript doesn't seem to have any dependencies, so it seems to 
be a self-contained entity.

It works included in a view like this:
{{extend 'layout.html'}}
{{=LOAD('plugin_google_chart','plugin_google_chart.load',ajax=False)}}

but with ajax=True I get nothing.


When I force a break in the debugger (Chrome), the following line doesn't 
return when ajax = True

  google.load('visualization', '1.0', {'packages':['corechart']});

When ajax = False, execution continues (and success results)



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to