What I'm trying to do is use php includein the app attribute jquery. something like that:
$('a.popup[href^=#]').click(function() {
$('body').append('<div id="content" class="popup_block"><?php include( SITE_URL . 'activity/popup.php' ) ?></div>');
My script is in the php file, on the server side, so I could do it, but I'm not sure how to do it. When it comes to html, css, etc., I can combine it and php in a php file, but when it comes to javascript, its quotes confuse me, and when and how to use parentheses. This may seem strange. Anyway, does CDATA have anything to do with this? I have never used it before, but I should at least study its use.
source
share