How do I from within an advanced HTML component get a button or link to change a state within my prototype?
Right now, I have munged this together from stealing the html generated for a rich text component changing a state, but it isn't working:
I put this in the head:
<script>document.domain = "protoshare.com";</script>
and grabbed this from generated code from using the rich text change state component functionality...
<a class="button" onclick="window.top.site9.PageStateMgr.setAllStateValuesFromSource(this.href.substring(this.href.indexOf('#ps=')+4));return false; this.blur();" href="#"><span>Generate Code</span></a>
Obviously, something is with the setAllStateValuesFromSource function...