Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jan 2008
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts

    what is the best ajax way to receive data from server after form submit

    hello all
    i have simple text box and submit button inside a form
    Code:
    <form method="get">
    	<input type="text" name="_data_input">
    	<input type="submit" value="Get Item">
    </form>
    now how can i get the data i receive from the server without refreshing the page
    thanks

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Have you followed any tutorials on Ajax? It should be pretty straight forward.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    Regular Coder
    Join Date
    Jan 2008
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well im not coming from the clinet side and it been a while since i did
    js so i need just some direction
    thanks

  • #4
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    What have you tried to do? Have you looked at any JavaScript tutorials. There are plenty out there on the web that show you how to make an Ajax call to the server and how to handle the response back.

    Your question is rather vague so I can not help you out in greater detail.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •