Re: Dynamic form changes without refresh
| From: | Per Jessen | Date: | Thu, 05 Jun 2008 12:25:40 +0000 |
| Subject: | Re: Dynamic form changes without refresh | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275055@lists.php.net to get a copy of this message | ||
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 database
> update has worked. However, I cannot work out how to get the textarea
> boxes to toggle the disable on/off "on the fly". I assume they would
> need to continually check the database and adjust as required.
This sounds too obvious, so I've probably misunderstood your question -
but surely it is just a matter of toggling the CSS 'display' attribute?
/Per Jessen, Zürich