I am trying to display a spinner when my page submits and a sql report is running.
I put the following into my page header text
<script type="text/javascript">
apex.widget.waitPopup();
</script>
But when I run the page the spinner is not displayed and I get an error
ReferenceError: apex is not defined
Anyone got an idea as to why it throws this error?
Thanks