Re: XMLSerialize status
"rvj" <[email protected]> Tue, 15 May 2007 08:04:35 +0100
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
Sorry it looks like its the target object thats generating the error message
because the target document is not ready
I seem to have found a workaround by adding a dummy timeout
function onloadevent
{
// build target document using document.write
window.frames[0].document().open
window.frames[0].document.write(string)
window.frames[0].document.close()
// wait a bit
x=setTimeout("resumeonload()",0)
}
function resumeonload()
{
// create an object document reference
}
"Boris Zbarsky" <[email protected]> wrote in message
news:[email protected]...
> rvj wrote:
>> alert("markup not ready") // gererates meassge <tag>
>> has no properties
>
> The alert() call does?
>
>> I know I add a interval timer inside the catch() which can retry the
>> assignment at intervals but I what I doubt if this should work since
>> setHTML() is a function and maybe called async. ie the pervious interval
>> timer is still running ??????
>
> I have no idea what this is talking about. Setting innerHTML to the
> string the XML serializer outputs should "work" (insofar as it works to
> parse XML as tag-soup, etc).
>
> Care to post a complete minimal testcase demonstrating your problem?
>
> -Boris
>