On Dec 10, 6:44 am, Vince <[EMAIL PROTECTED]> wrote: > Ok, I try to explain it again. > > I put <a name="middle"><h2>Title</h2></a> in the middle of my > webpage myplugin.html.
What you want is that your form has a target of #middle - like <form action="#middle"..... > Update the form in your template. On submit this will update the browser address har, and when the new page is loaded the browser will forward to this location. > But when I process the information of my form with the function "def > process_request(self, req)" I have to specify the return: return > 'myplugin.html', data, None " > > If I put 'myplugin.html#middle' I have this internal Trac error : > 'TemplateNotFound: Template " myplugin.html#middle" not found'. This return value is only template name. See how the Trac source does this - wiki edit is a good example as it for instance targets #preview when you preview edits. And, as Alec points out; when you modify something following a post in a form, do use req.redirect(url_to_same_page) to load a fresh result of the page - if not you can get into all sorts of problems as people hit back in their browser etc. :::simon https://www.coderesort.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
