Hi guys, I need help on how to exclude template on a page that I have.
Goal: To exclude template not apply header and footer on a single page. My search will return a list of all the title on the right pane and when user click on each of the question Ajax will show question details as well as post on the left pane (content_main_. I am be able to call executeSearch and display searchSuccess.php in the template on the left pane but the whole template with header and footer also goes into that left pane as well. Is there anyway I could escape template on this particular page? Here is a sniplet of my code: Loop to get the question and question id <?php foreach($questions as $question): ?> <a href="#" onclick='doSearch("<?php echo $question->getId(); ?>");' ><?php echo $question->getQuestionname();?> </a><br/> <?php endforeach ?> Here is the javascript to handle the doSearch http = getHTTPObject(); function getHTTPObject(){ var xmlhttp; //handle try catch and make sure xmlhttp object could be invoke in different browser platform xmlhttp = new XMLHttpRequest(); } return xmlhttp; } function doSearch(id){ var url = "/question/search?id=" + id; http.open("POST", url, true); http.onreadystatechange = handleHttpResponse; http.send(null); } function handleHttpResponse(){ if(http.readyState == 4){ document.getElementById('content_main').innerHTML = http.responseText; } } Thanks in advance [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---