×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: how to reload ccomment after ajax request

how to reload ccomment after ajax request 8 years 2 months ago #35049

  • ruggero
  • ruggero's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
hello
I'm developing a fullajaxed site and I've a problem with CComment, that doesn't reload after a "#content" ajax request.
It's a tipical issue when using ajax and usually I find a solution, but with CComment I'm not able.
Some help, please?
Thanks
Ruggero

how to reload ccomment after ajax request 8 years 2 months ago #35068

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Look in the template code: components\com_comment\templates\default\default.php

in the windowAddEvent we do commentsCollection.fetch(false, params);

You'll have to do the same, but you'll have to export the commentscollection as it is not accessible outside

how to reload ccomment after ajax request 8 years 1 month ago #35121

  • ruggero
  • ruggero's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
:( I I cannot figure what you mean with "export the commentscollection", sorry. I think I'm gonna realize a simple "comments system" by myself.
Thank you very much for your kind reply!
All the best
Ruggero
  • Page:
  • 1
Time to create page: 0.095 seconds