...

View Full Version : jQuery and AJAX



flint0131
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() {
$("#someId).show("slow");
});


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


$(function() {
$("#where_i_ouput_responseText").html(xmlHttp.responseText);
$("#where_i_output_responseText").show("slow");
});


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

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

http://api.jquery.com/jQuery.ajax/



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum