Alessandro, Unfortunatelly I can only see an "outline" of the query result but it seems like it cannot be overlayed over the map frame. Maybe I am missing something? Is there any other parameter that is important? I am using Firefox 2.0.0.4..
Thanks regards, dejan > -----Original Message----- > From: Alessandro Pasotti [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 18, 2007 9:50 AM > To: pmapper-users@lists.sourceforge.net > Cc: Gambin Dejan > Subject: Re: [pmapper-users] Layout with query results in > result zone below map > > Il mercoledì 18 luglio 2007, Gambin Dejan ha scritto: > > Thanks Alessandro. This is verya nice. How did you achieve it? > > Basically, it uses jquery and use InfoZoneStyle = 4. > > I had to modify a couple of files... > > Instructions follow (I hope I didnt' forget anything): > > > -- javascript/layout.js line 165 > > // ABP: fade in > if (this.InfoZoneStyle == 4){ > this.setParams(infoZone, 0, mapZoneH + > this.NorthHeight + this.SouthHeight - this.InfoZoneHeight + > this.MarginOuterHorizN + this.MarginInnerHoriz , infoZoneW + > this.MarginOuterVertE + this.MarginOuterVertW, this.InfoZoneHeight); > } else { > this.setParams(infoZone, infoZoneL, mapZoneH + > this.NorthHeight + this.MarginOuterHorizN + > this.MarginInnerHoriz, infoZoneW, this.InfoZoneHeight); > } > > -- javascript/layout.js line 107 > > // ABP: 4 = JQUERY > var mapZoneH = (this.InfoZoneStyle == 4 ? innerElemH : > innerElemH - InfoZoneTotH); > > > -- js_config.php > > // Info Zone, eg. for query results > Layout.InfoZoneHeight = 100; > Layout.InfoZoneStyle = 4; // 1: mapZone + east; 2: > mapZone + west; 3: > full width; 4: JQUERY; 5: hide > > > -- xmlxttp.js > > /** > * Get query results and display them by parsing the JSON > result string > */ > function getQueryResult(qurl, params) { > $.ajax({ > type: "POST", > url: qurl, > data: params, > dataType: "json", > success: function(response){ > var mode = response.mode; > var queryResult = response.queryResult; > > if (mode != 'iquery') { > if (PMap.infoWin == 'window') { > openResultwin('info.phtml?'+SID); > } else { > //if (PMap.infoWin == 'frame') > $('#infoZone').showv(); > writeQResult(queryResult, PMap.infoWin); > // ABP: show > if(Layout.InfoZoneStyle == 4){ > $('#infoZone').fadeIn("slow"); > $('#infoZone').fadeTo("fast", 0.9); > $('div.LAYERHEADER').prepend('<a > href="javascript:void(0);" onclick="$(\'#infoZone\').fadeOut();return > false;"><img src="images/close.gif" border=0 ></a> '); > } > } > } else { > // Display result in DIV and postion it correctly > showIQueryResults(queryResult); > } > } > }); > } > > -- javascript/pminit.js line 75 > > // ABP: > if(Layout.InfoZoneStyle == 4){ > $('#infoZone').hide(); > } > > > -- javascript/pmjson.js > /** > * Return HTML for no results found in query > */ > function returnNoResultHtml(infoWin) { > // ABP: close button > var h = '<table class="restable" cellspacing="0" > cellpadding="0">'; > if (infoWin == 'window'){ > h += '<td>' + localeList['noRecords'] + '</td>'; > h += '<td><a href="javascript:this.close();"><img > align="right" > src="images/close.gif" border=0 ></a></td>'; > } else if(Layout.InfoZoneStyle == 4) { > h += '<td><a href="javascript:void(0);" > onclick="$(\'#infoZone\').fadeOut();return false;"><img align="left" > src="images/close.gif" border=0 ></a>' + > localeList['noRecords'] + '</td>'; > } else { > h += '<td>' + localeList['noRecords'] + '</td>'; > } > h += '</tr></table>'; > return h; > } > > > > -- > Alessandro Pasotti > itOpen - "Open Solutions for the Net Age" > w3: www.itopen.it > Linux User# 167502 > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users