JavaScript onClick="" inside ICEfaces component
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
JavaScript onClick="" inside ICEfaces component  XML
Forum Index -> Components
Author Message
hobione


Joined: 18/10/2007 00:00:00
Messages: 10
Offline


Does anyone can help to figure out how can I use an onclick event in the following scenario.

Code:
 <ice:column style="font-size:10; white-space:nowrap">
    <ice:panelGroup>  
       <ice:effect event="mouseover" effectType="highlight" >
          <a href= "javascript:openUpFileAndCloseCurrentBrowser()">  <ice:outputText value="#{versionBeanWithResource.version.name}"/></a>
       </ice:effect>
   </ice:panelGroup>                                  
 </ice:column> 
 
 


and here what I have outside of </f:view>

Code:
 <script language="javascript">
     function openUpFileAndCloseCurrentBrowser(){
         alert("Test");        
     }
 </script>
 



Here is my error:
Error Traced[line: 124] The markup in the document following the root element must be well-formed.

Please help.
.. Hobi
connolly.st


Joined: 05/06/2008 00:00:00
Messages: 89
Offline


Try sticking with ice components:
Code:
 
 <ice:column style="font-size:10; white-space:nowrap">
     <ice:panelGroup>  
        <ice:effect event="mouseover" effectType="highlight" >
           <ice:outputText onclick="return openUpFileAndCloseCurrentBrowser();" value="#{versionBeanWithResource.version.name}"/>
        </ice:effect>
    </ice:panelGroup>                                  
  </ice:column> 
 
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team