azicchetti/jquerymobile-router — Issue #30: Form submission (GET method) and routing does not seem to work
Author: chrisben
Created: 2012-03-06 09:59:57+00:00
State: open

I want to be able to submit a simple form with only a query parameter (think google home page) that would open a separate page (#page-search) with the search results. I am working on a single file multipage app.
Here's the html code:

```html

[...]

[...]

[...]
```

The router code:

```javascript
'#page-search[?]q=(.*)': { handler: 'pageSearch', events: 'bs' }
```

That handler would then retrieve the query parameter (matchObj[1]) and then fetch a list of results from the server to populate that new page.

Now when I click on submit the router handler pageSearch is never called, instead I can see the url being changed to "?q=mysearchterm".

Could you please tell me if I've done something wrong there?

Cheers and thanks for your work on this project!