<div dir="ltr"><span style="color:rgb(68,68,68);font-family:arial,sans-serif;line-height:16.1200008392334px">First of all thanks for answering! I try to implement </span><span style="font-family:arial,sans-serif;font-size:13px">search that uses existing </span><span style="font-family:arial,sans-serif;font-size:13px">layers! I try to do this looking at </span><span style="font-family:arial,sans-serif">helloworld project, but</span><div>
<div><font face="arial, sans-serif">my first problem is that when I try to run helloworld.qgs form default projects i cant see map and i am getting an error:</font></div><div><font face="arial, sans-serif"><br></font></div>
<div><div class="" style="clear:right;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;font-family:Consolas,'Lucida Console',monospace;font-size:12px">
<ol class="" tabindex="0" style="list-style-type:none;margin:0px;outline:none;padding-left:0px;font-size:inherit;line-height:12px"><li title="" class="" style="padding:0px 0px 0px 14px;margin-top:1px;word-wrap:break-word">
<span class="" style="white-space:pre-wrap"><span style>Resource interpreted as Image but transferred with MIME type text/xml: "<a href="http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/home/web/qgis-web-client/projects/naturalearth_110million.qgs&LAYERS=Land&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A3857&BBOX=-11730123.812548,-7861923.8125477,12082423.812548,15950623.812548&WIDTH=300&HEIGHT=300" class="" title="http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/home/web/qgis-web-client/projects/naturalearth_110million.qgs&LAYERS=Land&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A3857&BBOX=-11730123.812548,-7861923.8125477,12082423.812548,15950623.812548&WIDTH=300&HEIGHT=300" style="color:rgb(84,84,84)">http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/home/web/qgis-web-client…2548,-7861923.8125477,12082423.812548,15950623.812548&WIDTH=300&HEIGHT=300</a>".</span> <a href="http://localhost:91/qgisfolder/qgis-web-client-master/site/libs/openlayers/OpenLayers.js" class="" title="http://localhost:91/qgisfolder/qgis-web-client-master/site/libs/openlayers/OpenLayers.js:494" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">OpenLayers.js:494</a></span></li>
</ol></div><div class="" style="clear:right;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;font-family:Consolas,'Lucida Console',monospace;font-size:12px">
<ol class="" tabindex="0" style="list-style-type:none;margin:0px;padding-left:0px;font-size:inherit;line-height:12px"><li title="" class="" style="padding:0px 0px 0px 14px;margin-top:1px;word-wrap:break-word"><span class="" style="white-space:pre-wrap;color:red!important"><span style>GET <a href="http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/qgisfolder/QGIS-Web-Client-master/projects/helloworld.qgs&LAYERS=&OPACITIES=&FORMAT=image%2Fpng&TRANSPARENT=TRUE&DPI=96&VERSION=1.3.0&EXCEPTIONS=INIMAGE&SERVICE=WMS&REQUEST=GetMap&STYLES=&CRS=EPSG%3A3857&BBOX=-50516615.263158,-13033000,50868915.263158,21121700&WIDTH=1128&HEIGHT=380" class="" title="http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/qgisfolder/QGIS-Web-Client-master/projects/helloworld.qgs&LAYERS=&OPACITIES=&FORMAT=image%2Fpng&TRANSPARENT=TRUE&DPI=96&VERSION=1.3.0&EXCEPTIONS=INIMAGE&SERVICE=WMS&REQUEST=GetMap&STYLES=&CRS=EPSG%3A3857&BBOX=-50516615.263158,-13033000,50868915.263158,21121700&WIDTH=1128&HEIGHT=380" style="color:rgb(84,84,84)">http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/qgisfolder/QGIS-Web-Clie…=-50516615.263158,-13033000,50868915.263158,21121700&WIDTH=1128&HEIGHT=380</a></span></span></li>
<li title="" class="" style="padding:0px 0px 0px 14px;margin-top:1px;word-wrap:break-word"><span class="" style="white-space:pre-wrap;color:red!important"><br></span></li></ol></div></div><div style="text-align:left"><font color="#545454" face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:12px;white-space:pre-wrap">and this is my URL request</span> </font></div>
<div style="text-align:left"><font color="#545454" face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:12px;white-space:pre-wrap"><br></span></font></div><div><font face="arial, sans-serif"><i><a href="http://localhost:91/qgisfolder/qgis-web-client-master/site/qgiswebclient.html?map=/qgisfolder/QGIS-Web-Client-master/projects/helloworld.qgs">http://localhost:91/qgisfolder/qgis-web-client-master/site/qgiswebclient.html?map=/qgisfolder/QGIS-Web-Client-master/projects/helloworld.qgs</a></i><br>
</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">I have my project named GisParcel.qgis-When I run it form location C:\myproject\</font><span style="font-family:arial,sans-serif">GisParcel.qgs its work fine. When it work fine URL is:</span></div>
<div><font face="arial, sans-serif"><a href="http://localhost:91/qgisfolder/qgis-web-client-master/site/qgiswebclient.html?map=">http://localhost:91/qgisfolder/qgis-web-client-master/site/qgiswebclient.html?map=</a></font><font face="arial, sans-serif">C:\myproject\</font><span style="font-family:arial,sans-serif">GisParcel.qgs, but when I put it in project folder where is </span><span style="font-family:arial,sans-serif">helloworld</span><font face="arial, sans-serif">.qgs located (C:\OSGeo4W\apache\htdocs\qgisfolder\QGIS-Web-Client-master\projects) it's not work and url for this is: </font><br>
</div><div><i><font face="arial, sans-serif"><a href="http://localhost:91/qgisfolder/qgis-web-client-master/site/qgiswebclient.html?map=">http://localhost:91/qgisfolder/qgis-web-client-master/site/qgiswebclient.html?map=</a></font><font color="#545454" face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:12px;white-space:pre-wrap">/qgisfolder/QGIS-Web-Client-master/projects/</span></font><span style="font-family:arial,sans-serif">GisParcel</span><font color="#545454" face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:12px;white-space:pre-wrap">.qgs</span></font><font face="arial, sans-serif"><br>
</font></i></div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">And error is:</span></div><div><div><span style="color:rgb(0,0,255);font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:12px;white-space:pre-wrap">XHR finished loading: "</span><font color="#545454" face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:12px;white-space:pre-wrap"><u><a href="http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/qgisfolder/QGIS-Web-Client-master/projects/">http://localhost:91/cgi-bin/qgis_mapserv.fcgi?map=/qgisfolder/QGIS-Web-Client-master/projects/</a></u></span></font><span style="font-family:arial,sans-serif">GisParcel</span><font color="#545454" face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:12px;white-space:pre-wrap"><u>.qgs&&_dc=1390210106830&SERVICE=WMS&VERSION=1.3&REQUEST=GetProjectSettings</u></span></font><span style="color:rgb(0,0,255);font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:12px;white-space:pre-wrap">".</span><span style="color:rgb(0,0,255);font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:12px;white-space:pre-wrap"> </span><font face="arial, sans-serif"><br>
</font></div><div><span style="color:rgb(255,0,0);font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:12px;white-space:pre-wrap">Uncaught TypeError: Cannot read property 'request' of undefined</span><span style="color:rgb(255,0,0);font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:12px;white-space:pre-wrap"> </span><span style="color:rgb(84,84,84);font-family:Consolas,'Lucida Console',monospace;font-size:12px;line-height:12px;text-align:right;text-decoration:underline;white-space:pre-wrap">QGISExtensions.js:194</span></div>
<div><br></div></div><div>Why my project wont work where i put relative path in url - <i><font face="arial, sans-serif">map=</font><font color="#545454" face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:12px;white-space:pre-wrap">/qgisfolder/QGIS-Web-Client-master/projects/</span></font><span style="font-family:arial,sans-serif">GisParcel</span><font color="#545454" face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:12px;white-space:pre-wrap">.qgs</span></font></i></div>
<div><font color="#545454" face="Consolas, Lucida Console, monospace"><span style="font-size:12px;line-height:12px;white-space:pre-wrap">and work with path </span></font><font face="arial, sans-serif">map=</font><font face="arial, sans-serif">C:\myproject\</font><span style="font-family:arial,sans-serif">GisParcel.qgs?</span></div>
<div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif">Why I am getting error when try to open </span><span style="font-family:arial,sans-serif">helloworld.qgs project?</span></div>
<div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif"><br></span></div><div><span style="font-family:arial,sans-serif"><br>
</span></div><div><font face="arial, sans-serif"><br></font></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 19, 2014 at 1:24 PM, Andreas Neumann <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Marco,<br>
<br>
You will have to provide more details in order that we can help you.<br>
<br>
Which search method are you trying to implement? There are at least<br>
three different methods: the QGIS server based search that uses existing<br>
layers within the project, the PostgreSQL/WSGI method, the<br>
PostgreSQL/PHP method.<br>
<br>
What did you do and what does not work?<br>
<br>
Andreas<br>
<br>
Am 19.01.2014 12:42, schrieb Marko Markovic:<br>
<div><div class="h5">> Hi. Did anybody succeed in enabling search for QGIS web client on Windows<br>
> OS?<br>
> I follow all steps from Readme on <a href="https://github.com/qgis/qgis-web-client" target="_blank">https://github.com/qgis/qgis-web-client</a>!<br>
> But my search wont work! Is there a way to do the change of the code so<br>
> that i can add my search panel?<br>
><br>
>  Thanks!<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
><br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br></div>