hi Denton,
I have a similar problem about generating new windows. I decided to start playing with jquery with good results for the moment (http://edit.csic.es:8080/edit_geo/edit.html), but the problem with it is that if for example I dynamically generate a new <div id="featureList"> , mapbuilder doesn't automatically fills it with the data (the hack is to hide the div and when user performs some actions, the div is showed). Someone knows how to make mapbuilder update/refresh (it's possible refeshing only the widget I need?)? it's an ajax issue? If we could do it, then we could easily create new windows with the info (called via div). P.D: from the 9th I will be on holidays... Best regards, Denton wrote: > > > joe GIS wrote: >> >> hi everybody, >> >> I want to put the results of a GetFeatureInfo query in a new window. >> >> I've tried modifying widgetbasexsl.js >> >> if (widgetNode.nodeName != 'FeatureInfo') { >> objRef.node.appendChild(tempNode.firstChild); >> } >> else >> { >> window.open('new_window.html'); >> .... >> >> and in the new_window.html I put a <div id="featureListTag"> >> >> But no luck :.( >> I've seen the GeoBliki example and wfs-t (both using wfsGetFeature as >> query tool) but I think it's not what I need. I should work with >> GetFeatureInfo tool. >> >> Thanks in advance. >> Joe >> > > > Hey Joe, > > what you're trying to achieve is not easy to implement....In my opinion, > mapbuilder loaded in your main frame have absolutely no idea about the > <div id="featureListTag"> tag, putted in the separate new_window.html > file. That's why you don't see anything in the new browser instance...At > least I suppose that you're seeing empty window..:-). Anyway, you have > several choices, howto have semantic datas in the new window... > > - I would try to propagate GetFeatureInfo request to the 'new_window.html' > via URL parameter....Then I would send the GetFeatureInfo request from > new_window.html file, via XMLHttpRequest object...But this is for advanced > JavaScript programmers and it's not easy as well... > > - If you just want to have semantic datas in the new window, why you > didn't use Dojo floating windows widgets? When I had been evaluating > Mapbuilder I was playing with Dojo windows a lot and the GetFeatureInfo > result, putted in the Dojo floating window, worked fine for me...And it > was very easy to implement. > > - Or just obtain an document reference to the newly opened window and try > to append your data directly via DOM methods.. > > > I wish you good luck. > > Tomas. > > > > -- View this message in context: http://www.nabble.com/pop-up-window-after-getfeatureinfo---tf4193631.html#a12014243 Sent from the MapBuilder Users mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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
