Subversion Repositories SmartDukaan

Rev

Rev 754 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<head>
        <title>Saholic Logistics Support</title>
        <script language="javascript" src="js/jquery-1.4.2.js" type="text/javascript"></script>
</head>
<body>
        <div id="login" align="center">
        <p>
                Welcome to Saholic Logistics Support Center.<br/>
                Please select the location you want the details for.
        </p>
        <label>Warehouse:</label>
        <select name="warehouseId" id="warehouseId">
                <option value="1">New Delhi</option>
        </select>
        <br/>
        <a href="#">Download Report</a>
        </div>
        <script>
                $('a').click(function(e){
                        e.preventDefault();
                        window.location.href = "courier-details/" + $("#warehouseId option:selected").val();
                });
                
                function getCourierDetails(){
                        alert("Hi there");
                        jQuery.ajax({
              type: "GET",
              url: "courier-details/" + $("#warehouseId option:selected").val(),
                          success: function(msg){
                                        alert("Returned successfully");
                                        return false;
                          }
                });
                        
                        return false;
                }
        </script>
</body>