[Proto-Scripty] BlindDown issue, won't work

2010-07-19 Thread Silvershaft
Hey I got a little problem with my div what should appear if the login
fails, the alert will show up meaning that the function works, but the
blinddown doesn't work. Code for checkLogin function

function checkLogin()
{
var username = $('#name').attr('value');
var password = $('#password').attr('value');
alert(username);


$.ajax({
  type: POST,
  url: check.php,
  data: username= + username + password= + password,

  success: function(data) {
alert('works!');
Effect.BlindDown('error');
  },

  error: function() {
alert('failure');
  }
});

Code for my DIV
   div id=error style=width:25%; height:40px; margin-left:38%;
margin-top:1%; margin-right:auto; font-size:140%; background:#F33;
height:30px;
font-weight:bold;
color:#000;
background-color:#F30;
display:none;
Incorrect login!
/div

And finally the code for the button
pnbsp;
a href=# onclick=checkLogin()
onmouseover=test(this)
img src=images/login2.png name=submitbtn border=0
alt=Submit id=img1 style=width:25%; height:31px;  //a/p

I can't seem to understand why it doesn't work, I think it's just a
small problem but I don't get it.. Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



Re: [Proto-Scripty] BlindDown issue, won't work

2010-07-19 Thread Guillaume Lepicard
hi Silvershaft,

You're on the wrong list : you're obviously using jQuery...

On Mon, Jul 19, 2010 at 3:06 PM, Silvershaft
samppalehtonenle...@gmail.comwrote:

 Hey I got a little problem with my div what should appear if the login
 fails, the alert will show up meaning that the function works, but the
 blinddown doesn't work. Code for checkLogin function

 function checkLogin()
 {
var username = $('#name').attr('value');
var password = $('#password').attr('value');
alert(username);


 $.ajax({
  type: POST,
  url: check.php,
  data: username= + username + password= + password,

  success: function(data) {
alert('works!');
Effect.BlindDown('error');
  },

  error: function() {
alert('failure');
  }
 });

 Code for my DIV
   div id=error style=width:25%; height:40px; margin-left:38%;
 margin-top:1%; margin-right:auto; font-size:140%; background:#F33;
height:30px;
font-weight:bold;
color:#000;
background-color:#F30;
display:none;
Incorrect login!
 /div

 And finally the code for the button
pnbsp;
a href=# onclick=checkLogin()
 onmouseover=test(this)
img src=images/login2.png name=submitbtn border=0
 alt=Submit id=img1 style=width:25%; height:31px;  //a/p

 I can't seem to understand why it doesn't work, I think it's just a
 small problem but I don't get it.. Thanks in advance!

 --
 You received this message because you are subscribed to the Google Groups
 Prototype  script.aculo.us group.
 To post to this group, send email to
 prototype-scriptacul...@googlegroups.com.
 To unsubscribe from this group, send email to
 prototype-scriptaculous+unsubscr...@googlegroups.comprototype-scriptaculous%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/prototype-scriptaculous?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.