I all
We are using a modified version of the Niccolò Rigacci digitizepoint plugin.
As result for the query of the identification tool we could have or not
some rows.
If one or more rows where found it's ok.
If no rows we would insert a submit button for our insert point function.
In pm.query.js we found 'returnNoResultHtml: function(infoWin,xy) {'
in wich we would like to put our form
The form is ok but the problem is that we are not able to obtain the
coordinates.
the code (with a lot of commented rows for various tests) is :
---
returnNoResultHtml: function(infoWin,xy) {
//var pos = xy.split('+');
//var mx = pos[2];
//var my = pos[3];
var gnix = xy;
//var ciao = xy;
// var gnix =316;
var h = '<table class="restable" cellspacing="0" cellpadding="0">';
h += '<td>' + _p('No records found') + ' <form
action="plugins/pointinfo/inserisce.php?id=' + gnix + '"
method="post"><input type="submit" value="INSERT NEW ROW"></form></td>';
h += '</tr></table>';
return h;
},
---
You can see the result of no rows found at this url, the submit button
is in the south side named INSERISCI
http://www.simsity.it/img/poippb_inserisce.jpg
the demo in progress is at:
http://www.simsity.it/pmapper/PPBwebgis.phtml
Thanks in advance
Alessandro Pastore
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users