|
Posted by Mikey on 08/03/05 22:43
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:
>
>> not a whole lot of info on the subject for working with graph classes :(
>> at least at this point
>>
>>
>> g
>>
> Surely 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
<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,
Mikey
Navigation:
[Reply to this message]
|