Page with map not showing, instead it redirects to different page
-
I’m trying to make the form auto submit after the page has loaded. The value of the search field is filled in through a cookie.
For the record I gave the form the name “store-locator”
When I’m using the code:
window.onload = function(){ document.forms['store-locator'].submit() }
The page redirects to a different page with the URL mydomain/?wpsl-search-input=Rijssen&wpsl-radius=100&wpsl-results=75
but it isn’t showing any map.I don’t know what I’m doing wrong, because technically it’s an event that simulates the button click..
Any help would be appreciated!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Page with map not showing, instead it redirects to different page’ is closed to new replies.