Ajax forms related

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandeep rao
    New Member
    • Dec 2011
    • 1

    Ajax forms related

    HELP AJAX and Javascript not JQuery pls.!

    I have a page in which i can add, del, modify employee details using buttons. now whn i press add button it shud produce the form below those buttons using ajax. the same way whn i press del and modify it shud generate the form below these buttons.. here is my index page.


    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link rel="stylesheet" type="text/css" href="mini.css" />
    
    </head>
    
    <body>
    <div id="outer" align="center">
    <h1> Welcome!!</h1>
    <h2>Click on a button to perform a specific operation!!</h2>
    <form>
    <a href="add.html"><input type="button" value="Add"/></a>
    <a href="modify.php"><input type="button" value="Edit" onclick="edit()"/></a>
    <a href="del.php"><input type="button" value="Delete" onclick="del()" /></a>
    <a href="seek.php"><input type="button" value="Search" onclick="seek()" /></a>
    <a href="view.html"><input type="button" value="View" onclick="view()" /></a>
    </form>
    
    </div>
    </body>
    </html>
    PLS help i'm new to ajax..
    Last edited by acoder; Dec 1 '11, 11:41 AM. Reason: Added [code] tags
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    your HTML code is redundant. either you have a link which brings you to the specified page, or you have a button that triggers some JS action.

    Comment

    Working...