View Single Post
Old 04-08-2009, 07:34 AM   PM User | #1
Apothem
Regular Coder

 
Apothem's Avatar
 
Join Date: Mar 2008
Posts: 380
Thanks: 36
Thanked 25 Times in 25 Posts
Apothem is an unknown quantity at this point
Adding text to a list AND removing them

This might be clearer if you use Twitter.
In Twitter, if you post a message, your message slides into the message list. Also, if you click Home (Sidebar), it will find new tweets and merge it into the message list. What I want to know is how do you make it so that jQuery will merge lists together + sort them AND remove older messages afterward.

E.g: Current list:
<li value="100">abc</li>
<li value="68">abc</li>
<li value="32">abc</li>
<li value="5">abc</li>

Queried new:
<li value="80">bcd</li>

New list should become:
<li value="100">abc</li>
<li value="80">bcd</li>
<li value="68">abc</li>
<li value="32">abc</li>
Apothem is offline   Reply With Quote