Page Reload Problem
Hi all,
I have a form which is long enough that it takes up more than a single screen. At the bottom of that form is a button which, when clicked, adds a QPanel to the end of the form through a QServerAction where the user can submit more information. One minor annoyance is that this takes the user to the top of the form instead of leaving them in the location that the new QPanel is spawned. I had tried to put an anchor <a href="#goHereOnClick">, and then use QApplication::Redirect('#goHereOnClick') after spawning the new QPanel, but this did not work. Has anyone else run into something similar and has advice as to how to get around this?

Why not just use an ajax action?
Hi Vexed,
Thanks for the quick reply. I'm using a QServerAction since clicking the button creates a new QPanel as part of its code; it's not declared in Form_create. The user may need to create multiple instances of this panel, so in effect I'm creating Panel[0], Panel[1], etc. I don't believe that I can use an Ajax action in this case. Or can I?
You can, the trick is that in order for new controls to show up they must be a child of an existing control. So for example, a panel full of these panels could have AutoRenderChildren set to true, so that whenever you created a new one with that parent, it would show up on the page. Even using AJAX submissions.