Skip to Content Skip to Menu

ajax plugin

  • aduui
  • aduui
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
17 years 7 months ago #36297 by aduui
ajax plugin was created by aduui
hi,

i'm trying to get my plugin to refresh without having to reload the page.
what uri do i need to use to get cb to only output a single plugin?

$mosConfig_live_site.'/index2.php?option=com_comprofiler&task=userProfile&tab=mytab&no_html=1
outputs the whole component

thanks

Please Log in or Create an account to join the conversation.

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 7 months ago #36305 by mikko
Replied by mikko on topic Re:ajax plugin
You need to code a custom php file which calls the plugin. It is not possible to get it from a single uri.

mikko

Please Log in or Create an account to join the conversation.

  • aduui
  • aduui
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
17 years 7 months ago #36316 by aduui
Replied by aduui on topic Re:ajax plugin
thanks,

wouldn't this be a security problem?
it would be a lot easier if there was something like task=showplugin or something..
will anything like this be implemented in the next version?

Please Log in or Create an account to join the conversation.

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 6 months ago #36347 by mikko
Replied by mikko on topic Re:ajax plugin
aduui wrote:

thanks,

wouldn't this be a security problem?

It can be coded in a safe way. You should look at some other ajax compatible joomla things to get an example.

it would be a lot easier if there was something like task=showplugin or something..
will anything like this be implemented in the next version?


I do not think that this will be implemented.

mikko

Please Log in or Create an account to join the conversation.

  • aduui
  • aduui
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
17 years 6 months ago #36373 by aduui
Replied by aduui on topic Re:ajax plugin
Ok i'll try that.
Seems more complicated than it needs to be..
How would I access plugin parameters etc.?
If we could get cb to output only one plugin by uri, it would be really easy to update just the plugin without reloading the page. This would be useful for all kinds of plugins.
Joomla does it as well and it probably wouldn't hard to imeplement.:whistle:

Please Log in or Create an account to join the conversation.

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 6 months ago #36374 by mikko
Replied by mikko on topic Re:ajax plugin
It might bee usefull for you to take alook at my tabwrapper module. It shows how to load CB tabs outside CB.

You can get it at www.mikkosoft.fi/downloads/

mikko

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum