title: Execute php script with JS
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7057633/execute-php-url-with-js">Execute php url with JS</a>  </p>
  </blockquote>
  
  
  
  <p>How can I simply execute a php script, is there a JS or jQuery function for this? Same behaviour as a form submit.</p>
  
  <pre><code>function index() {
  
        $this-&gt;load-&gt;model('NewsFeed_model');
        $data['queryMovies'] = $this-&gt;NewsFeed_model-&gt;getPublications();        
        $this-&gt;load-&gt;view('news_feed_view', $data);
  
  }
  </code></pre>