Creating fields that can be updated online.

This is a discussion on "Creating fields that can be updated online." within the PHP Forum section. This forum, and the thread "Creating fields that can be updated online. are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 7th, 2007, 11:51
New Member
Join Date: Jun 2007
Location: England
Age: 20
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Creating fields that can be updated online.

Hello,
I need to create a page that is going to be updated on a regular basis,

Its so each person in a team can have their tasks for the day, week or whatever updated and they can keep track of them,

So what I need is at the top a text field to write what the task is, then a submit button next to it, so when you submit it, below on the same page in a table or something like that, the task will appear in the 1st column, then in a second column, an empty field for comments so anybody can write a general statement in it, then in the final column a drop down menu with 'complete' which should be in green, 'in progress' which should be amber, then 'not started' which should be red,

Does anybody have any idea how to do this, or even some of it, or just any suggestions.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jun 7th, 2007, 12:26
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Re: Creating fields that can be updated online.

You can do this the old way using iframes.
Code: Select all
<form target="list" action="list.php">...</form>
<iframe name="list" id="list" src="list.php"></iframe>
Assuming that when you submit stuff to list.php it will do its thing and show the new/updated list.

The other way, or should I say, the web 2.0 way, is to use ajax.
The principle is exactly the same, only you don't need an iframe.

Code: Select all
 <form onsubmit="SubmitForm (); return false;" action="list.php">...</form>
<div id="list"></div>
<script>
var LoadList = function(){
 // fetch list via ajax and show it in div#list
}
var SubmitForm = function(){
 // submitform via ajax
 LoadList();
}
window.onload = LoadList;
</script>
If you want to do it tha Ajax way, or if you need to do anything else in Javascript, I recommend jQuery.
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
drop down, online, table, update

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PR updated simonb Webforumz Cafe 24 Jan 14th, 2008 16:38
Creating artwork online warthogweb Flash & Multimedia Forum 12 Aug 15th, 2007 19:47
A New Competition! (UPDATED) Sgaspar11 Flash & Multimedia Forum 0 Aug 3rd, 2007 00:20
Problem creating page that can have fields updated online neash83 Web Page Design 2 Jun 7th, 2007 11:53
MI Online Analyst/Management Information/SEO/Online/Email/Folkestone Web JobBot Job Opportunities 0 Jan 10th, 2007 15:12


All times are GMT. The time now is 02:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42