Quote:
Originally Posted by S!p
any ideas?
|
Your code isn't designed to be embedded within a page the way you're doing it.
The javascript is parsing the output of the current page, looking for the items the PHP is generating. Since the PHP is just being called, and not being output properly, it's not finding it, and failing.
Modify the code so the PHP is within an external file, embed the HTML you need in a block, and use the AJAX call to call that external PHP file.