utahcon Posted September 21, 2006 Share Posted September 21, 2006 I know you can use javascript to fetch data from a php/perl script and return the results without having to reload the page. Can you do something like this though? (sorry for the bad examples)the user calls the page and is returned 2 posts, the two posts are shown below... ====| || |++++| || |++++then when the javascript checks for new posts build the new post above the first and slide the rest down? ==== represents the top of the page1)====| || |++++| || |++++2)++++| || |====| || |++++| || |++++3)++++| |====| |++++| || |++++| || |++++4)====| || |++++| || |++++| || |++++Again sorry for the lame example... Link to comment Share on other sites More sharing options...
Webworldx Posted September 21, 2006 Share Posted September 21, 2006 Yes you can, just put the first result in a div container, then keep adding the new results usingmy_div.innerHTML = extra_content + my_div.innerHTMLor use pure DOM methods like insertBefore to add the node in. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now