thanks manuele, i've tried that but the result is same (no error occured
but the result is not expected, google maps show almost take the sqlform
grid view entirely).
e.g.
def check_point_admin(row):
scr0 = SCRIPT("""
function initMap() {
var mapDiv = document.getElementById(%s);
Il 05/06/16 00:06, 黄祥 ha scritto:
> what i want to achieve is showing a map in each row of
> SQLFORM.smartgrid links (looks like in the attached file)
> thanks massimo, tried your suggestion, but got the same result. any
> idea or suggestion to achieve it in web2py?
>
Hi Stifan,
what about
I cannot see/download screen shots, is it just my problem?
Dne neděle 5. června 2016 0:06:15 UTC+2 黄祥 napsal(a):
>
> what i want to achieve is showing a map in each row of SQLFORM.smartgrid
> links (looks like in the attached file)
> thanks massimo, tried your suggestion, but got the same
Please explain us better what you want to do. Form you code looks like you
want one map (not one point) for each row in the grid. This is going to be
awfully small. Anyway, Try change this:
return DIV(_id = row.id), scr0, scr1
into
return DIV(DIV(_id = row.id), scr0, scr1)
On Tuesday, 31
testing to put it on the SQLFORM.grid links no error occured but the result
is not expected
e.g.
*controllers*
def check_point_admin(row):
scr0 = SCRIPT("""
function initMap() {
var mapDiv = document.getElementById(%s);
var latlon = new google.maps.LatLng( %s, %s );
var mapOptions = {
5 matches
Mail list logo