passing data from php simple dom parser to jquery -
i have simple script :
<?php include_once("simple_html_dom.php"); $content = file_get_html('http://en.wikipedia.org/wiki/myst'); ?>
what i'm trying find way send jquery script ....would need $.ajax in jquery? need add in script.
i start jquery code document.ready....would need changed?
<?php if(isset($_get['getcontent'])){ include_once("simple_html_dom.php"); echo file_get_html('http://en.wikipedia.org/wiki/myst'); } ?>
and
<script type="text/javascript"> $.get("content.php",{"getcontent":"true"},function(data){ // data content php-script // }); </script>
Comments
Post a Comment