Parsons Problems Non-Responsive

12 views
Skip to first unread message

Adam Gilbert

unread,
Sep 4, 2022, 3:52:03 PM9/4/22
to PreTeXt support
Hi Everyone,

I'm trying to add a few Parsons Problems to a draft text I am working on. Although PreTeXt has recognized that I am trying to build a Parsons problem, the drag and drop blocks are non-responsive. I'm not sure what I am doing incorrectly and would be really appreciative of another set of eyes.

I'm using PreTeXt version 1.0.3 and the PreTeXt CLI to build the html output. The output is being hosted on GitHub, here. Below is a simple example I was using for troubleshooting, but I haven't made any progress.

<?xml version="1.0" encoding="UTF-8"?>

<section xml:id="reprex" xmlns:xi="http://www.w3.org/2001/XInclude">
  <title>Reproducible Examples for Troubleshooting</title>

  <exercise label="Decimal-to-Binary-reprex"><title>Write Pseudocode 1</title>
    <statement xml:id="pseudocode-parsons-dec-to-bin-reprex"><p>Put the blocks in order.</p>
    </statement>
    <blocks>
        <block order="1"><p>First</p></block>
        <block order="2"><p>Second</p></block>
        <block order="3"><p>Third</p></block>
    </blocks>
  </exercise>
   
</section>

I found this working example and tried pasting that PreTeXt code directly into my section, but I still ended up with blocks that couldn't be dragged into the yellow arrange here area. Is it the case that Parsons Problems are only available on a Runestone Server?

Thanks everyone,
--Adam

Oscar Levin

unread,
Sep 4, 2022, 5:26:08 PM9/4/22
to pretext...@googlegroups.com
When I went to the linked page on my Android phone with chrome, they were working as expected.  Not sure if that's helpful, but it suggests that your code is fine.

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/cb17f790-d568-414a-bbe1-e4ddde62f3ccn%40googlegroups.com.

David Farmer

unread,
Sep 4, 2022, 5:40:32 PM9/4/22
to pretext...@googlegroups.com

Does not work for me in Firefox or Chrome on my MacBook Pro.

Can you make the HTML so that the Checkpoint is not in a knowl?
Usually complicated content in a knowl needs special handling,
and I don't recall adding that for Parsons problems.

Not sure why it worked for Oscar.

David
> To view this discussion on the web visithttps://groups.google.com/d/msgid/pretext-support/CAOU9BaWcSd-kwDSFZ7tVVaFz_XrMx%2B0X6Noj8zW%2BP%2B%2BZGdb%3D5w%40mail.gmail.c
> om.
>
>

Oscar Levin

unread,
Sep 4, 2022, 5:47:53 PM9/4/22
to pretext...@googlegroups.com
I tried again after doing a hard refresh in my browser, and now it doesn't work.  I must have had some stale JavaScript cached....

Adam Gilbert

unread,
Sep 4, 2022, 8:52:10 PM9/4/22
to PreTeXt support
Setting the exercise-inline default @knowl attribute to "no" in the publication file worked perfectly. Thank you both -- this was very helpful.

--Adam

David Farmer

unread,
Sep 4, 2022, 9:18:14 PM9/4/22
to PreTeXt support
Reply all
Reply to author
Forward
0 new messages