E
eggie5
I have a custom object named #cdata-section, however I am unable to
access this object and get a run time "Illegal Character" javascript
error. my object looks like this:
data.news.story.body.#cdata-section
The pound sign is causing problems. How can I use this object in my
javascript source? Right now I'm trying something like this to escape
the pound sign:
summaryNode.appendChild(document.createTextNode(data.news.story.body.\u0023cdata-section));
however, that doesn't work, any ideas?
access this object and get a run time "Illegal Character" javascript
error. my object looks like this:
data.news.story.body.#cdata-section
The pound sign is causing problems. How can I use this object in my
javascript source? Right now I'm trying something like this to escape
the pound sign:
summaryNode.appendChild(document.createTextNode(data.news.story.body.\u0023cdata-section));
however, that doesn't work, any ideas?