[Geomoose-users] Geomoose-users Digest, Vol 16, Issue 6

Moore, Richard J richard.moore at mnsu.edu
Mon Jan 5 10:01:53 EST 2009


Jay,

The only thing I could suggest trying is to change the values in the div to unique values.  I have not tried this but in other things I have coded in GM, it always seems to carry the last value along with it.

In your code:

                                <service title="Search for PID" selectable="false" default="true" locked="true" div="PIDsearch">
                                                <url>/cgi-bin/mapserv.exe</url>
                                                <input type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/itemquery_PID.map"/>
                                                <input type="hidden" name="mode" value="nquery"/>
                                                <input type="hidden" name="layer" value="Parcels"/>
                                                <input type="user" name="id" title="Zoom to PID#:"/>
                                </service>

                                <service title="Search for Address" selectable="false" default="true" locked="true" div="ADDRESSsearch">
                                                <url>/cgi-bin/mapserv.exe</url>
                                                <input type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/itemquery_ADDRESS.map"/>
                                                <input type="hidden" name="mode" value="nquery"/>
                                                <input type="hidden" name="layer" value="parcel_points"/>
                                                <input type="user" name="id" title="Zoom to Address:"/>


Could you try and change some of the names or values to unique ones.  Like I said, this is just a suggestion to try.  I don't know if it will work.

Rick


Today's Topics:

   1. Re: Searching Issue (Jay Kapalczynski)


----------------------------------------------------------------------

Message: 1
Date: Fri, 2 Jan 2009 15:32:57 -0600
From: Jay Kapalczynski <jkapalczynski at ci.maple-grove.mn.us>
Subject: Re: [Geomoose-users] Searching Issue
To: 'Nelson Soto' <NSoto at plotplans.com>,
	"geomoose-developers at lists.sourceforge.net"
	<geomoose-developers at lists.sourceforge.net>,
	"geomoose-users at lists.sourceforge.net"
	<geomoose-users at lists.sourceforge.net>
Message-ID:
	<D7A5EAC385604446AB1DD24BF4F5A918083FC793D8 at MG-Mail.ci.maple-grove.mn.us>
	
Content-Type: text/plain; charset="us-ascii"

Nelson that's for your response....this is driving me crazy....

I dotn think it's the spelling of the html files...If I code each of the two I am using by themselves it works great.
But as soon as I place them together I can only get the second one to work...for some reason the first one (PID search) returns tons of records and it appears that it is using the Address html file...

This works great in Mozilla Firefox so it has to be something with IE....just cant figure it out...

Anyone else see this before?


From: Nelson Soto [mailto:NSoto at plotplans.com]
Sent: Friday, January 02, 2009 12:05 PM
To: Jay Kapalczynski; geomoose-developers at lists.sourceforge.net; geomoose-users at lists.sourceforge.net
Subject: RE: [Geomoose-developers] Searching Issue

Take a look at the way you are naming your HTML files. It is possible that you are using invalid characters that get through in FF but not IE. Not likely, but possible.

Also, yes I have used the multiple search boxes with IE with success. Unfortunately, GeoMoose hasn't reached a level of consistent usability for the projects we desire so we have had to move away from it for now, but I am anxiously waiting to see what the future has in store for it.

________________________________
From: Jay Kapalczynski [mailto:jkapalczynski at ci.maple-grove.mn.us]
Sent: Friday, January 02, 2009 11:05 AM
To: Jay Kapalczynski; geomoose-developers at lists.sourceforge.net; geomoose-users at lists.sourceforge.net
Subject: Re: [Geomoose-developers] Searching Issue

EVEN more weird....

I tested this in Firefox and it worked perfect.  I then created another user and went in and deleted all the Cookies, Temp Files etc on my computer.....( I had to do this last time when I had an image not refreshing.)  and went back into IE and it Still dosent work...went back into Firefox and it worked great...

Could this be IE hanging up on something?  Has anyone used the Multi Search successfully in IE with multiple searches...

It appears that the specific search is trying to use the incorrect html file....although in Firefox it works fine....

ANY thoughts...

THanks

From: Jay Kapalczynski
Sent: Friday, January 02, 2009 8:42 AM
To: Jay Kapalczynski; geomoose-developers at lists.sourceforge.net; geomoose-users at lists.sourceforge.net
Subject: RE: Searching Issue

The weird thing is.....if I eliminate the code for the Address Search it works fine.  I add the code for Address Search and when I do A PID Search it points to the ItemQuery_parcel_points.html ( the Address Search) instead of the itemquery_parcels.html (the PID Search).
The code is not changing rather just adding code for another search... The code is in two different folders and itemquery map files clearly show the pointing to two different folders...

Any thoughts?

From: Jay Kapalczynski
Sent: Wednesday, December 31, 2008 3:50 PM
To: geomoose-developers at lists.sourceforge.net; geomoose-users at lists.sourceforge.net
Subject: [Geomoose-developers] Searching Issue

I had this working at one point and then tried to add another search (owner).  Something got messed up so I am trying to start from the beginning.

I have two searches (PID, Building Number) the PID is NOT working while the Building Number is.  My problem is that the code seems to be the same to me...I cannot see the problem...
Maybe thinking that another pair of eyes can see the issue..

When I do a search for the Address is comes right up....when I do a search for the PID it takes for EVER to run and then returns a ton of results....it doesn't seem like it is looking at the PID number on the search.

Any thoughts

Thanks


THIS IS FROM THE MG_demo.xml

                                <service title="Search for PID" selectable="false" default="true" locked="true" div="PIDsearch">
                                                <url>/cgi-bin/mapserv.exe</url>
                                                <input type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/itemquery_PID.map"/>
                                                <input type="hidden" name="mode" value="nquery"/>
                                                <input type="hidden" name="layer" value="Parcels"/>
                                                <input type="user" name="id" title="Zoom to PID#:"/>
                                </service>

                                <service title="Search for Address" selectable="false" default="true" locked="true" div="ADDRESSsearch">
                                                <url>/cgi-bin/mapserv.exe</url>
                                                <input type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/itemquery_ADDRESS.map"/>
                                                <input type="hidden" name="mode" value="nquery"/>
                                                <input type="hidden" name="layer" value="parcel_points"/>
                                                <input type="user" name="id" title="Zoom to Address:"/>
                                </service>

                                <service title="Search" selectable="false" default="true" locked="true" type='multiform' icon="shared/images/toolbar/MapleGrove_Buttons/spam.jpg" highlight="shared/images/toolbar/MapleGrove_Buttons/spam.jpg">
                                                                                <subform title="Search for PID"/>
                                                                                <subform title="Search for Address"/>
                                </service>

THIS IS FROM MG_Demo.html

<div id="CustomForms">
                <div id="PIDsearch">
                    <br></br>
                                                <font color="black"><b>Search for PID:</b></font><br/>
                                                <input name="id"/><input type="submit" value="Search"/>
                                                <input type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/itemquery_PID.map"/>
                                                <input type="hidden" name="mode" value="nquery"/>
                                                <br><i>Enter PID number.<i/>
                                                <br></br>
                </div>
                <div id="ADDRESSsearch">
                                                <font color="black"><b>Search for Address:</b></font><br/>
                                                <input name="id"/><input type="submit" value="Search"/>
                                                <input type="hidden" name="map" value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/itemquery_ADDRESS.map"/>
                                                <input type="hidden" name="mode" value="nquery"/>
                                                <br><i>Enter ADDRESS number.<i/>
                </div>
</div>
<div id="WaitingMessage">
<b>Retrieving Information...</b>
</div>

THIS IS THE  itemquery_PID.map
  LAYER # Parcels Polygon Layer
                    NAME 'Parcels'
                    DATA 'parcels/parcels.shp'
                    STATUS DEFAULT
                    TYPE POLYGON
                    METADATA
                                qstring_validation_pattern '.'
                    END
                    TEMPLATE 'parcels/itemquery_parcels.html'
                    FILTERITEM 'PID'
                    FILTER /^%id%/
  END

THIS IS THE  itemquery_ADDRESS.map
  LAYER # Parcels Polygon Points Layer
                    NAME 'Parcel_Points'
                    DATA 'parcel_points/parcel_points.shp'
                    STATUS DEFAULT
                    TYPE POINT
                    METADATA
                                qstring_validation_pattern '.'
                    END
                    TEMPLATE 'parcel_points/itemquery_parcel_points.html'
                    FILTERITEM 'BLDG_NUM'
                    FILTER /^%id%/
  END


THIS IS THE itemquery_parcels.html
<tr>
<td>[PID]</td>
<td>[ADDRESS]</td>
<td><a href="javascript:Map.itemQueryLayer('Highlight', 'Parcels', 'PID', '[PID]', '/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map'); Map.zoomToViewString(([shpminx]-500)+','+([shpminy]-500)+','+([shpmaxx]+500)+','+([shpmaxy]+500))"><img src="shared/images/view.png" border="0" title="Click to Zoom Map to PID"></a></td>
</tr>

THIS IS THE itemquery_parcel_points.html
<tr>
<td>[PID_NO]</td>
<td>[BLDG_NUM]</td>
<td>[STREETNAME]</td>
<td><a href="javascript:Map.itemQueryLayer('Highlight', 'Parcel_Points', 'BLDG_NUM', '[BLDG_NUM]', '/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/select.map'); Map.zoomToViewString(([shpminx]-500)+','+([shpminy]-500)+','+([shpmaxx]+500)+','+([shpmaxy]+500))"><img src="shared/images/view.png" border="0" title="Click to Zoom Map to PID"></a></td>
</tr>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------


------------------------------

_______________________________________________
Geomoose-users mailing list
Geomoose-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geomoose-users


End of Geomoose-users Digest, Vol 16, Issue 6
*********************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Rick Moore.vcf
Type: text/x-vcard
Size: 4391 bytes
Desc: Rick Moore.vcf
Url : http://lists.osgeo.org/pipermail/geomoose-users/attachments/20090105/8d7fac98/RickMoore.vcf


More information about the Geomoose-users mailing list