Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

Button that sends and gets AJAX message using JQuery

Hello, I need to create a button that sends a number to a PHP script and gets an answer to present in an alert window. How can I do this using JQuery?

Thanks.
0
IvanGarcete
Asked:
IvanGarcete
  • 2
  • 2
1 Solution
 
Gurvinder Pal SinghCommented:
0
 
IvanGarceteAuthor Commented:
Yeah, that could work partially... How can I get and print a returned parameter  from a PHP function inside the JQuery function?
0
 
Gurvinder Pal SinghCommented:
you need to use the success handler/function
http://api.jquery.com/jQuery.ajax/
0
 
IvanGarceteAuthor Commented:
Yeah, but how do I capture the message from my php script? Is that "data"? How do I show data in an alert window?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now