You have any solution for the following
$('#content').load('<?php echo site_url(); ?>register #regfgp');
When iam using the above code and loading the layer #regfgp from page register, iam not getting the JavaScript(<script></script>) embedded in the in the layer #regfgp to my master page. As you know the the load function of jquery excludes the embedded JavaScript in the loading page.
So I used the following code to call the page by AJAX
The problem is i can't call the layer #regfgp in URL. Instead of that iam getting the full page <?php echo site_url(); ?>register in the layer #content. Is there any solution to call the #reffgp layer(only) in Master page through AJAX(above coding)Code:$.ajax({ type: 'GET', url: '<?php echo site_url(); ?>register ', success: function(data) {$("#content").html(data); }, error: function (XMLHttpRequest, textStatus, errorThrown) { alert("error retrieving content"); } });






Bookmarks