Ok, I figured out that because the links that are not working are in the pages that are being pulled up into the main_content div, anyone know how I can modify the code to run scripts that would modify the same div?
On Apr 16, 6:32 pm, Rogue Lord <corrupted.rog...@gmail.com> wrote: > <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!