Hi,
I am new to this.  I have search through the archive and found no clue on
how to do the following.
There are similar questions but answers provided either none or fragmented.
What I would like to do is similar to http://sanebull.com/ login.  Upon
login, I would like to write sucess message to a line.

What I have done are as follows.

...
<a href="#" onclick="openConfirmDialog7()">openConfirmDialog7</a>

<div id="login" style="display:none">
<p><span id='login_error_msg' class="login_error"
style="display:none">&nbsp;</span></p>
<div style="clear:both"></div> <p><span class="login_label">login</span>
<span class="login_input">
<input type="text"/></span></p>
<div style="clear:both"></div>
<p><span class="login_label">password</span>
<span class="login_input"><input type="password"/></span></p>
<div style="clear:both"></div> </div>


<div id="loginmsg" >
<p><span id='thismsg' class="thismsg" >temp mesg &nbsp;</span></p>
</div>

<script>
function openConfirmDialog7() {
   Dialog.confirm($('login').innerHTML,
       {className:\"alphacube\", width:400,
           okLabel: \"login\", cancelLabel: \"cancel\",
           onOk:function(win){
parent.Windows.$F('thismsg').innerHTML='bbbb';-->????????
parent.Windows.$F('thismsg').show();
               $('login_error_msg').innerHTML='Login or password
inccorect';
               $('login_error_msg').show();

               Windows.focusedWindow.updateHeight();
               new Effect.Shake(Windows.focusedWindow.getId());
               return false;
           },
           onCancel:function(win){ $('login_error_msg').innerHTML='Cancel';

               $('login_error_msg').show();
Windows.focusedWindow.updateHeight();
               new Effect.Shake(Windows.focusedWindow.getId()); return
false;
           }
       }
   );
}
</script>
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to