Robert, On 8/2/07, John Roberts <[EMAIL PROTECTED]> wrote: > I then want to feed the xy coordinates into a function which I have created > in Javascript which sends a xmlhttp request to the geoserver wfs using a > DWithin filter. This function is currently being driven from a html form > button which doesn't allow the trigger event to pick up the xy coordinates.
We already had something similar in the mapViewer demo. This is a use case covered by a combination of GetFeatureInfo.js (in the demo/mapViewer folder) and the WebServiceRequest tool. Have a look at config.xml in demo/mapViewer and the xsl stylesheets in lib/tool/xsl, there might already be one for your request type. Maybe it is juat wfs_GetFeature.xsl. You have to specify your request type in the <requestName>. If it is eg. wfs:GetFeature, then wfs_GetFeature.xsl will be used. The ":" will be replaced by "_"; and ".xsl" will be aded. This should help you get started. Again, I do not think that you need to write a custom widget for your use case. Regards, Andreas. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Mapbuilder-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
