Skip to Content Skip to Menu

ajax user search list

  • noedesign
  • noedesign
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
9 years 7 months ago #260674 by noedesign
ajax user search list was created by noedesign
Hi,

Do you think it would be easy to make an Ajax user list with the users search engine ? Does your default.php in templates folder allow to do it ?

On the top of the page, we have the search fields which would send GET parameters to the bottom list in Ajax.
The list would refresh according to the new parameters ( the whole list or only the user blocks, only user blocks is better )

I see that on default.php, you have the following functions in a class which looks like the different blocks of CB.

protected function _renderHead( ) <- looks like this is the search fields
protected function _renderBody( ) <- looks like this is the "frame" of the user list
private function _getUserListCell( $cellFields ) <- looks like this is the user cells

The goal is to stay on the same page without reloading the whole page at every submit and maybe use the same GET parameters to display a map with the users location ( which I am working on ... quite painfully to be honest :-) )

Thanks

P.S : I am not very familiar with Joomla yet...

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #260736 by krileon
Replied by krileon on topic ajax user search list
For something to properly work with Ajax it really needs to be designed for it from the beginning. In this case it is not. With that said you could hook into the form, post it with ajax, append &tmpl=component to the form action when sending as ajax, then replace the existing forms HTML with that of the ajax response. I've no idea if that'll work perfectly well though as it's not designed for ajax. The jQuery can be added using CB Auto Actions and its Code action as well.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum