Hi,

I think you have the choice between:

- change x_info.php to send coordinates in JSON, then use them in 
PM.Query.writeQResult, then send them to returnNoResultHtml (because in 
your code "xy" is always undefined)

- change x_info.php and keep coordinates in $_SESSION, in the 
returnNoResultHtml add the session ident to the form, in 
plugins/pointinfo/inserisce.php call "session_start()" and read the 
coordinates stored in $_SESSION.

Le 30/11/2011 18:41, Alessandro Pastore a écrit :
> 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
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users

------------------------------------------------------------------------------
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
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to