Re: [PHP] Dynamic form changes without refresh

2008-06-07 Thread Nitsan Bin-Nun
Try to pull this algorithm into a function, then add it to the onLoad attribute of your body element, so on the each load it call the function which calls it self each X seconds interval (use the functions mentioned by Todd) On 05/06/2008, Mayer, Jonathan [EMAIL PROTECTED] wrote: Hiya all, I

[PHP] Dynamic form changes without refresh

2008-06-05 Thread Mayer, Jonathan
Hiya all, I have a PHP page with a form holding a large number of textarea boxes. These text boxes are individually set as enabled or disabled based on a flag held in a MySQL database. I want to be able to dynamically enable or disable a specific box without the page being recalled (potentially

Re: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Per Jessen
Mayer, Jonathan wrote: Using some basic javascript/AJAX, I have set up a link next to each text box, which calls code that updates the database in the background without refreshing the page. If I manually refresh the page, the textarea box in question updates correctly, proving that the

RE: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Mayer, Jonathan
Jessen [mailto:[EMAIL PROTECTED] Sent: 05 June 2008 13:26 To: php-general@lists.php.net Subject: Re: [PHP] Dynamic form changes without refresh Mayer, Jonathan wrote: Using some basic javascript/AJAX, I have set up a link next to each text box, which calls code that updates the database

Re: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Wolf
BOTTOM POST Mayer, Jonathan wrote: I suppose that, as well as updating the database when I click the link, I could also update a CSS toggle, but I'd really like it to be deciding whether to toggle only based on the flag in the database. So: // check database if ($toggle == 1) {

RE: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Per Jessen
Mayer, Jonathan wrote: I suppose that, as well as updating the database when I click the link, I could also update a CSS toggle, but I'd really like it to be deciding whether to toggle only based on the flag in the database. So: // check database if ($toggle == 1) {

RE: [PHP] Dynamic form changes without refresh

2008-06-05 Thread Boyd, Todd M.
-Original Message- From: Mayer, Jonathan [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2008 7:18 AM To: 'php-general@lists.php.net' Subject: [PHP] Dynamic form changes without refresh ---8--- snip Using some basic javascript/AJAX, I have set up a link next to each text box