The attribute
data-doenet-message-parent="true"
is now being set on
div.doenetml-applet
for a PreTeXt build that is meant to be hosted on Runestone. In the future,
maybe this will only happen if some sort of flag is set for the #interactive,
but right now it *always* happens, since this is still in a testing phase.
I think Brad knows how to test from here, but if there needs to be more on the
PreTeXt side, just let me know. "Regular" HTML builds are not affected.
Rob
On 11/17/25 14:35, 'Duane Nykamp' via PreTeXt development wrote:
> Brad,
>
> I released DoenetML 0.7.0-beta12 which makes it easier to send messages to the
> parent of an iframe.
>
> The behavior is controlled by a new flag `messageParent`. The flag is `false` by
> default. If you set the flag to `true`, then it will post messages to
> `window.parent` if it exists.
>
> To set the `messageParent` flag, you can modify the `<div class="doenetml-
> applet" >` in `pretext-html.xsl` to include the attribute `data-doenet-message-
> parent="true"`. When this is set, you should be able to receive the SPLICE
> events in the iframe parent.
>
> A further step will be to tell Doenet to send the `SPLICE.getState` message, but
> only when in Runestone. I changed the default of the `allowLoadState` back to
> `false`, so it doesn't attempt to get the state and then timeout when receiving
> no response, as you experienced. When you know that Runestone is listening to
> `SPLICE.getState`, you can add the attribute `data-doenet-allow-load-
> state="true"` to `<div class="doenetml-applet" >`.
>
> Duane
>
>
> On Wed, Nov 12, 2025 at 5:37 PM Bradley Miller <br...@runestone.academy> wrote:
>
> That seems to have moved us in the wrong direction. I can see that there
> are to iframe resize messages then a long pause, then
>
> Screenshot 2025-11-12 at 3.27.12 PM.png
>
> One might think/assume that this was a timeout waiting for a SPLICE.getState
> message but I’m not getting that message.
>
> The console does show one troubling error related to this:
>
> Uncaught (in promise) TypeError: can't access property "defaultPageReady",
> MathJax.startup is undefined
> pageReadyhttps://runestone.academy/ns/books/published/PTXSB/interactive-
> doenetml-example-if.html <
https://runestone.academy/ns/books/published/
> Blog:
http://reputablejournal.com <
http://reputablejournal.com>
>
> Set up a time to meet <
https://fantastical.app/bonelake-Gj2i/meet-with-
> brad> with me.
>
>
>> On Nov 12, 2025, at 10:15 AM, 'Duane Nykamp' via PreTeXt development
>> <
prete...@googlegroups.com <mailto:
prete...@googlegroups.com>> wrote:
>>
>> I released DoenetML 0.7.0-beta9, which changes the default save/load flags
>> to `true`. Since PreTeXt grabs `@latest`, it should automatically start
>> sending SPLICE events. (Fingers crossed.)
>>
>> On Tuesday, November 11, 2025 at 5:07:31 PM UTC-6 br...@runestone.academy
>> wrote:
>>
>> Thanks Rob,
>>
>> Duane and I figured out why I was not getting splice messages. The
>> default is not to send them. I believe the solution is going to be
>> for Duane to change the defaults on his side, as the splice events
>> will simply be ignored in a non runestone setting.
>>
>> Hopefully we can fully test soon. Just waiting for the go ahead from
>> Duane.
>>
>>
>> Brad
>>
>> Brad Miller
>> Professor Emeritus, Luther College
>> Founder, Runestone Academy LTD
>> Blog:
http://reputablejournal.com <
http://reputablejournal.com/>
>>
>> Set up a time to meet <
https://fantastical.app/bonelake-Gj2i/meet-
>> with-brad> with me.
>>
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "PreTeXt development" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/
> pretext-dev/T6X8q-fT6eA/unsubscribe <
https://groups.google.com/d/topic/
> pretext-dev/T6X8q-fT6eA/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to pretext-
>
dev+uns...@googlegroups.com <mailto:
pretext-
>
dev+uns...@googlegroups.com>.
> dev/76F3BB0B-EBFC-44EC-B4BC-1C3B39B02455%40runestone.academy <https://
>
groups.google.com/d/msgid/pretext-dev/76F3BB0B-EBFC-44EC-
> B4BC-1C3B39B02455%40runestone.academy?utm_medium=email&utm_source=footer>.
>
>
>
> --
> Duane Nykamp
> School of Mathematics
> University of Minnesota
> 202 Vincent Hall
> 206 Church St. SE
> Minneapolis, MN 55455
>
www.math.umn.edu/~nykamp <
http://www.math.umn.edu/~nykamp>
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> CANX2AUZ7XZzTbzZD2pL2Fa6fXwHMUcJ7GeYMU_HY8PRmtECdkw%
40mail.gmail.com <https://
>
groups.google.com/d/msgid/pretext-dev/
> CANX2AUZ7XZzTbzZD2pL2Fa6fXwHMUcJ7GeYMU_HY8PRmtECdkw%
40mail.gmail.com?
> utm_medium=email&utm_source=footer>.