Salut !
J'ai découvert l'AJAX il y a très peu de temps et je regarde certains scripts. J'en ai trouvé un qui sert de login mais j'arrive pas à l'adapter c'est ça :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 Dialog.confirm($('login').innerHTML, {className:"alphacube", width:400, okLabel: "login", cancelLabel: "cancel", onOk:function(win) { $('login_error_msg').innerHTML='Login or password inccorect'; $('login_error_msg').show(); Windows.focusedWindow.updateHeight(); new Effect.Shake(Windows.focusedWindow.getId()); return false;}});
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 <div id="login" style="display:none"> <p> <span id='login_error_msg' class="login_error" style="display:none"> </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>J'ai pas de message d'erreurs, rien ne s'affiche, quelqu'un peut m'aider svp ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 .login_label, .login_input, .login_error { padding:10px; color:#000; text-align:left; float:left; width:100px; font-size:20px; color:#64355A; } .login_input { width:200px; } .login_error { width:250px; color:#F00; } .login_input input { width:100%; } #login { background:#123; }
Merci d'avance...
Partager