Hi,
thanks for your question, and sorry for the trouble.
I know what you mean. This is basically the result of how JavaScript works in web browsers. It’s a stateless language, so that the browser will not remember the state of the JavaScript when it returns to a page.
Now, the DataTables JS library has a feature that might help here. With that, it will basically save its state and then return to that state when the page is reloaded.
The technical details for this are at https://datatables.net/reference/option/stateSave
To use this on your table, please try adding this to the “Custom Commands” on the “Edit” screen of the table:
"stateSave": true
Unfortunately, I can not give a guarantee that this will work, so that you might have to look for other solutions in that case, for example by not showing the image in the same tab, but in a new browser window.
Regards,
Tobias
Hello Tobias
thanks for fast answer. I have try but nothing.
Is there any other way to put picture in cell and on some way get pop-up for this pictures.
Thanks
Hello Tobias
I resolve with bStateSave: true
Thanks for help
Hi,
That should be possible, but you will need an extra plugin for this, like something with gallery or Thickbox/Lightbox functionality. TablePress itself can not do this, as it’s only a table plugin and not an image handling plugin.
Regards,
Tobias
Hello again
just short question since I let say find solution to my problem.
I add command (“bStateSave”: true), but you send me (“StateSave”: true) that’s OK,
my question is::
what is correct to write (“bStateSave”: true) with quotation mark “” or without just (bStateSave: true).
Thanks
Hi,
ah, thanks for the update! That’s good to hear!
The quotation marks shouldn’t matter, although I would add them as that’s cleaner JavaScript (and valid JSON).
But in your case, the bStateSave seems to have been more important (compared to just stateSave). This indicates that you are not yet using TablePress 1.5.1, am I right?
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
OK, thanks.
Yes, I use old version, but work just fine to me .
Btw, your plugin is very good, help me a lot in my work so from 1 to 5 I give you clean 5.
Thanks
Hi,
thanks, I really appreciate that! 🙂
Even if everything works, I suggest to always use the latest versions of WordPress and TablePress. Only that will guarantee that everything works flawlessly in the future!
Best wishes,
Tobias
Yes, good suggestion I also try that but I use old version of WP and when I try to update your plugin I get error that my WP version is to old. And now how to tell you ” ich habe keine lust” to make any upgrade of my page all work just fine and my motto is if work don’t touch.
Anyway thanks a lot.
mfg
Hi,
well, then you should update WordPress 🙂
“Don’t touch it, if it works” is ok, but you should be aware that you might have more work to do in the future then 🙂
Best wishes,
Tobias