title: Call php file with js script with ajax
body: <p>I have working code but my code doesn't include with ajax js code from php file. Problem is that javascript from second script is not working. Ajax call can't enable to execute js script from second file Here is ajax code. My question is this good call for php file with working js functions because those working js functions does't work if I call them with this ajax code?</p>
  
  <pre><code>&lt;script&gt;$.ajax({
                                  url: "getSubcategorieFormUpdate.php?id=" + activeSubcategorie + "&amp;sifra_novogradnja=&lt;?php echo $sifra_novogradnja ?&gt;",
                                  method: "GET",
                                  dataType: 'text',
                                  success: function (result) {                                     document.getElementById("advertForm").innerHTML = result;
                                  }
                              });&lt;/script&gt;
  </code></pre>