Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have put the following code in the preview button:
js: E.prvAjax(); MathJax.Hub.Typeset();
The second processes the page on the client's computer. It does not work as expected, as the client-side processing takes place directly after the loading message is shown, and not after it is completed. Any workaround?
Comments
Comment #1
ufku CreditAttribution: ufku commentedA php button, starting with
php:
, allows you to perform server-side processing. You should not try it unless you are familiar with PHP.Comment #2
hameerabbasi CreditAttribution: hameerabbasi commentedActually, I intend to use the default
E.prvAjax();
function, but I want to useMathJax.Hub.Typeset();
(which performs client-side processing with no server interaction) AFTER the preview has been completed. If I do what I described, it just processes the "loading..." text, instead of the proper server response.Comment #3
hameerabbasi CreditAttribution: hameerabbasi commentedBump. Please help.
Comment #3.0
hameerabbasi CreditAttribution: hameerabbasi commentedFurther explanation of issue.