locked
iframe not knowing finished RRS feed

  • Question

  • User-147228924 posted

    Hi,

        I add a progress bar for three <g class="gr_ gr_79 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" id="79" data-gr-id="79">iframe</g> in my page and the iframe contains <g class="gr_ gr_136 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" id="136" data-gr-id="136">other <g class="gr_ gr_135 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling" id="135" data-gr-id="135">aspx</g> page</g>. For two of them, when the <g class="gr_ gr_215 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" id="215" data-gr-id="215">iframe</g> is finished loading, the progress bar is <g class="gr_ gr_259 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="259" data-gr-id="259">diappeared</g>. But for one <g class="gr_ gr_304 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" id="304" data-gr-id="304">iframe</g>, even some data are displayed on the <g class="gr_ gr_377 gr-alert gr_spell gr_inline_cards gr_disable_anim_appear ContextualSpelling ins-del" id="377" data-gr-id="377">iframe</g>, the progress bar <g class="gr_ gr_626 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" id="626" data-gr-id="626">keep</g> on showing, seems that iframe is not being known it has finished. What is the possible reason for the iframe not known as finished?

    Thanks.

    Friday, July 6, 2018 7:28 AM

All replies

  • User753101303 posted

    Hi,

    Start rather from what actually happens. You tried F12 Console already to check for errors ? It uses onready or onreadystatechanged and this event doesn't happen? Could it be that this ASPX page doesn't render HTML content (this is a file download maybe ?)

    Friday, July 6, 2018 1:15 PM
  • User-330142929 posted

    Hi Hon123456,

    According to your description, I think the XMLHTTPREquest object does not trigger the onreadystatechange function, which means that the following logic code does not been checked. I suggest you could use the web developer tool(F12) to see if the Javascript function has been executed correctly.

    xmlhttp.onreadystatechange=function()
      {
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        {
        document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
        }
      }
    

    Feel free to let me know if you have any question.

    Best Regards

    Abraham

    Monday, July 9, 2018 8:30 AM