wel,
I as create a new button in toolbars "selectarray" and have setting new type
"aquery" in mapserver.js
//============================================================================seur2000

        else if (varform.mode.value == 'aquery') {
            var selform = document.getElementById("selform");
            if (!selform.selgroup) return false;
            if (selform.selgroup.selectedIndex != -1) {
                // only with single click
                if ((minx + jitter) > maxx && (miny + jitter) > maxy) {
// x/y point
                    showqueryresult('aquery', imgxy);
                // with zoom box
                }
            }

        }
//==============================================================================seur2000
//==============================================================================seur2000

    } else if (button == 'selectarray') {
        resetFrames();
        varform.mode.value = 'aquery';
        varform.maction.value = 'click';
        var selurl = PM_XAJAX_LOCATION + 'x_select.php?'+SID;
        updateSelectTool(selurl, '');
        varform.tool.value = 'selectarray';
//==============================================================================seur2000

//==============================================================================seur2000

    }else if (type == 'aquery'){
        var queryurl = PM_XAJAX_LOCATION + 'x_infoarray.php?' +SID+
'&mode='+type +  '&imgxy='+xy + '&groups=' + getSelectLayer();
        varform.zoomselected.value = '0';
    }
//==============================================================================seur2000

the new x_infoarray.php is for use future for record data and next query
//==============================================================================seur2000
function resetFrames() {
    var varform = $("varform");
    if (varform.mode.value == 'nquery' || varform.mode.value == 'iquery' ||
varform.mode.value == 'aquery' || varform.maction.value == 'measure') {
        if (varform.maction.value == 'measure') jg.clear();
        if (varform.mode.value == 'iquery') hideLayer('iqueryLayer');

    } else {
        $('bottomMapFrame').innerHTML = '';
    }
}
//===============================================================================seur2000
in xmlhttp.js is the function getQueryResult(..)
i not understein what is possible enabled only hightlith on select an
disable openResultwin('info.phtml?'+SID);
thanks




2006/10/25, SeUr2000 <[EMAIL PROTECTED]>:
>
> thanks,
> so, this is possible.
> and is possible created a button for this procedure.
> I will try this, and I will return the result or another questions for
> help me.
>
> sergio
>
>
> 2006/10/25, Armin Burger <[EMAIL PROTECTED]>:
> >
> > The select function works also for mouse clicks, not just for a box
> > draw. The result is saved in the session variable 'JSON_Results', it can
> > be parsed with JSON functions of PHP (either PEAR module or a PECL
> > extension) or JS. Then you get an array containing various arrays and
> > objects. The structure is explained in the file
> > /incphp/query/json_query_doc.txt.
> >
> > Or save the query results in a file with Mapscript functions, there is
> > a short listing for that on the wiki
> > http://www.pmapper.net/wiki/doku.php?id=faq:customizations
> >
> > armin
> >
> > SeUr2000 wrote:
> > >  Hi there, I don't speak english correctly, and i have a question:
> > > i must select more elements with the click of the mouse.
> > > the elements selected must change color and recorded on array for
> > successive
> > > query.
> > > what is the way? it is possible?
> > > thanks.
> > > sergio
> > >
> > -------------------------------------------------------------------------
> > > Using Tomcat but need to do more? Need to support web services,
> > security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > >
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > _______________________________________________
> > > pmapper-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/pmapper-users
> > >
> > >
> >
>
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to