I know that each of the objects in the array have data because I tried to run each one of the lines above separately without calling the other two and it worked fine.
I know that each of the objects in the array have data because I tried to run each one of the lines above separately without calling the other two and it worked fine.
Look for JavaScript errors. If there is one, is it in the loop? Or is it in the function that you are calling?
Thank you! There was a Javascript error. I am new at this, I found the Javascript console and saw the error. The code I posted was a very very simplified version of what I'm doing. It was actually supposed to populate smarty code and because of another problem, it wasn't populating so the html generated was missing things and creating syntax errors and not executing anything after the first call of this writeMedia function.
Not sure if that made total sense but it works now. Thanks again for the simple but helpful pointer.
Bookmarks