Pages: [1]
Print
Author Topic: Can't get Active Filtering to work.  (Read 386 times)
USM
Pre-Sales
Newbie
*
Posts: 4


« on: August 09, 2011, 12:59:31 PM »

Currently I have about 650 records in the database and the word "turser" in the active filtering column for all records. I've added 1 record with "wb"  in the active filtering column. When I input an address near the "wb" record it comes up with the nearest "turser" records regardless of whether the turser or wb check boxes are checked or not. What should happen, I assume, is that only the wb record will come up when just wb is checked and just turser records will come up when just turser is checked.

Also I like to be able to have which records show up from a pre selected hidden field. Is that possible?
Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #1 on: August 09, 2011, 09:48:02 PM »

Each filter checkbox on the map page need to conform to this convention"

Code:
<input name="filter" type="checkbox" id="wb" onClick="checkboxClick(this.form, 'wb')" value="wb" checked="checked"/>


Make sure all have name="filter"

To include a pre-selected checkbox, without showing it to the user, just add style="visibility:hidden" to your checkbox input tag.
Logged
USM
Pre-Sales
Newbie
*
Posts: 4


« Reply #2 on: August 10, 2011, 11:59:18 AM »

Had it set up that way but doesn't seem to work. I have "wb" checked and "turser" unchecked yet all "turser" records show up. Could you please check page code and let me know if there's another issue? The only record that should show up is called Testing. It's the only one with "wb" in the active filtering field.  Test with zip code 60060.

http://www.jayturser.com/dealer-test.php

Thanks.
Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #3 on: August 10, 2011, 02:47:55 PM »

As a diagnostic, can you edit the default golf_locator page and replace the active filters (cart, food, pro) with your active filters. Also remove the visibility style so I can see what is going on. Please send me the url to test.
Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #4 on: August 10, 2011, 02:54:34 PM »

As a diagnostic, can you edit the default golf_locator page and replace the active filters (cart, food, pro) with your active filters. Please remove the visibility style so I can see what is going on. Please send me the url to test.

To print out the active filter in the results table, also please put the tag active_filter in the
Code:
              <table id="template_table" class="radius_tbl" width="100%" border="0" cellspacing="0" cellpadding="0">

put active_filter below your name tag.
Logged
USM
Pre-Sales
Newbie
*
Posts: 4


« Reply #5 on: August 11, 2011, 12:32:51 PM »

OK, I've added all the info to the Golf locator page and it works. Apparently I have an error in the code for the actual dealer test & dealer page but I cant's figure out where it is. Here's the new golf page with the changes you requested.

http://www.jayturser.com/golf_locator.htm

Original test page with visiblility changes:
http://www.jayturser.com/dealer-test.php
Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #6 on: August 11, 2011, 01:06:11 PM »

Try enclosing your filter tags in a form:

Code:
<form name="filter_form" id="filter_form" method="post" action="">

</form>
Logged
USM
Pre-Sales
Newbie
*
Posts: 4


« Reply #7 on: August 11, 2011, 01:35:15 PM »

That seems to have done it. Thanks.
Logged
Pages: [1]
Print
Jump to: