I am having the dickens of a time figuring this out. I've been
googling high and low, but all the examples I find involve the iframe's
src containing some HTML albeit minimal. I just want it to contain
"bare" json such as:
{
"fields": {
"firstName",
"middleInitial",
"lastName"
}
}
If I set the src attribute of an iframe to a file that contains nothing
but the above, using the DOM, how do I access the above as text? I
presume that on the page that defines the iframe (which will be
"hidden" by the way), that I will need to specify div tags. Do these
go outside the iframe tags or inside? Lots of questions as you can
see. All help greatly appreciated, including pointing me to other
URLS. Though as I say I've googled extensively and have yet to find an
example where the iframe's src was "bare" text.
Thanks in advance