Tags:
create new tag
view all tags

Question

I'm trying to build a TWiki application for a workgroup, to easily share interesting news items. Very preferably, these users should not have to go into edit mode at all! I built something which works, but there's one problem:

I'm using a html form to catch the title, content, news type and end date. On submit the page is instantly saved, and some comment tags are added to the page.

Unfortunately, the textarea in the form for the content cannot hold large amounts of text.

Is there a better way of doing this?

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RH9
Web server: apache
Perl version: 5.8.5
Client OS: winxp
Web Browser: ie6
Categories: Forms, Browser Issue

-- JosMaccabiani - 01 May 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

It looks like you run into an HTML form "get" vs "post" issue. For the former one, the browser places the form data into URL parameters. There is a limit to the number of chars that can be in a URL. Use the "post" method to get around this limitation, it places the form data within the message body.

-- PeterThoeny - 07 May 2006

I ran into this same issue recently and added method="post" to my HTML form and it worked nicely. But now I'm wondering about problems and benefits of the two methods within the context of TWiki. I didn't find much discussion about this topic on TWiki.org and googling the topic produced lots of results but not much that I could translate to my experience with TWiki. Anyone willing to clarify further why one might choose one method over the other in designing HTML form applications in TWiki?

-- LynnwoodBrown - 07 May 2006

A good opportunity to create a HtmlFormGetVsPostMethod how-to to document/discuss this. Thinking about good navigation, link to it from the TWiki.TWikiApplications supplemental documentation entry point.

-- PeterThoeny - 07 May 2006

Peter, thanks a lot, that was exactly the problem! It all works well now.

-- JosMaccabiani - 07 May 2006

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2006-05-07 - JosMaccabiani
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.