By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,258 Members | 1,733 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,258 IT Pros & Developers. It's quick & easy.

Ajax forms related

P: 1
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.

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
  2. <html xmlns="">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Untitled Document</title>
  6. <link rel="stylesheet" type="text/css" href="mini.css" />
  8. </head>
  10. <body>
  11. <div id="outer" align="center">
  12. <h1> Welcome!!</h1>
  13. <h2>Click on a button to perform a specific operation!!</h2>
  14. <form>
  15. <a href="add.html"><input type="button" value="Add"/></a>
  16. <a href="modify.php"><input type="button" value="Edit" onclick="edit()"/></a>
  17. <a href="del.php"><input type="button" value="Delete" onclick="del()" /></a>
  18. <a href="seek.php"><input type="button" value="Search" onclick="seek()" /></a>
  19. <a href="view.html"><input type="button" value="View" onclick="view()" /></a>
  20. </form>
  22. </div>
  23. </body>
  24. </html>
PLS help i'm new to ajax..
Dec 1 '11 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,639
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.
Dec 1 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.