I am using ajax requests on some html components in one of my search views in Pawtucket2. Ajax calls another view in the same directory (views/Search), however requests are returned with a view containing header and footer. How can I integrate ajax calls in views and receive response without header and footer?
I have a drop down box in advanced search view (/views/Search/ ca_objects_advanced_search_objects_html.php). When an item in the drop down box is selected an ajax request to selection.php is made. Code in selection.php does some processing on the ajax request and returns some data that will be used to populate some additional html components in advanced search view. Ajax call is successfully made to selection.php, however response of the request contains a full view with header and footer.