- Posts: 3
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:complete',function() { $('#elementToBeLoaded').load('https://example.com #remoteContentToLoad'); }); </script>
<!-- The static text --> <p>This is some static question text...</p> <!-- A container for the dynamic text --> <div id="elementToBeLoaded"></div> <!-- A script to insert the dynamic text --> <script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:complete',function() { $('#elementToBeLoaded').load('https://example.com #remoteContentToLoad'); }); </script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Dynamic Text</title> </head> <body> <div id="remoteContentToLoad"> This is the dynamic text that is to be loaded into the survey... </div> </body> </html>