AW: [Mapbender-users] MB 2.5: Problems using modules
featureInfoTunnel and popup.js together
Schönhammer, Herbert
Schoenhammer.Herbert at Regensburg.de
Thu Nov 13 05:58:45 EST 2008
Hi Michael,
the combination is working. I made some mistakes in thinking and editing the ext_featureInfoTunnel.php :-(.
So, if you want to suppress empty featureInfo-windows or divs the relevant lines of ext_featureInfoTunnel.php should look like this:
If you use module popup.js:
===========================
if (empty($x->file)) {
//close window if featureInfo has no result
//echo "<body onLoad=\"javascript:window.close()\">";
echo "";
If you don't use module popup.js:
=================================
if (empty($x->file)) {
//close window if featureInfo has no result
echo "<body onLoad=\"javascript:window.close()\">";
//echo "";
greetings
Herbert Schoenhammer
>-----Ursprüngliche Nachricht-----
>Von: mapbender_users-bounces at lists.osgeo.org
>[mailto:mapbender_users-bounces at lists.osgeo.org] Im Auftrag
>von Michael Schulz
>Gesendet: Montag, 10. November 2008 12:24
>An: Mapbender User List
>Betreff: Re: [Mapbender-users] MB 2.5: Problems using modules
>featureInfoTunnel and popup.js together
>
>
>Hi Mr. Schönhammer,
>
>we are using mb 2.5 on several installations, so you're not
>alone ... :-)
>
>I haven't tried featureInfoTunnel with the popup-divs. But can have a
>look at it.
>
>They unobfuscated javascripts are not shipped with the zipped releases
>for performance issues, they can be best viewed either with the trac
>source browser or when using a mapbender version checked-out from svn.
>
>Cheers, Michael Schulz
>
>
>2008/11/7 Schönhammer, Herbert <Schoenhammer.Herbert at regensburg.de>:
>> Hi list,
>>
>> is anybody out there, who is trying to port or implement a
>gui with MB version 2.5 ?? Nearly nobody has questions for
>using some new features of MB 2.5. So i have the feeling, I'm alone ;-)
>>
>>
>> Okay, I have another problem:
>>
>> 1.) Using featureInfo1 for generating featureInfo's is functionating.
>>
>> 2.) Avoiding popups by using module popup.js is functionating too.
>>
>> 3.) Using featureInfoTunnel for suppressing empty
>featureInfo - windows is functionating.
>>
>> 4.) Error:
>> ==========
>> But if I'm combining featureInfoTunnel with popup.js, empty
>featureInfo-results are shown again.
>> They are captured and presented as div's.
>>
>> The generated divs don't close. The javascript-code ( echo
>"<body onLoad=\"javascript:window.close()\">"; ) inserted by
>ext_featureInfoTunnel.php is not (of course) closing the div.
>>
>> But how to close the empty divs again ?
>> Or better: How to not create empty divs ?
>>
>>
>> greetings (and have a nice weekend)
>> Herbert Schoenhammer
>>
>>
>> P.S: Does anybody know a tipp for for getting codes like
>popup.js formatted ?
>> (The shipped version is not worthy of a human being ;-) )
>> _______________________________________________
>> Mapbender_users mailing list
>> Mapbender_users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>
>
>
>
>--
>-----------------------------------------------------------
>Michael Schulz
>mschulz at webgis.de
>
>in medias res
>Gesellschaft für Informationstechnologie mbH
>
>In den Weihermatten 66
>79108 Freiburg
>
>Tel +49 (0)761 556959-5
>Fax +49 (0)761 556959-6
>
>http://www.webgis.de / http://www.zopecms.de
>-----------------------------------------------------------
>Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
>Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
>_______________________________________________
>Mapbender_users mailing list
>Mapbender_users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapbender_users
>
More information about the Mapbender_users
mailing list