Read xml data from iframe using javascript

OwenChatt

New Member
The following iframe code consists of: the iframe result consists of xml data-collection-error rowuniqueid="17" key="filenameupload"\[code\] Please upload files of the 16 BIT MONO wav format only; other formats are not supported at the moment..error\[/code\]collectionjavascript:var myFrm = document.getElementById('target_iframe');var frameDoc;\[code\]if (myFrm.contentDocument){ frameDoc = myFrm.contentDocument; }else{ // bad Internet Explorer ;) frameDoc = myFrm.document;}\[/code\]alert(frameDoc)frameDoc getting as [object HTMLDocument] where as i need to get [object XMLDocument]to read and parse the error tag iframe id="target_iframe" name="target_iframe" style="display: none"iframe
 
Back
Top