Need Jquery ui dialog "window" to scroll to the top when a form inside an iframe is submitted
I've probably overcomplicated things, but being relatively new to the whole process, I didn't know what else to do. I have an order form inside an iframe, which is inside a Jquery ui dialog lightbox. It all works, except for one problem; when the form is submitted and it redirects to either the thank-you or error page, it's scrolled at the bottom.

I've tried using onload="window.parent.scroll(0,0);" in the <body> tags of the thank-you and error pages, but that didn't do anything.

Also tried:

    <script type="text/javascript">
		$("#orderform").onsubmit(function() {
		 $("#dialog").window.scrollTo(0,0);
         alert('triggered');
		});
	</script>

I've placed the script everywhere I could think of, the index page, inside the <div> for the dialog, inside the iframe, in the form's page, never even got an alert.

The test server that the site is currently hosted on is http://kinnill.com/dev/bluehydrangea/

P.S. This is my first question asked on here, if I missed anything, let me know. Thanks!
Need Jquery ui dialog "window" to scroll to the top when a form inside an iframe is submitted
===

I've probably overcomplicated things, but being relatively new to the whole process, I didn't know what else to do. I have an order form inside an iframe, which is inside a Jquery ui dialog lightbox. It all works, except for one problem; when the form is submitted and it redirects to either the thank-you or error page, it's scrolled at the bottom.

I've tried using onload="window.parent.scroll(0,0);" in the <body> tags of the thank-you and error pages, but that didn't do anything.

Also tried:

    <script type="text/javascript">
		$("#orderform").onsubmit(function() {
		 $("#dialog").window.scrollTo(0,0);
         alert('triggered');
		});
	</script>

I've placed the script everywhere I could think of, the index page, inside the <div> for the dialog, inside the iframe, in the form's page, never even got an alert.

The test server that the site is currently hosted on is http://kinnill.com/dev/bluehydrangea/

P.S. This is my first question asked on here, if I missed anything, let me know. Thanks!