outputLabel does not render after fadein jquery -


the p:outputlabel not render after fadein jquery had ran. painellogin.png render. p:outputlabel render fadeout immediatly without action,etc...

html form :

  <div id="login-form">     <p:outputlabel for="j_username" value="#{bundle.login_lblemail}" />     <p:inputtext id="j_username" name="j_username"     value="#{loginmb.usuario.nome}" />     </div> 

script :

 $(document).ready(function() {          $("div#login-form").fadein("slow");         document.getelementbyid('login-form').style.display = 'block'; });  

css :

#login-form {     background-image: url("../resources/imagens/painellogin.png");     background-repeat: repeat;     -moz-opacity: 0.70;     -khtml-opacity: 0.70;     width: 300px;     height:200px;     display:none;     z-index: -1;     border-radius: 3px; } 

would please me issue ? in advance.. alex.

<style> #login-form {     background-image: url("../resources/imagens/painellogin.png");     background-repeat: repeat;     /*-moz-opacity: 0.70;     -khtml-opacity: 0.70;*/     width: 300px;     height:200px;     display:none;     z-index: -1;     border-radius: 3px; } </style> 

to show how jquery syntax written, here example translated. dont need full long syntax of javascript if allready use jq specially on same element..

$(document).ready(function() {     $("div#login-form")     .css({         display:'bock', /*haha should 'block' not needed in code */         border: '1px solid #000000'     })     .fadein(1000); }); 

$().fadein() needs value in ms,

your document.getelementbyid not necessary if use <p> elements, blocks there nature, if style them, use quicker native css or try learn bit jquery syntax. maybe errors choosen html-type, ie sometime pissed of, thinker.io works far. can't test on ie now, i'm jumpig around on 11 year old mac. have seen problem reproduce-able here, assume change above work. let me know..

edit: in thinker.io changed html markup show become visible

edit: display:'bock', that- let now! :)


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -