CSP Searches are javascript functions.
<CSP:SEARCH NAME="mySearch" CLASSNAME="Sample.Person" WHERE="Name,SSN"
OPTIONS="popup" FEATURES="height=350,width=350">
the parameter NAME controls what the function is called.
the button that calls the search normally calls the search page
directly. however, if you create a new javascript function and from
that call the search function, when it returns. you can do anything you
like. One other thing, OBJID is normally returned from standard
CSP:Searches
example
function BeforeMySearch() {
mySearch();
// now do some more javascript processing
// like setting the session variables.
}
<INPUT TYPE="button" VALUE="Search" ONCLICK="BeforeMySearch();">
take a look at the generated code (inside the class) of one of your csp
pages
Hope that makes sense
kev