ccm-search.js

Permalink
The c5 js search system requires a ccm_setupAdvancedSearch('searchType') script in the header. From there it configures where to return the ajaxForm response into an appropriately named div; the results of which are based on the submit/form method action. Typically (as in "out-of-the-box") the action will be a tool url, such as:
<form method="get" id="ccm-searchType-advanced-search" 
action="<?=$uh->getToolsURL('blah', 'pkg');?>">

All of this works fine and well - EXCEPT when I try to call this exact same scenario one more layer deep. It returns the tool url directly - blowing up the page. It does not simply put the resp into the appropriately named div (such that it does when called from a packageElement that has been loaded from the original search page.

Again, I am asking: How can I stop the ajaxForm(resp) from returning as a direct url instead of embedding iteslf in a div - which is standard behavior for the ccm-search.js functionality?

Ricalsin
 
Ricalsin replied on at Permalink Best Answer Reply
Ricalsin
The answer to this question is that I was overlaying two forms when calling the second level to run back over the first in order to validate it.

I am an idiot. <--
andrew replied on at Permalink Reply
andrew
Hah. I'm glad you figured out the answer because I was scratching my head.