You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Jeremiah Johnson (JIRA)" <be...@incubator.apache.org> on 2005/02/11 20:07:12 UTC

[jira] Updated: (BEEHIVE-283) onPopupDone in configurePopup tag not calling JS function

     [ http://issues.apache.org/jira/browse/BEEHIVE-283?page=history ]

Jeremiah Johnson updated BEEHIVE-283:
-------------------------------------

    Description: 
I don't think that my JavaScript is getting called at all.  Below is what I currently have in my page source:

<netui:anchor action="beginNewProduct" popup="true">
   Add New Product
   <netui:configurePopup height="200" onPopupDone="reloadPage" width="200"/>
</netui:anchor>

 ... <snip> ...

       </netui:form></p>
<netui:scriptBlock>
   function reloadPage() {
      window.location.href = "http://localhost:8080/";
   }
</netui:scriptBlock>

   </netui:body>

- jeremiah


  was:
I don’t think that my JavaScript is getting called at all.  Below is what I currently have in my page source:

<netui:anchor action="beginNewProduct" popup="true">
   Add New Product
   <netui:configurePopup height="200" onPopupDone="reloadPage” width="200"/>
</netui:anchor>

 … <snip> …

       </netui:form></p>
<netui:scriptBlock>
   function reloadPage() {
      window.location.href = "http://localhost:8080/";
   }
</netui:scriptBlock>

   </netui:body>

- jeremiah


       Priority: Minor  (was: Major)

I dropped the priority to minor because I have a work-around: use the placement attribute in the ScriptBlock to ensure that the JS function to be called is at the end of the framework script:

      <netui:scriptBlock placement="after">
         function reloadPage() {
            window.location.reload( true );
         }
      </netui:scriptBlock>

In fact, perhaps this is the intended behavior; is this still a bug?

- jeremiah

> onPopupDone in configurePopup tag not calling JS function
> ---------------------------------------------------------
>
>          Key: BEEHIVE-283
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-283
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>  Environment: Firefox 1.0 / Tomcat 5.0.25
>     Reporter: Jeremiah Johnson
>     Assignee: Rich Feit
>     Priority: Minor

>
> I don't think that my JavaScript is getting called at all.  Below is what I currently have in my page source:
> <netui:anchor action="beginNewProduct" popup="true">
>    Add New Product
>    <netui:configurePopup height="200" onPopupDone="reloadPage" width="200"/>
> </netui:anchor>
>  ... <snip> ...
>        </netui:form></p>
> <netui:scriptBlock>
>    function reloadPage() {
>       window.location.href = "http://localhost:8080/";
>    }
> </netui:scriptBlock>
>    </netui:body>
> - jeremiah

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira