Re: AJAX & PHP
| From: | Mikey | Date: | Wed, 03 Aug 2005 19:43:16 +0000 |
| Subject: | Re: AJAX & PHP | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-219955@lists.php.net to get a copy of this message | ||
Graham Anderson wrote:
is there an example of this somewhere ? Google does not come up with much. I have seen simple AJAX examples...but none related to graphing classes. I am a bit new at combining php with javascript with regards to image creation. basically, I want the user to enter variables and have a graph generated without a full page reload on the same page... kind of an interactive graphing web tool. any examples of this sort are appreciated :) g On Aug 3, 2005, at 9:36 AM, Mikey wrote: Graham Anderson wrote:<img src="/images/graph.php" name="img"> and you have js like // some event that triggers the script document.images['img'].location = "/images/updated_graph.php"; And php makes your graph. Using whatever classes you choose. HTH, Mikeynot a whole lot of info on the subject for working with graph classes :( at least at this point gSurely it would be much simpler to just use have javascript to set a placed image to a new (or the same) location - this image is then generated by JPGraph et al with no modification to code. I have been using this technique for years to make server calls without page refreshing. (Well, that or an invisible frame/iframe/layer) HTH, Mikey ok, so you have html like