How do I load the scripts and css that are normally included in the header of a document when loading the document via ajax?
I want my customer to be able to generate css-styled pages with minimal javascript that can be loaded through ajax from a menu, but I can't figure it out.
All I need is some instruction on how to use Regexp to extract the "src" and "href" attributes from the <script> and <style> tags in the header of a dynamically loaded document. Once I have them in an array, I have the rest of the problem solved.
Any help?
Is there a better way to do this?
Thanks in advance for your support,
jase