Currently, this data is refreshed using an AJAX call from Prototype. The issue that comes up is that sometimes, different nodes will have empty data. I need to check each node on every refresh to clear out a form field value if that node is empty.
Any ideas on how to do this? I’ve tried checking for an empty string, but that doesn’t work. Now I’m thinking that I should just check to see if the node exists but I have my doubts that that will work either.
Paul, essentially the node is empty. I need a way to go through the nodes and ignore the empty ones. As soon as the Javascript hits the empty node it stops running.
Playing with this some more, it appears that the empty node still breaks the XML structure, even if I ignore it in the JavaScript.
I may just need to modify the script that generates the XML to not include blank items. So if my value is null in the database, just don’t generate a tag for that item.