Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   High Bandwidth Dedicated Servers   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 05-07-2008, 03:32 AM   #1 (permalink)
Junior Member
 
Join Date: 07-24-06
Location: UK
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

chesty is liked by many
1 DB record accross 4 tabs using AJAX.

Hi All,
I have a flat table with about 60 fields in the table and want to be able to split this data accross 4 AJAX tabs. I can do this fine but how do I allow the user to modify data in TAB 1 for example, and then all data in TAB1 gets submitted for update automatically when the user clicks on TAB 2.

Basically, I want to auto submit the current Tabs data when the user clicks on a new TAB but only be taken to TAB2. I want to do away with a save button on each TAB.

Hope the above makes sense...Not even sure if the above can be done.

Thanks in advance people.

chesty
chesty is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 05-07-2008, 05:45 AM   #2 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 468
iTrader: 0 / 0%
Latest Blog:
None

Boogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the rough
Can't you capture the load event on each tab?

If not the best way that i can think of is to separate each tab to it's own dataset. i.e. you only need fields 1-20 for tab 1, well then there's your dsTab1 = fields1-20.

Then whenever tab1 loses focus or gains focus, do an update/select respectivley?

Am i on th right track for you here?

Boog's
__________________
Great new 'June' Javascript Framework

June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-08-2008, 05:11 AM   #3 (permalink)
Junior Member
 
Join Date: 07-24-06
Location: UK
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

chesty is liked by many
Thank you for your reply!
Yes, you are defo on the right track.

'Then whenever tab1 loses focus or gains focus, do an update/select respectivley'
This is where I get lost - Hangon, I think I have got it. When a user clicks on the a tab, I pass a paremeter in the querystring (ie, tab2.php&currenttab=1). Once submited, I have a switch statement,

case(currenttab=1)
'do update
case(currenttab=2)
'do update
end case

` build html for new tab...

Is this what you mean? I think that will work.

Thanks,

Paul
chesty is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-08-2008, 05:34 AM   #4 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 468
iTrader: 0 / 0%
Latest Blog:
None

Boogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the rough
Exactly that.

Give it a try and let me know if it works

Boog's
__________________
Great new 'June' Javascript Framework

June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
AJAX: bots hitting AJAX scripts kkiely Coding Forum 1 04-21-2007 01:14 AM
Where do I rank accross country seoinfosys Google Forum 6 05-10-2006 10:33 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 09:54 PM.
© Copyright 2008 V7 Inc