jquery - Dynamically load php file (containing external php files inside) in a content div -


i have sidebar using mmenu sidebar plugin , unlike mmenu demo.

  • i want files linked in sidebar dynamically load pages in div such div id="contents" used solution provided here

how load php file div jquery?

  • which displayed output, create-account.php, in div javascript , ajax within php file no longer working.
  • i know can't use jquery/javascript since php loads first before it's executed. think ajax solution but...i can't seem figure out.
  • there's option of me using querry_string unfamiliar coding-wise, don't want have rework have scratch.
  • i thought php functions load because of title of question. did misunderstand or doing wrong?

iframes last resort.

and sort of unrelated, there's site

http://www.keenthemes.com/preview/metronic/theme/templates/admin2/layout_ajax.html

that think want it's complex me being demo.

you can try:

$(function () {     $("#divid").load("https://www.domainname.com/your_file.php", function (response) {         //your code     }); }); 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -