h:commandButton action is not triggered in ie8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Need Help
    New Member
    • Jul 2012
    • 1

    #1

    h:commandButton action is not triggered in ie8

    Hello All,
    we are using the below tags. Everything works fine in ie6 but not in ie8... action is not getting triggered...I could not see any script issue also in the developer tool...
    Somebody please guide me on this...

    Code:
    <f:view>
    		<h:form id="personMaintPage" name="personMaintPage">
      <h:commandButton id="findBtn" action="#{person.find}" style="display:none"/> 
    							<button id="find" class='btn' type ='submit' onclick="emtyFunction('find');">Fin<span class="HotKey">d</span></button>
    							<rich:hotKey id="findKey" key="ctrl+d" handler="emtyFunction('find');" />
    </h:form>
    </f:view>
    
    <script>
    	function emtyFunction(flag){
    	    
    	    if(flag =='find'){
    
    document.getElementById('personMaintPage:findBtn').click();
    			
    		}	    
    	}
    </script>
    Last edited by gits; Jul 17 '12, 02:22 PM. Reason: added code tags
Working...