jquery passing variables to php file
<p>acctually i am not familier much with jquery.. i got this jquery script this is passing variables to the file which is showing data in json format.. but here i'm unable to show that data..plz see this piece of code  </p>

<pre><code>$(document).ready(function() {
    var globalRequest = 0;
    $('#search').bind('keyup', function(event) {
        if (event.keyCode == 13) {
            searchAction();
        }
    });

    $('#search-link').bind('click', function(event) {
        searchAction();
    });

    var searchAction = function() {
        var value = $('#search').val();
        var cat = $('#category').val();
        var country = $('#country').val();
        var page = $('#page').val();

        var resultContainer = $('#results');

        if (value.length &lt; 3 &amp;&amp; globalRequest == 1) {
            return;
        }

        _gaq.push(['_trackEvent', 'Search', 'Execute', 'Page Search', value]);

        globalRequest = 1;

        $.ajax({
              url: "search.php",
              dataType: 'json',
              type: 'GET',
              data: "q="+value+"&amp;category="+cat+"&amp;country="+country+"&amp;page="+page,
              success: function(data){
                globalRequest = 0;
                resultContainer.fadeOut('fast', function() {
                    resultContainer.html('');
                    console.log(data.length);

                    for (var x in data) {

                        if (!data[x].price)
                            data[x].price = 'kA';

                        if (!data[x].img)
                            data[x].img = 'assets/images/no.gif';

                        var html = '&lt;div class="res-container"&gt;';
                        html += '&lt;h2&gt;&lt;a href="'+data[x].url+'" target="_blank"&gt;'+data[x].Title+'&lt;/a&gt;&lt;/h2&gt;';
                        html += '&lt;img src="'+data[x].img+'"&gt;';
                        html += '&lt;h3&gt;Price: '+data[x].price+'&lt;/h3&gt;';
                        html += '&lt;/div&gt;';

                        resultContainer.append(html);
                    }

                    resultContainer.fadeIn('fast');
                });

              }
            });
    };
});
</code></pre>

<p>in search.php data is in simple echo.. how to get data from search.php and show here..
sorry for bad english</p>
