[pmwiki-users] Workaround for fox form redirection problem

Randy Brown randy at brownragfilms.com
Sun Apr 13 14:39:22 CDT 2008


Hans,

I'm relieved to hear that I can still use section editing for anchored  
sections. I'll try revising my code based on your sample code. (My  
existing code didn't work in the new Foxedit - it showed a blank  
section, when there should have been content.)

The problem with error messages isn't that they disappear after  
redirection. The problem is that I'm redirected away from the form in  
the first place, which prohibits second chances while on the form.  
What I need is a way to stay on the form until the user either gives  
good input or cancels. Then return to the calling page.

I think the basic problem is a mismatch between our models: mine shows  
the form without the rest of the page. I've had to make my code a bit  
kludgy to get it to work. If I can somehow adapt to your model, it  
would be simpler and better than your adding new features. But I don't  
know if I can do that and still solve these two problems that come  
with your model:

1) the entire calling page is visible, so the user is not focused on  
the task; this is especially an issue when the form is far down on a  
long page - I don't want users to have to scroll down again to see the  
form. By keeping the form separate, I can include on the form whatever  
information I need to show the user, and nothing else.

2) "if" directives on the form affect the if processing of the calling  
page. By keeping the form separate, I don't have to worry about that.

In fact, I originally used a toggle-link to include the form on the  
calling page. I switched to my model because of the above.

Randy

On Apr 13, 2008, at 1:07 PM, Hans wrote:

> Sunday, April 13, 2008, 5:23:34 PM, Randy Brown wrote:
>>
> So you can use section editing for anchored sections, and thse
> sections can contain anything, even PTVs


> perhaps a special redirection option needs
> to be added. Or a different mode to open the edit form, which will
> not lead to the calling page on aborts. I have to think abouth this a
> bit. This may address your point a)
>
> Your point b) I don't really understand.


> You probably could use togglelink.php
> see http://www.pmwiki.org/wiki/Cookbook/ShowHide




More information about the pmwiki-users mailing list