Using ajax to process slickquiz shortcodes
-
Because I am trying to cram 30 quizzes on a page, I expect that my page will start to load slowly. I haven’t actually written 30 quizzes yet so I am not certain it will be a problem, but I like to be proactive.
My plan is to use ajax to process the shortcode and generate the HTML. I have coded the ajax and it is working fine, but I am running into the same problem that I did with this previous issue. Ie, I am getting the HTML shell, but not the quiz. For the previous issue I had to install a hidden quiz so that the jscript would preload into the page. But that did not work in this case. I have a feeling the problem has something to do with ajax processing that is different from generic page processing.
Do you have any ideas/suggestions?
Come to think of it, with regards to the previous issue, I don’t understand why having jscript loaded on the page makes any difference when the sever is executing PHP to build the page. Is there some sort of jscript/PHP interaction that happens when the HTML is being assembled?
- The topic ‘Using ajax to process slickquiz shortcodes’ is closed to new replies.