Commit Graph

31 Commits

Author SHA1 Message Date
James Bursa 1481f4b7f0 [project @ 2005-08-31 20:29:11 by bursa]
Fix submitting of forms with more than one image button.

svn path=/import/netsurf/; revision=1856
2005-08-31 20:29:11 +00:00
James Bursa 3b4baa8008 [project @ 2005-08-04 22:51:42 by bursa]
Fix strndup() compiler warnings.

svn path=/import/netsurf/; revision=1840
2005-08-04 22:51:42 +00:00
John Mark Bell b37420136c [project @ 2005-07-18 14:22:26 by jmb]
Fix erroneous attempt to uppercase address of character instead of the character itself

svn path=/import/netsurf/; revision=1802
2005-07-18 14:22:26 +00:00
John Mark Bell 5817f82ba8 [project @ 2005-06-26 22:18:37 by jmb]
Improve clarity of use of utf8_to_enc.
Remove use of curl_escape - url_escape does similar things, just better.

svn path=/import/netsurf/; revision=1766
2005-06-26 22:18:37 +00:00
John Mark Bell 3286c99dd5 [project @ 2005-06-26 01:55:20 by jmb]
Move acceptable character set determination to form submission time, rather thanat box tree creation time.
Use UTF-8 encoding, if specified, else use first specified encoding.
Improve use of utf8_to_enc - falling back to document encoding then 8859-1 where appropriate.

svn path=/import/netsurf/; revision=1765
2005-06-26 01:55:20 +00:00
John Mark Bell 0bcfdbeb50 [project @ 2005-06-07 21:29:26 by jmb]
Lose cnv_str_local_enc and friends.
UTF-8 conversion functions now return an enumerated type allowing for fallbacks, if appropriate.

svn path=/import/netsurf/; revision=1744
2005-06-07 21:29:26 +00:00
John Mark Bell b2918fc57b [project @ 2005-05-25 23:06:26 by jmb]
Fix textarea submission

svn path=/import/netsurf/; revision=1740
2005-05-25 23:06:26 +00:00
John Mark Bell 642a3d62f2 [project @ 2005-05-16 00:55:43 by jmb]
Fix issue with erroneously appending a space to the end of every line of textarea input - should we actually be examining box->space here, instead?

svn path=/import/netsurf/; revision=1724
2005-05-16 00:55:43 +00:00
John Mark Bell 6257ee1fec [project @ 2005-05-11 02:03:15 by jmb]
Correctly handle submitting forms via pressing return in a text input (the first declared submit button should be used)

svn path=/import/netsurf/; revision=1719
2005-05-11 02:03:15 +00:00
Richard Wilson 303f214df7 [project @ 2005-05-11 01:34:41 by rjw]
Fix for default checkbox submit value.

svn path=/import/netsurf/; revision=1718
2005-05-11 01:34:41 +00:00
John Mark Bell 352e18ac37 [project @ 2005-04-16 19:34:30 by jmb]
Don't append a space to the end of textarea input

svn path=/import/netsurf/; revision=1654
2005-04-16 19:34:30 +00:00
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
John Mark Bell bd17f8b9d1 [project @ 2004-10-09 19:14:26 by jmb]
Work around issue with selected radio buttons/checkboxes having no current value

svn path=/import/netsurf/; revision=1308
2004-10-09 19:14:26 +00:00
John Mark Bell d1eb18f62e [project @ 2004-08-18 01:45:29 by jmb]
Restrict last change to hidden inputs only - breaks sf.net bug tracker otherwise

svn path=/import/netsurf/; revision=1243
2004-08-18 01:45:29 +00:00
John Mark Bell 4ff7d738bc [project @ 2004-08-18 01:36:39 by jmb]
Fix issue with hidden inputs having no value property
Log on memory error to aid debugging

svn path=/import/netsurf/; revision=1242
2004-08-18 01:36:39 +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 4565574eaa [project @ 2004-06-02 21:14:40 by bursa]
Revert accidental checkin.

svn path=/import/netsurf/; revision=916
2004-06-02 21:16:48 +00:00
James Bursa ed4c1ad391 [project @ 2004-06-02 21:09:14 by bursa]
Update calls to layout_document() for error handling.

svn path=/import/netsurf/; revision=915
2004-06-02 21:09:14 +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
James Bursa 8da6079f6f [project @ 2004-05-03 22:05:40 by bursa]
Implement dragging files into <input type="file" ...>.

svn path=/import/netsurf/; revision=821
2004-05-03 22:05:40 +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
James Bursa e4269c8903 [project @ 2004-04-01 18:29:42 by bursa]
Fix bug with submission of forms with no successful controls.

svn path=/import/netsurf/; revision=696
2004-04-01 18:29:42 +00:00
John Mark Bell 7e922c290f [project @ 2004-03-21 21:32:15 by jmb]
Fix for SparkFS causing problems with uploading zip files.
Map filetypes to mimetype properly.

svn path=/import/netsurf/; revision=646
2004-03-21 21:32:15 +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
James Bursa a325bfeed6 [project @ 2003-10-25 21:51:15 by bursa]
Submit textarea contents.

svn path=/import/netsurf/; revision=386
2003-10-25 21:51:15 +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