Commit Graph

15 Commits

Author SHA1 Message Date
John Mark Bell c17dc661ea [project @ 2005-04-16 05:09:32 by jmb]
Split out UTF-8 handling functions.
Submit URL-encoded forms in sensible encoding:
  * First entry in accept-charset list, if present
  * Document encoding, otherwise
  We may want to explicitly look for UTF-8, to save converting.
Convert cnv_str_local_enc/cnv_local_enc_str to use iconv (they're now veneers for utf8_[to/from]_enc).
Provide mechanism for looking up local system charset (derived from system alphabet, under RISC OS)

svn path=/import/netsurf/; revision=1647
2005-04-16 05:09:33 +00:00
James Bursa 2920bca14a [project @ 2005-04-09 09:47:36 by bursa]
Move HTML contents almost fully over to talloc(), simplifying code. Improvements to title attributes, broken forms, cellpadding. Reorder functions in box_construct.c.

svn path=/import/netsurf/; revision=1608
2005-04-09 09:47:37 +00:00
James Bursa 9995dbad57 [project @ 2004-12-12 21:49:23 by bursa]
Add form_new() and form_add_option().

svn path=/import/netsurf/; revision=1400
2004-12-12 21:51:01 +00:00
James Bursa da5d07f0be [project @ 2004-10-22 20:58:11 by bursa]
Fix form textarea scrolling. The scrollbar now works properly.

svn path=/import/netsurf/; revision=1334
2004-10-22 20:58:11 +00:00
James Bursa 8337acfc78 [project @ 2004-08-08 19:13:40 by bursa]
Fix form submitting with an empty file upload. Update form_textarea_value(). Purge xcalloc() etc from form.c and handle memory exhaustion.

svn path=/import/netsurf/; revision=1195
2004-08-08 19:13:40 +00:00
John Tytgat c93b54b07c [project @ 2004-07-19 20:40:11 by joty]
form.h (struct form_control): renamed caret_char_offset to caret_box_offset; Added caret_form_offset & length.
form.c: initialise new entries in struct form_control; form_successful_controls() : code reshuffling to improve readibility.
box.h: TABing.
box.c (box_input): init struct form_control::length.
browser.c (browser_window_input_callback): UTF-8 support. Text area code needs similar changes.

svn path=/import/netsurf/; revision=1117
2004-07-19 20:40:11 +00:00
James Bursa 9bd3eadbe6 [project @ 2004-07-19 14:31:31 by bursa]
Update and simplify textarea code. Now uses BOX_BR instead of more than one inline container. Prepare for use of UTF-8 in textareas and inputs.

svn path=/import/netsurf/; revision=1104
2004-07-19 14:31:31 +00:00
John Tytgat e773536c97 [project @ 2004-06-17 21:41:11 by joty]
Added comment on struct form_option::text.

svn path=/import/netsurf/; revision=977
2004-06-17 21:41:11 +00:00
James Bursa 4a500f5614 [project @ 2004-05-21 23:42:26 by bursa]
Fix and clean code for radio and checkbox inputs.

svn path=/import/netsurf/; revision=884
2004-05-21 23:42:26 +00:00
James Bursa 9412dfeaed [project @ 2004-05-21 10:25:42 by bursa]
Add form_new_control() and form_free_control().

svn path=/import/netsurf/; revision=878
2004-05-21 10:25:42 +00:00
John Mark Bell 9de746e0a0 [project @ 2004-04-08 23:46:41 by jmb]
Improve keypress handling in form text boxes.
Note: Not yet implemented for textareas as these need more work anyway.

svn path=/import/netsurf/; revision=740
2004-04-08 23:46:41 +00:00
John Mark Bell 3aeafecd7b [project @ 2004-03-21 20:07:14 by jmb]
<input type="file" support>
Broken in places.

svn path=/import/netsurf/; revision=645
2004-03-21 20:07:14 +00:00
John Mark Bell 0dab93fe76 [project @ 2004-01-20 19:08:34 by jmb]
Allow toggling of POST support.
Add new toolbar icon numbers to riscos/gui.h

svn path=/import/netsurf/; revision=490
2004-01-20 19:08:34 +00:00
James Bursa 28f974f00f [project @ 2003-10-25 14:13:49 by bursa]
URL encoded POST support.

svn path=/import/netsurf/; revision=375
2003-10-25 14:13:49 +00:00
James Bursa f1375fe19d [project @ 2003-10-25 00:35:49 by bursa]
Split out and clean up form submit code.

svn path=/import/netsurf/; revision=374
2003-10-25 00:35:49 +00:00