ajax and regex, correct response...wrong result
Ok, this is going to be difficult to explain.
I have a page that uses many different ajax expressions to render the
content upon the user's request.
I'm using the liferay portal to render my content and unfortunately
any of my request must have the html from the portal in the response
along with what I need. (i.e. a lot of extra, unneeded text).
I cannot use jQuery(response).find, I believe because of some embedded
scripts that jQuery can't parse, so I decided to use a global regex:
(my generated content is surrounded with these custom tags)
<code>parser = /<fileList id="fileList">([\s\S]*)<\/fileList>/ig;</
code>