I have a div on the page where the contents change depending on the value selected in a drop down. Because there is a large amount of formatted content in this div I want to have a php script supply html which is stored in a file on the system.
I can't seam to figure out how to have php return the contents of that file, which essentially contains many div tags and content, as text to the ajax script. Which would then change the content in the div on the page.
The back end php is using CakePHP and using YUI3 as the front end framework.
A solution doesn't need to include any Cake if need be.
Thanks!