My goal is that when the users enter the upcoming events page, it directs them automatically to a search in their area. To do this, I have to first make sure that the “Near” box is populated with their city and zip, and then I need to simulate pressing the “Find Events” button.
I have the first part all set, using JQuery with something I found here: http://docs.shopify.com/manual/configuration/store-customization/page-specific/store-wide/get-a-visitors-location
My question is – how do I run the search when the users enter the page, without them having to press the search button?