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
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
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
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
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)
{
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)
{
-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
7 matches
Mail list logo