Hello,
I'm having trouble getting the metadata plugin to DWIW when the metadata
is loaded with Ajax.
The metadata is contained within div elements like this:
<div>
some stuff . . .
<script type="application/json">( {"keywords":["manufacturing","field
service"],"categories":["Field Service","Manufacturing"],
"industry":["Field Service"]} )</script>
</div>
The metadata plugin handles this nicely, with or without the parens
before and after the brackets, when loaded normally.
However, I want to grab the page with an Ajax call, delete the chrome,
extract the HTML I want (which includes the divs with metadata) and load
it into a tab.
When I first tried it, I got an "invalid label" error for each script. A
Google search produced a tip suggesting surrounding the JSON with parens
-- which solved that problem.
However, the scripts don't appear to be evaluated or recognized by the
metadata plugin when loaded via Ajax. If I display the html in the
Firebug console, I can see the script/json text -- but the scripts don't
show up as objects in the DOM.
Thx for suggestions.
Bruce McKenzie