Wednesday, January 1, 2014

Re: Ajax update of JpGraph in CakePHP

Beautiful, no need to use ajax with this simple, yet elegant solution. Maybe? Hell yeah!





On Saturday, January 12, 2008 4:44:33 AM UTC-5, majna wrote:
<span id="myimage"><img id="some_id" src="/cake/mycontroller/graph" />
</sapn>

maybe?

On Jan 12, 12:24 am, xerazur <thomas.gubelm...@gmail.com> wrote:
> Hi everyone,
>
> I am currently working on a kind of reporting tool that generates a
> JpGraph chart. This works perfect, but now I want to update the chart
> with an ajax request started from a select element to filter the
> displayed content.
>
> I attached the ajax observer with the following line of code in my
> view report.thtml:
>
> $options = array('url' => 'graph','update' => 'myimage');
> echo $ajax->observeField('selecttag',$options);
>
> <img id="myimage" src="/cake/mycontroller/graph" />
>
> When I now update the select tag, just nothing happens. Updating other
> content than the image with the select tag works perfect , so
> controller and the ajax update procedure should work.
>
> I use CakePHP 1.1.x, JpGraph is called with the normal $graph-
>
> >Stroke() method.
>
> Anyone an idea about a solution for this problem? Thanks!
>
> Tom

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: