[WANTED] Facebook style Status Update script.

If you wish to post tutorials or need help with any web programming language that isnt listed above then please post them in here.
5 posts Page 1 of 1
Contributors
User avatar
Scottie1972
Codenstuff Elite
Codenstuff Elite
Posts: 953
Joined: Thu Jan 14, 2010 5:48 am

I need some help here.
this is my idea. I have a
Code: Select all
<div id="status"></div>
and a form
Code: Select all
<form name="form1" method="POST" action="" enctype="">
  <input type="text" name="new_status" />
  <input type="submit" name="submit" value="Send" />
</form> 
What I would like to have is the #status<div> loads an external page at load time.
such as jquery
Code: Select all
<script src="js/jquery-1.3.2.js"></script>
<script>
  $(document).ready(function() {
  // put all your jQuery goodness in here.
  $('#status').load("process.status.php");
});
so that a list of status message gets loaded at runtime.

then when a user chooses to update there status, and they use the <form> above.
the status is submitted to a php file and insert into a database all with out refreshing or leaving the page.

then have the #status<div> reload the new messages.

I can get one or the other functions to work, but not both.
Any help on this would be great.


Scottie1972
Image
User avatar
Scottie1972
Codenstuff Elite
Codenstuff Elite
Posts: 953
Joined: Thu Jan 14, 2010 5:48 am

I need to repost this, it isnt listing the the New Post list.
Image
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

Lol, it that another way of saying you're bumping your own topic?

Scottie, you should know better :lol: (jocking)
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

I found a few tutorials online on how to do this type of thing that may be helpful

http://www.9lessons.info/2009/11/insert ... -ajax.html

http://tutorialzine.com/2009/09/making- ... -timeline/
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Scottie1972
Codenstuff Elite
Codenstuff Elite
Posts: 953
Joined: Thu Jan 14, 2010 5:48 am

CodenStuff wrote:
I found a few tutorials online on how to do this type of thing that may be helpful
http://www.9lessons.info/2009/11/insert ... -ajax.html
http://tutorialzine.com/2009/09/making- ... -timeline/
I know you would not let me down.

Good Man!

Thanks; Scottie
Image
5 posts Page 1 of 1
Return to “Other Languages”