<script type="text/javascript">
        $(document).ready(function(){
                $('#main_content').load('cityhall.php');
                $('#loading').hide();
                $('a').click(function() {
                        $("#main_content").slideUp();
                        var replacement = $(this).attr("title");
                        var content_show = $(this).attr("id");
                        $.ajax({
                                method: "get", url: replacement, data: 
content_show,
                                beforeSend: 
function(){$("#loading").show("fast");},
                                complete: 
function(){$("#loading").hide("fast");},
                                success: function(html){ //so, if data is 
retrieved, store it in
html
                                        $("#main_content").slideDown("slow"); 
//animation
                                        $("#main_content").html(html); //show 
the html inside .content
div
                                }
                        });
                        $.ajax({
                                method: "get", url: 
'includes/side_mini.inc.php',
                                success: 
function(html){$("#side_details").html(html);}
                        });
                        $.ajax({
                                method: "get", url: 
'includes/side_mini2.inc.php',
                                success: 
function(html){$("#activity").html(html);}
                        });
                });
        });
</script>

In the first AJAX Get call it has a "data: vars" field that I was
trying to use to pass a get var to the php like ?id=1, any ideas how I
can do that to bring up a page like stats.php?id=1 ??? Thanks before
hand!

Reply via email to