Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-01-2012, 02:05 AM   PM User | #1
lahonda_99
New to the CF scene

 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
lahonda_99 is an unknown quantity at this point
Post [Help]Form Updates Between Users

I have a large form that I would like multiple users to be able to edit at the same time.

Does anyone have any tips on how I can make one users' edit immediately be reflected in the form of another user in a separate browser?

I was thinking about onBlur actions to update a MySQL database. A second onBlur on each form field to call a separate PHP script which would check that MySQL database for changes.

This would be a LOT of talk between users and the MySQL database. In addition I'd probably have to add a second database check on a timer.

Any tips?
lahonda_99 is offline   Reply With Quote
Old 03-01-2012, 07:25 AM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,037
Thanks: 197
Thanked 2,411 Times in 2,389 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
Post this in the PHP forum. Javascript cannot communicate with the server.

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Philip M is offline   Reply With Quote
Old 03-01-2012, 11:56 AM   PM User | #3
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,604
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Well, to me that rather sounds like an AJAX issue. That’s basically a webchat kind of functionality or something what modern webmail or collaboration web applications do.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 03-01-2012, 12:26 PM   PM User | #4
XCalibre
Regular Coder

 
Join Date: Feb 2012
Posts: 121
Thanks: 19
Thanked 3 Times in 3 Posts
XCalibre has a little shameless behaviour in the past
I would think it would be ajax myself. I'm not that experience, but I believe you could create the forms and then linking the forms submit to the database and calling it from the database to post the information that was in your form. Kind of like a chat that refreshes itself. A user posts, and it shows up. A user enters something in the form; it shows up. Ajax would be needed for that type of feature I believe.

This way, it wouldn't matter who updated what...it would automatically update as the user entered the information into the form; no matter where they are located at.

Like I said, I'm VERY new to a lot of this scripting, but I'm learning and hoping i"m correct here. I'm sure if I'm not, someone will come around and correct me Just trying to be helpful. Good luck
XCalibre is offline   Reply With Quote
Old 03-01-2012, 06:38 PM   PM User | #5
lahonda_99
New to the CF scene

 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
lahonda_99 is an unknown quantity at this point
Thanks for the thread move and for your ideas regarding AJAX. I'll start reading the AJAX forum for tips

Once I get the data array from my MySQL database how do I use javascript to populate my fields from the array?

Last edited by lahonda_99; 03-01-2012 at 07:06 PM..
lahonda_99 is offline   Reply With Quote
Reply

Bookmarks

Tags
forms, javascript, mysql, php

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 10:59 AM.


Advertisement
Log in to turn off these ads.