As he said.
I don't know how you would do a JavaScript button, but I have used the standard forms technique to get information for processing. On my blog page, there's a search form. The code for it is this:
Code: Select all
<div class="form">
<form id="search" action="search" method="POST" />
<p>
<input type="text" class="input" name="inputstring" size="8" value="" />
<input type="submit" name="search" value="Search">
</p>
</form>
</div>
Somewhere in the
route I've written for this page is this:
Code: Select all
(set 'search-request ($POST "inputstring")
and somewhere in the 'search'
view I've written there's this:
Code: Select all
(find-text 'blog-posts Route.Blog:search-request 1)
which does the searching.
I'm not saying this is how you should do it, just how I do it... :)