View Full Version : Get array of css & js links from external file

01-11-2011, 10:19 PM
I have an ajax script which gets an external file(html/php etc...) and loads it into an assigned DIV container, this works great, but what I am trying to do is get an array of any .js and/or .css path/filenames from within the external file.

I have a function that will do the rest I just need a way of getting the path/filenames associated with .js,.css from a <script> or <link> tag and be put into an array then passed to a function call

e.g of desired result: loadext('pathto/style.css', pathto/script.js');


01-13-2011, 02:49 AM
*** solved***