TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-14-2007, 03:59 AM   #1 (permalink)
The Wanderer
 
hostfreak's Avatar
 
Join Date: Oct 2007
Posts: 21
Thanks: 1
hostfreak is on a distinguished road
Default Design (not graphical) question

I want to do something similar to my attached image. See the tabs? Kind of like a "step(s) process". I know there are several ways to go about it:
1. Use simple javascript to do something like a show/hide; everything is pretty much coded into one page/using includes
2. Use ajax to load the separate pages
3. Other suggestions?

Also the overall design of it is a little confusing to me. The main page will be an employee profile of which subs into the tabbed options shown.

I'm not sure if on each tab option a submit should be required before going to the next option or just one submit option to insert/update all tab options?

Sorry if this is confusing, been up about 2 days straight now and want to get this posted before I go to bed to hopefully awake to some suggestions.
Attached Thumbnails
design-not-graphical-question-employees-1.jpg  
hostfreak is offline  
Reply With Quote
Old 12-14-2007, 12:03 PM   #2 (permalink)
The Wanderer
 
bmicallef's Avatar
 
Join Date: Nov 2007
Posts: 18
Thanks: 3
bmicallef is on a distinguished road
Terminal

hostfreak,

I would not require a submit for each but instead, save the form's information every time a tab is changed.

So:

PHP Code:
function OnChangeTab()
{
  
SaveCurrentPage();

Ajax would work well for this ... I am assuming that prior to this step, your user would be logged in already so that you would have a way to save this information against a known user profile ...

You may nit actually need to load the pages OnChangeTab() ... simply load all the HTML and form information on the initial page load ... then simply hide [class="display: none;" ] the container <div/>s you do not want to show at any particular time.

This will reduce the possibility of delays when switching tabs, and lowers the number of calls you need to make to the web server and database.

I hope this helps!

Brad
Send a message via AIM to bmicallef
bmicallef is offline  
Reply With Quote
The Following User Says Thank You to bmicallef For This Useful Post:
hostfreak (12-14-2007)
Old 12-14-2007, 02:40 PM   #3 (permalink)
The Wanderer
 
hostfreak's Avatar
 
Join Date: Oct 2007
Posts: 21
Thanks: 1
hostfreak is on a distinguished road
Default

Brad,

Makes perfect sense. Didn't think of saving page between browsing of tabs. Of course, I will also need to add a manual submit option on each section; being as not all tab sections will be required.

On a side note, I'd like to mention that it's not good for anyone to stay up 2 days straight... you start to imagine things lol
hostfreak is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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


All times are GMT. The time now is 10:22 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design