Hi all, I'm using pmapper 2.1.0 [August 16, 2006]. I have a postgis layer of type LINESTRING. When I do a query with "Search for:" it doesn't work (with select function it works) . I get a pop up window with the results but the map isn't updated. I get the error:
Error: syntax error Archivo de origen: http://localhost/pmapper/javascript/xmlhttp.js Linea: 87 response = <br /> -------------------- that is the line "eval('response = ' + req.responseText + ')'); What is the problem? Thanks. ------------------------------ In map file: LAYER NAME "vias" TYPE LINE STATUS OFF CONNECTION "user=user password=password dbname=dbname host=localhost port=5432" CONNECTIONTYPE postgis DATA "the_geom from vias" LABELITEM "convert(nombre, 'UNICODE', 'LATIN1')" TOLERANCEUNITS pixels TOLERANCE 7 METADATA "DESCRIPTION" "Tramos viarios" "RESULT_FIELDS" "gid, nombre" "RESULT_HEADERS" "VER, NOMBRE" "RESULT_HYPERLINK" "gid||Ver Tramo Vía" END LABELMAXSCALE 1500000 CLASS NAME "Tramos viarios" TEMPLATE "void" STYLE COLOR 0 0 0 SYMBOL "punkt" SIZE 5 END STYLE COLOR 255 255 0 SYMBOL "punkt" SIZE 3 END LABEL POSITION Auto COLOR 128 64 0 BUFFER 2 ANTIALIAS true TYPE TRUETYPE FONT arialbd SIZE 10 ANTIALIAS TRUE PARTIALS FALSE MINDISTANCE 300 END END END --------------- In js_config.php: searchList['vias'] = new Array('<?php echo htmlentities(_p("Tramos viarios"))?>', '#NOMBRE', '<?php echo htmlentities(_p("Tramo vía "))?>', ''); _________________________________________________________________ Moda para esta temporada. Ponte al día de todas las tendencias. http://www.msn.es/Mujer/moda/default.asp ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users