neophyte - 4:56 am on May 18, 2012 (gmt 0)
Hi Fotiman -
Okay, here's the scenario:
there's a div (#main_content) that holds any number of tables of information drawn from the database.
An Admin may delete any of these tables at any time by clicking the delete button on any of the tables.
Once the delete button is clicked:
1. an ajax call is made which deletes a row in the database; this row supplies the data to the table being deleted.
2. The element holding all of the tables (#main_content) needs to be refreshed (updated/whatever) to show that the target table had indeed been deleted.
That's how it's suppose to work.
I've got it working by simply refreshing the entire page, but would like to be able to only refresh the content div only if possible.
Hummm... while re-reading this reply I now realize that the reason that refreshing the entire page works is because on refresh new data is drawn from the database which then repopulates #content_main.
So, looks like to do this via jquery I'd have to:
1. delete the row from the database, and then...
2. make a second ajax call to pull fresh content from the database and load that content into #content_main.
Boy, I feel like an idiot not thinking this through before making my initial post. Sorry about that!