Load new table row on ajax success
Hi,
I have a PHP function that checks the contents of a particular URL for a specific string. This can take anything from 3-8 seconds to load.
If the string im looking for is present then I include the URL in a table (id = table1) on my index page. However I cannot afford for my index page to wait for the PHP function to finish getting the contents of URL.
I have attempted to use the jQuery ajax function to load the PHP function and dependent on the outcome of the PHP function (if the string exists) then add a new table row (with the URL) to #table1.
Ideally i'd like for the new row to fadeIn.
I would really appreciate some help with this.
Thanks in advance.