Ma takie okno w programie
<div id="tender" style="min-height: 100px;"> <script type="text/javascript"> $(document).ready(function(){ $.ajax({ type: "POST", url: "_{DB_COMPONENT}/modules/tender/tenderModule.php", data: 'func={GET_FUNC}&id={GET_ID}', success: function(results) { $('#tender').html(results); } }); }); </script> </div>
W pliku php mam link który odwołuje się do funcji
<?php print '<a href="index.php?func=tenderEdit&id='.$DB->tender['customer_tender_id'].'">bla bla</a>'; /***********************************************************/ /* AKCEPTACJA /***********************************************************/ function funcAccept() { $mysql->exec("UPDATE `".$_SESSION['DB_PREFIX']."customer_tender` SET `customer_tender_accept`='1' WHERE `customer_tender_id`='".addslashes($_POST['id'])."';"); // Powrót do strony Header("Location: ".$_SESSION['DB_DOMAIN_ALL']."/administration/index.php"); // to nie działa dobrze } /***********************************************************/ /* PRZEKIEROWANIE NA FUNKCJE /***********************************************************/ case "tenderAccept": funcAccept(); break; } ?>
I teraz pytanie jak odświerzyć div id="tender" po wykonaniu funkcji funcAccept()
Pozdrawiam