1 Replies - 2592 Views - Last Post: 10 July 2013 - 06:23 AM

#1 nickivz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 10-July 13

Drop down login script

Posted 10 July 2013 - 05:41 AM

I have downloaded this drop down login form from the internet but i can not get it to work. I have changed the two '#' with 'http://jcountry.datingjewels.com/login/' but the login button does nothing. The bottom 'forgot your details' work. Can you please help.

Thanks

Nick van Zyl

New dropdown login:

<!doctype html>
<html>
<head>
    <meta charset="utf8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>jQuery Dropdown Login Freebie | The Finished Box</title>
    <link rel="stylesheet" href="css/style.css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=1.4.2"></script>
    <script src="js/login.js"></script>
</head>
<body>
    <div id="bar">
        <div id="container">
            <!-- Login Starts Here -->
            <div id="loginContainer">
                <a href="#" id="loginButton"><span>Login</span><em></em></a>
                <div style="clear:both"></div>
                <div id="loginBox">                
                    <form id="loginForm">
                        <fieldset id="body">
                            <fieldset>
                                <label for="email">Email Address</label>
                                <input type="text" name="email" id="email" />
                            </fieldset>
                            <fieldset>
                                <label for="password">Password</label>
                                <input type="password" name="password" id="password" />
                            </fieldset>
                            <input type="submit" id="login" value="Sign in" />
                            <label for="checkbox"><input type="checkbox" id="checkbox" />Remember me</label>
                        </fieldset>
                        <span><a href="#">Forgot your password?</a></span>
                    </form>
                </div>
            </div>
            <!-- Login Ends Here -->
        </div>
    </div>
</body>
</html>



// Login Form
$(function() {
    var button = $('#loginButton');
    var box = $('#loginBox');
    var form = $('#loginForm');
    button.removeAttr('href');
    button.mouseup(function(login) {
        box.toggle();
        button.toggleClass('active');
    });
    form.mouseup(function() { 
        return false;
    });
    $(this).mouseup(function(login) {
        if(!($(login.target).parent('#loginButton').length > 0)) {
            button.removeClass('active');
            box.hide();
        }
    });


Old login form that works:

<table> 
<tr> 
<td> 
<form method="post" action="http://app.sitedomain.co.uk/login/" 
class="inline"> 
<input type="hidden" name="blackbox" id="blackbox" value=""> 
<table> 
<tr> 
<td>ID:</td> 
<td> 
<input name="memberid" type="text" size="10"> 
</td> 
</tr> 
<tr> 
<td>Pass:</td> 
<td><input name="password" type="password" size="10"></td> 
</tr> 
<tr> 
<td>&nbsp;</td> 
<td><input type="submit" value="Login!"></td> 
</tr> 
</table> 
</form> 
</td> 
</tr> 
</table>

This post has been edited by Dormilich: 10 July 2013 - 06:16 AM
Reason for edit:: please use [code] [/code] tags when posting code


Is This A Good Question/Topic? 0
  • +

Replies To: Drop down login script

#2 Dormilich  Icon User is online

  • 痛覚残留
  • member icon

Reputation: 3394
  • View blog
  • Posts: 9,598
  • Joined: 08-June 10

Re: Drop down login script

Posted 10 July 2013 - 06:23 AM

Quote

I have downloaded this drop down login form from the internet but i can not get it to work.

there is no indication that your new login form contacts the server for login verification, hence it cannot log you in.

note: the form submit is suppressed (JS lines #11-#13) and the server URL is removed (JS line #6)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1