locked
Donn Felkers Store Locator Oddity RRS feed

  • Question

  • User-1392784116 posted

    I have been using this code for a while now and all is well except that my wife noticed some strange behavoir. Its this:


    When the Store locator page is loaded it gets a centered map lon/lat from a profile value.  

    It runs the search getLocations() and the map and grid are populated with locations nearby (as expected)



    This problem is this.  

    If I insert a new location to search from (say London), The numbering for the located items is not reset to 0 and seems to count from the total returned.


     

     If I click the Search button again it does reset the count.


    Any ideas?


    Thanks  

    Wednesday, July 28, 2010 1:56 PM

Answers

  • User-1392784116 posted

     Forget it.

     

    Figured it out myself. the Routine was running twice and the _itemcount incrementing incorrectly.

     

    Thanks

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 16, 2010 10:33 AM

All replies

  • User-1392784116 posted

    I guess no one has this problem...

     

     

    Anyone

     

     

    Anyone

     

     

    Bueller! 

    Thursday, September 16, 2010 8:46 AM
  • User-1392784116 posted

     Forget it.

     

    Figured it out myself. the Routine was running twice and the _itemcount incrementing incorrectly.

     

    Thanks

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 16, 2010 10:33 AM