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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  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" />
  7.  
  8. </head>
  9.  
  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>
  21.  
  22. </div>
  23. </body>
  24. </html>
  25.  
PLS help i'm new to ajax..
Dec 1 '11 #1
Share this Question
Share on Google+
1 Reply


Dormilich
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.