hi Luca,

  jquery, as many other javascript libraries, allows the generation and
manipulation of the HTML through it's own sintaxis; it means that if I apply
the code: 

$("[EMAIL PROTECTED]'admin_data']").click(function(){
                $("#admin_data").append("<div id='utm_legend'></div>");
                });;   

  When I click in the tag (link)   , a  NEW <div id="utm_legend"></div> will
be generated. A mapbuilder legend is pointing to this div, so it should be
filled with a legend. But it doesn't work. Because of that I think there
should be someway to make mapbuilder update or refresh when creating new
tags. If we could get it, then I think we could open a new window and get an
answer from mapbuilder (it will be updated to fill the divs (or any other
tag) of this window). 

   I hope to make me understand. 
   Pere

Luca Giandoso wrote:
> 
> I don't understand your problem, can you reformulate it?
> 
> On 8/6/07, pere roca <[EMAIL PROTECTED]> wrote:
>>
>>
>>   sorry, http://edit.csic.es:8080/edit_geo/prototype/edit.html
>>   you can access to the Demo: Spatial Completeness legends if you
>> previously
>> clicked the Iberian Peninsula  context.
>>
>>    Yes, I have tried to fill dynamically a new div in the same window.
>> But
>> no success...
>>
>>
>> Luca Giandoso wrote:
>> >
>> > The link isn't working.
>> >
>> > The new <div id="featureList"> is in the same window of mapbuilder?
>> >
>> > Luca
>> >
>> > On 8/6/07, pere roca <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >>   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
>> >>
>> >
>> >
>> -------------------------------------------------------------------------
>> > 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
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/pop-up-window-after-getfeatureinfo---tf4193631.html#a12014454
>> 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
>>
> 
> -------------------------------------------------------------------------
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/pop-up-window-after-getfeatureinfo---tf4193631.html#a12015131
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

Reply via email to