Problems with AJAX loaded pagination
-
The Plugin is great, but if you use it to display Code in a AJAX reloaded paginated library, the Editor breaks.
Only after full page reload the editor is correctly rendering it’s functions (such as the copy button, syntax highlighting etc)
It seems you use JS and to not take into consideration the on method
Just a example from a toggle drop down JS:
If you use:
$('div.show-hide').click(function( e ) {
the drop down event will only apply on full page reload but the even tint delegated when AJAX reload happens.In this case you need to use
$(document).on('click','div.show-hide',function(e){Please can you point me to the code that is responsible for the rendering of the editor on front end (it must be JS) so I can fix, or can you fix and update?
Just try to use your plugin with AJAX loaded paginated pages/sites whatever.
I appreciate
I add two links to screenshots so you can better understand how it should be, and how it is instead.
OK – before AJAX is used
NOK – after AJAX is used
The topic ‘Problems with AJAX loaded pagination’ is closed to new replies.