While using jQuery position with "Fixed" may not be supported in caja, I have found a workaround by changing the position to absolute using css. Unfortunately, this means that the simple code
position: {my: "top", at: "top", of: $("#here")}
will not work with htmlService.
Is there a way to achieve the same effect as
position: {my: "top", at: "top", of: $("#here")}
when using htmlService?
Alternatively, I am looking for an alternative to the jQuery dialog that I could use in order to open a prompt without leaving the sidebar when someone clicks a button.