I have the following code in home_view.php:
<script type="text/javascript">
$(document).ready(function() {
function updateContent(path, args) {
$.post(path+args, function( data ) {
$( "#content" ).html( data );
});
}
updateContent(<?php echo base_url("/show_cards/load_page")."/"; ?>, <?php echo $set; ?>);
});
</script>
PHP isn't working here:
updateContent(<?php echo base_url("/show_cards/load_page")."/"; ?>, <?php echo $set; ?>);
All PHP in the file is being processed minus the part in the javascript section. Why is this?