Proceed to GeoCommunity Home Page


SpatialNewsGIS Data DepotGeoImaging ChannelGIS and MappingSoftwareGIS JobsGeoBids-RFPsGeoCommunity MarketplaceGIS Event Listings
HomeLoginAccountsAboutContactAdvertiseSearchFAQsForumsCartFree Newsletter

Sponsored by:


TOPICS
Today's News

Submit News

Feature Articles

Product Reviews

Education

News Affiliates

Discussions

Newsletters

Email Lists

Polls

Editor's Corner


SpatialNews Daily Newswire!
Subscribe now!

Latest Industry Headlines
SiteVision GIS Partnership With City of Roanoke VA Goes Live
Garmin® Introduces Delta™ Upland Remote Trainer with Beeper
Caliper Offers Updated Chile Data for Use with Maptitude 2013
Southampton’s Go! Rhinos Trail Mapped by Ordnance Survey
New Approach to Measuring Coral Growth Offers Valuable Tool for Reef Managers
Topo ly - Tailor-Fit for Companies' Online Mapping Needs

Latest GeoBids-RFPs
Nautical Charts*Poland
Software & Telemetry GPS
Spatial Data Management-DC
Geospatial and Mapping-DC
Next-Gen 911-MO

Recent Job Opportunities
Planner/GIS Specialist
Team Leader- Grape Supply Systems
Geospatial Developer

Recent Discussions
Raster images
cartographic symbology
Telephone Exchange areas in Europe
Problem showcasing Vector map on Windows CE device
Base map

GeoCommunity Mailing List
 
Mailing List Archives

Subject: RE: [gislist] Custom Query in ArcIMS
Date:  01/26/2005 03:30:01 PM
From:  John Fletcher



> This is an ESRI question. I am running IMS 4.0.1 on windows=20
> 2000 server, IIS, and TomCat. I am trying to create a HTML=20
> form where the user types a house number in one input field=20
> and any portion of the street name in the other field and=20
> have a list return with all the houses that satisfy the=20
> query. I want to do the same thing as the query button does,=20
> except I don't want all the options query form has because=20
> that will only confuse the users who are not technically=20
> minded. I am a novice with HTML and JavaScript so any=20
> direction would be helpful.

Lawrence,

I've tacked on some html code to the end of this message. You'll no
doubt get a number of messages when you run it, but it might be a good
place to start. It's just a modified query form, untested, but you
could get some ideas from it at any rate.

Note it assumes the use of the ArcIMS HTML viewer.

John

****** Address Search Form ******

<html>
<head>
<meta name=3D"generator" content=3D
"HTML Tidy for Windows (vers 1st September 2004), see www.w3.org">
<meta http-equiv=3D"Pragma" content=3D"no-cache">
<meta http-equiv=3D"Content-Type" content=3D
"text/html: charset=3Dutf-8">
<script language=3D"javascript" type=3D"text/javascript">
var t:
var t2 =3D "":
if (opener) {
t =3D opener.parent.MapFrame:
t2 =3D "opener.parent.MapFrame":
} else {
t =3D parent.MapFrame:
t2 =3D "parent.MapFrame":
}
function sendQuery() {
/*
* We're looking to send ArcIMS a string like:
* STREET_NAME LIKE 'BROADWA%' AND STREET_NUM=3D1000
*/
var queryForm =3D document.QueryStuff:
var theString =3D "":
theString =3D "STREET_NAME LIKE '":
theString +=3D queryForm.streetname.value:
theString +=3D "%' AND STREET_NUM=3D":
theString +=3D queryForm.streetnumber.value:
t.sendQueryString(theString):
t=3Dnull:
}
</script>
<title></title>
</head>
<body link=3D"blue" vlink=3D"blue" alink=3D"blue" leftmargin=3D"0"
topmargin=3D"0" bgcolor=3D"#FFFFFF" onload=3D
"window.focus(): ' + t2 + '.queryOpen=3Dtrue:" onunload=3D
"' + t2 + '.queryOpen=3Dfalse:">
<center>
<form name=3D"QueryStuff" onsubmit=3D"sendQuery():return false:"
id=3D"QueryStuff">
<table border=3D"0" cellspacing=3D"0" cellpadding=3D"2" width=3D
"100%">
<tr>
<td align=3D"center" bgcolor=3D"#FFFFFF">
<font face=3D"Arial" size=3D"-2">Street Number</font>
</td>
<td align=3D"center" bgcolor=3D"#FFFFFF">
<font face=3D"Arial" size=3D"-2">Street Name</font>
</td>
</tr>
<tr>
<td align=3D"center" bgcolor=3D"#FFFFFF">
<input name=3D"streetnumber">
</td>
<td align=3D"center" bgcolor=3D"#FFFFFF">
<input name=3D"streetname">
</td>
</tr>
<tr>
<td colspan=3D"2" align=3D"center" bgcolor=3D"black">
<input type=3D"submit" value=3D"Submit Query" name=3D
"submit">
</td>
</tr>
</table>
</form>
</center>
</body>
</html>
_______________________________________________
gislist mailing list
gislist@lists.geocomm.com
http://lists.geocomm.com/mailman/listinfo/gislist

_________________________________
This list is brought to you by
The GeoCommunity
http://www.geocomm.com/

Get Access to the latest GIS & Geospatial Industry RFPs and bids
http://www.geobids.com

Sponsored by:

For information
regarding
advertising rates
Click Here!

Copyright© 1995-2012 MindSites Group / Privacy Policy

GeoCommunity™, Wireless Developer Network™, GIS Data Depot®, and Spatial News™
including all logos and other service marks
are registered trademarks and trade communities of
MindSites Group