View Full Version : jQuery and AJAX

08-30-2010, 03:46 PM
uhh. hello, I'm new to jQuery I was wondering where I went wrong.
What I want to do is, whenever I send a query to my PHP file, the output will use $(#someId).show("slow") to print.

I tried this :
on my .php file

$(document).ready(function() {

and this :
on my main file, the .html.

$(function() {

still nothing happens. can someone help me? :confused:

08-31-2010, 04:16 AM
Whenever you send a query? What event is that based on? Are you using Ajax? Where are your AJax calls?

Generally, you use the callback function of your call to ajax() or post() or get() or load() to kick off events when the Ajax call is complete.