jQuery position uses "Fixed" which is not supported in caja, so that nice simple position: {my: "top", at: "top", of: $("#here")}
will not work with htmlService. So to move my widget I have to use css and change the position to absolute.
Is there any way I can get the same effect as position: {my: "top", at: "top", of: $("#here")}
using htmlService?
or is there an alternative to the jQuery dialog that I could use? I am tying to open up a simple prompt when someone clicks a button without leaving the sidebar.
I see that you want to have a dialog box when you click on a button. For this you can refer to these documentations below:
https://developers.google.com/apps-script/guides/ui-service#CustomHTML
https://developers.google.com/apps-script/guides/dialogs#alert_dialogs
Hope that helps!