[richfaces-issues] [JBoss JIRA] Updated: (RF-8541) Null Parent Node

Fernando Ribeiro (JIRA) jira-events at lists.jboss.org
Sat Mar 20 13:41:37 EDT 2010


     [ https://jira.jboss.org/jira/browse/RF-8541?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fernando Ribeiro updated RF-8541:
---------------------------------

    Description: 
While using portlets with JBoss Portlet Bridge 2.0.0.CR1, I get an "script.parentNode is null or not an object" in IE8 (but not in Firefox 3.6) from ui.pack.js:

function checkReadyState() {

  if (script.readyState=="complete") {
    script.parentNode.removeChild(script);
    callDomLoadFunctions()
  }

}

The script is added to the page as follows, inside a DIV, for each portlet in the page:

<script src="/portal/auth/portal/default/sample/SamplePortletWindow?rfRes=%2Forg%2Frichfaces%2Fui.pack.js&amp;action=b&amp;cacheability=PAGE" type="text/javascript"></script>

Other users of the JBoss Portlet Bridge may want to know that I am using the WRAP_SCRIPTS context param.

I wasn't able to find the cause of the issue, but found a way to work around it:

function checkReadyState() {

  if (script.parentNode && script.readyState=="complete") {
    script.parentNode.removeChild(script);
    callDomLoadFunctions()
  }

}

Can you please investigate the issue and/or consider adding the workaround to the next 3.x release?

  was:
While using portlets with JBoss Portlet Bridge 2.0.0.CR1, I get an "script.parentNode is null or not an object" in IE8 (but not in Firefox 3.6) from ui.pack.js:

function checkReadyState() {

  if (script.readyState=="complete") {
    script.parentNode.removeChild(script);
    callDomLoadFunctions()
  }

}

I wasn't able to find the cause of the issue, but found a way to work around it:

function checkReadyState() {

  if (script.parentNode && script.readyState=="complete") {
    script.parentNode.removeChild(script);
    callDomLoadFunctions()
  }

}

Can you please investigate the issue and/or consider adding the workaround to the next 3.x release?



> Null Parent Node
> ----------------
>
>                 Key: RF-8541
>                 URL: https://jira.jboss.org/jira/browse/RF-8541
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.3.3.CR1
>            Reporter: Fernando Ribeiro
>
> While using portlets with JBoss Portlet Bridge 2.0.0.CR1, I get an "script.parentNode is null or not an object" in IE8 (but not in Firefox 3.6) from ui.pack.js:
> function checkReadyState() {
>   if (script.readyState=="complete") {
>     script.parentNode.removeChild(script);
>     callDomLoadFunctions()
>   }
> }
> The script is added to the page as follows, inside a DIV, for each portlet in the page:
> <script src="/portal/auth/portal/default/sample/SamplePortletWindow?rfRes=%2Forg%2Frichfaces%2Fui.pack.js&amp;action=b&amp;cacheability=PAGE" type="text/javascript"></script>
> Other users of the JBoss Portlet Bridge may want to know that I am using the WRAP_SCRIPTS context param.
> I wasn't able to find the cause of the issue, but found a way to work around it:
> function checkReadyState() {
>   if (script.parentNode && script.readyState=="complete") {
>     script.parentNode.removeChild(script);
>     callDomLoadFunctions()
>   }
> }
> Can you please investigate the issue and/or consider adding the workaround to the next 3.x release?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list