[Piwik-hackers] how to set criteria before my widget is filled with data?

Matthieu Aubry matthieu.aubry at gmail.com
Fri Jul 18 18:48:04 CEST 2008


There is an example (not 100% similar though) for the feedburner plugin.
http://piwik.org/demo/index.php?module=ExamplePlugin&action=feedburner&idSite=1&period=day&date=2008-07-17

On click on submit, with 2 lines of jquery you can refresh the DIV with a
new URL.
You want to do the same and refresh the whole DIV below the menu
(id=content) with your new url.
(this is what the menu does btw)

On Fri, Jul 18, 2008 at 5:19 PM, Sergey Stoyan <stoyan at cliversoft.com>
wrote:

> Hi Matt,
>
> > It seems it's more a usability question, what are you exactly trying to
> do?
> >
> > You could have a simple text field that when submitted ajax reload the
> page
> > (with all the widgets) or the given widget, adding a new parameter to it.
> >
>
> Sorry, I'm new in ajax. What I want is to show an input form after the
> widget is picked up and before it is displayed.
> After the user filled my input form, I want the entered parameter to
> be added to the widget request url and this url submitted so that the
> widget is displayed.
> My exact question is: how can I send the updated widget request from
> within my html code that contains the input form?
> If I send it like window.open(...), I get the default page
> independently on what module and method are called in the url.
>
> Thanks,
> Sergey
>
> >
> > On Fri, Jul 18, 2008 at 3:16 PM, Sergey Stoyan <stoyan at cliversoft.com>
> > wrote:
> > >
> > > Hi all,
> > >
> > > I wrote a plugin and added it to Piwik's Menu with several widgets
> > proposed.
> > > I need now to provide a possibility for the user to enter some text
> > > criteria before the picked widget is filled with data.
> > > It can be done as a text box in the widget or beside it (the last case
> > > would be better because of this criteria is common for all widgets of
> > > my plugin.
> > >
> > > Please advice a way to do this.
> > >
> > > May it be some html tab (like provided date and period) where the user
> > > can enter data that will be saved to his session and then used within
> > > the plugin?
> > >
> > > Thank you,
> > > Sergey
> > > _______________________________________________
> > > Piwik-hackers mailing list
> > > Piwik-hackers at piwik.org
> > >
> > http://lists.piwik.org/cgi-bin/mailman/listinfo/piwik-hackers
> > >
> >
> >
> > _______________________________________________
> > Piwik-hackers mailing list
> > Piwik-hackers at piwik.org
> > http://lists.piwik.org/cgi-bin/mailman/listinfo/piwik-hackers
> >
> >
>
>
> --
> www.cliversoft.com
> _______________________________________________
> Piwik-hackers mailing list
> Piwik-hackers at piwik.org
> http://lists.piwik.org/cgi-bin/mailman/listinfo/piwik-hackers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.piwik.org/pipermail/piwik-hackers/attachments/20080718/d853c687/attachment-0001.htm 


More information about the Piwik-hackers mailing list