SEARCH by COUNTY?

5 posts by 2 authors in: Forums > CMS Builder
Last Post: August 2, 2008   (RSS)

By donnyj555 - August 1, 2008



Can anyone explain this to me so I can pass it along to my designer?

I want to allow a search
> by "COUNTY" which would be selected when a person clicks a specific
> county on our NJ flash map, I have added a drop down list of all NJ Counties in the Create a listing form so the info is there How do I make that search field?

Als does anyone know how you would associate the area(county) on a map to select the county in the form?



>

Re: [donnyj555] SEARCH by COUNTY?

By Kenny - August 1, 2008 - edited: August 1, 2008

For a drop down menu search

Place this in your head code:

<script type="text/javascript">
<!--
function MM_jumpMenuGo(objId,targ,restore){ //v9.0
var selObj = null; with (document) {
if (getElementById) selObj = getElementById(objId);
if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0; }
}
//-->
</script>



Put this into the body where you want the drop-down list to show up:

<form name="form" id="form">
<select name="jumpMenu" id="jumpMenu">
<option value="http://www.yourwebsite.com/newjersey/index.php?county=atlantic">Atlantic County</option>
<option value="http://www.yourwebsite.com/newjersey/index.php?county=bergen">Bergen County</option>
<option value="http://www.yourwebsite.com/newjersey/index.php?county=burlington">Burlington County</option>
<option value="http://www.yourwebsite.com/newjersey/index.php?county=camden">Camden County</option>
<option value="http://www.yourwebsite.com/newjersey/index.php?county=cape%20may">Cape May County</option>
<option value="http://www.yourwebsite.com/newjersey/index.php?county=cumberland">Cumberland County</option>
<option value="http://www.yourwebsite.com/newjersey/index.php?county=essex">Essex County</option>
<option value="http://www.yourwebsite.com/newjersey/index.php?county=gloucester">Gloucester County</option>
<option value="http://www.yourwebsite.com/newjersey/index.php?county=hudson">Hudson County</option>
<option value="http://www.yourwebsite.com/newjersey/index.php?county=hunterdon">Hunterdon County</option>
</select>
<input type="button" name="go_button" id= "go_button" value="Go" onclick="MM_jumpMenuGo('jumpMenu','parent',0)" />
</form>


Change the links to your links and add all of the counties and you're done.

Re: [sagentic] SEARCH by COUNTY?

By donnyj555 - August 1, 2008

[:)] Thanks sooooo Much, I am very grateful for the time and effort, I tell you what since you seem to have such a keen understnding of interactivetools maybe I could hire you to help with this?

Re: [donnyj555] SEARCH by COUNTY?

By Kenny - August 2, 2008

Sure - we'd love to help - http://www.sagentic.com