Here is an actual example of what can go wrong if you don't use an iframe.
Alex and I (mostly Alex) got the GeoGebra calculator working. Yay!
But the GeoGebra calculator comes in several flavors. Alex tried
using another flavor, and there were problems. It turned out that
the new version had a div with class="toolbar". Well, so
does PreTeXt HTML, so the css we use to style our toolbar was also
styling (incorrectly) the .toolbar in the calculator.
Once identified, the problem was not too hard to fix, because I could
adjust the selectors to apply to our .toolbar and not theirs.
But if there had been two different outside applications on the page,
and they conflicted, then it could be difficult to find a non-iframe
solution.
It is possible that we could adopt a similar approach to how we
handle LaTeX packages: evaluate them carefully in numerous combinations
so that we know we are only using compatible ones. (This is a serious
problem which you will encounter quickly if you ever try to use
several packages.) Javascript plug-ins change faster than LaTeX
packages, so the situation is not exactly parallel.
The real purpose of this email is to bring attention to the hard
work involved in trying to ensure that everything in PreTeXt actually
works properly and does what it is supposed to do. What seems like
a simple change, might not be.
Regards,
David
ps. I favor the non-iframe solution if we can make it work,
because then we can style the included content. The iframe blocks both
directions: it does not have bad side-effects on the main content,
but you also cannot easily control how it looks.
> To view this discussion on the web visithttps://
groups.google.com/d/msgid/pretext-support/CA%2BR-jrcfDYKn4SXZ3YQNbSqDFuqhU6PLB1LJij0QAiB9qgE
> bcg%
40mail.gmail.com.