Execute php url with JS
<p>Is it possibe to simply load a php script with a url with js?</p>

<pre><code>$(function() {

            $('form').submit(function(e) {

                e.preventDefault();

                var title = $('#title:input').val();
                var urlsStr = $("#links").val();
                var urls = urlsStr.match(/\bhttps?:\/\/[^\s]+/gi);
                var formData = {
                    "title": title,
                    "urls": urls
                }
                var jsonForm = JSON.stringify(formData);                

                $.ajax({
                    type: 'GET',
                    cache: false,
                    data: { jsonForm : jsonForm },
                    url: 'publishlinks/publish'                    
                 })

                 //load php script

            });

});
</code></pre>

<p><strong>Edit:</strong></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>
