summaryrefslogtreecommitdiff
path: root/render/form.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge jmb/new-cache; r=dsilvers,rs=vinceDaniel Silverstone2010-03-281-24/+7
| | | | svn path=/trunk/netsurf/; revision=10180
* Merge Paul Blokus' selectscroll branch. Adds core select menu widget for ↵Michael Drake2009-08-141-0/+492
| | | | | | forms and core scrollbar widget. svn path=/trunk/netsurf/; revision=9289
* Squash warningsJohn Mark Bell2009-03-021-1/+1
| | | | svn path=/trunk/netsurf/; revision=6674
* Fix handling of buttons in successful control searchJohn Mark Bell2009-02-201-0/+1
| | | | svn path=/trunk/netsurf/; revision=6576
* If we have no document charset on completion of parse, retrieve it from the ↵John Mark Bell2009-02-201-5/+4
| | | | | | | | | | binding. Make the binding return Windows-1252 if it has no idea (as this is what the parser will have defaulted to). Fix form_new to not require a document charset to be present -- it may not be known at this point. Fixup form document charsets post-parse, so that form submission works correctly. svn path=/trunk/netsurf/; revision=6575
* Utilise hubbub's form association callback.John Mark Bell2009-02-201-48/+113
| | | | | | | | Please can we dispense with the libxml binding? It's causing much #ifdef mess. Fix encoding of <input type=image> names -- previously were output as raw utf-8, rather than in the submission charset. Actually bother to destroy forms in a document, and the controls associated with them. We still leak non form-associated controls, but that's too much effort to fix right now. svn path=/trunk/netsurf/; revision=6573
* Fix buildJohn Mark Bell2008-08-121-1/+2
| | | | svn path=/trunk/netsurf/; revision=5055
* C89François Revel2008-08-111-1/+2
| | | | svn path=/trunk/netsurf/; revision=5053
* - riscos/gui.c(path_to_url): escape the characters which need to be escaped ↵John Tytgat2008-04-021-2/+2
| | | | | | | | | | | | | | when converting the host path to file: URL. - utils/{url.c,url.h}(url_escape): * added parameter 'toskip' to specify number of input characters which need to be skipped in the escape process. This avoids extra malloc buffer juggling. * added parameter 'escexceptions' to specify the characters which need to be excluded from the escape process. Solves SF tracker ID 1910169. Note that when discname in path contains '/' characters (case: "file:///Sunfish#192.168.0.50::/home/joty.$/jo.html") or there is no discname specified at all (case "file:///HostFS:$/jo.htm"), you need an UnixLib fix as in http://www.riscos.info/websvn/listing.php?repname=gccsdk&path=%2Ftrunk%2Fgcc4%2F&rev=3395&sc=1 svn path=/trunk/netsurf/; revision=4069
* Also try charsets without transliteration -- not all iconv() implementations ↵John Mark Bell2007-09-271-8/+30
| | | | | | support //TRANSLIT as it's a non-standard extension. svn path=/trunk/netsurf/; revision=3598
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-4/+14
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-6/+6
| | | | | | | | | | | | | | in includes NetSurf includes are now done with ""s and other system includes with <>s as C intended. The scandeps tool has been updated to only look for ""ed includes, and to verify that the files exist in the tree before adding them to the dependency lines. The depend rule has therefore been augmented to make sure the autogenerated files are built before it is run. This is untested under self-hosted RISC OS builds. All else tested and works. svn path=/trunk/netsurf/; revision=3307
* Default form field maxlength to UINT_MAX (fixes 1620540)John Mark Bell2007-03-111-1/+3
| | | | svn path=/trunk/netsurf/; revision=3205
* Transliterate form submissions (requires an iconv implementation that John Mark Bell2007-03-111-24/+9
| | | | | | | | understands //TRANSLIT - both glibc & libiconv's do, as do Iconv modules >= 0.08) Require Iconv 0.08 svn path=/trunk/netsurf/; revision=3203
* Ensure multipart/form-data submissions are in the correct charset. John Mark Bell2007-02-261-70/+110
| | | | | | | | | (fixes 1617129). There are issues with unrepresentable characters, which I'm investigating; they appear to be due to Iconv/UnicodeLib and not NetSurf's usage of them. svn path=/trunk/netsurf/; revision=3190
* Bring handling of submission of blank file inputs in line with other browsers.John Mark Bell2007-01-301-5/+12
| | | | | | Tidy up fetch_post_convert while I'm at it. svn path=/trunk/netsurf/; revision=3159
* Implement form targets (fix 1619094)Richard Wilson2006-12-301-1/+2
| | | | svn path=/trunk/netsurf/; revision=3125
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* Correcly encode spaces for url-encoded form submission.John Mark Bell2006-09-191-2/+2
| | | | svn path=/trunk/netsurf/; revision=2960
* [project @ 2006-02-04 14:40:01 by jmb]John Mark Bell2006-02-041-8/+8
| | | | | | Fix handling of controls with no value - should fix 1424022. svn path=/import/netsurf/; revision=2056
* [project @ 2006-01-02 13:19:34 by bursa]James Bursa2006-01-021-1/+1
| | | | | | Fix comment typo. svn path=/import/netsurf/; revision=1948
* [project @ 2005-08-31 20:29:11 by bursa]James Bursa2005-08-311-0/+5
| | | | | | Fix submitting of forms with more than one image button. svn path=/import/netsurf/; revision=1856
* [project @ 2005-08-04 22:51:42 by bursa]James Bursa2005-08-041-0/+1
| | | | | | Fix strndup() compiler warnings. svn path=/import/netsurf/; revision=1840
* [project @ 2005-07-18 14:22:26 by jmb]John Mark Bell2005-07-181-1/+1
| | | | | | Fix erroneous attempt to uppercase address of character instead of the character itself svn path=/import/netsurf/; revision=1802
* [project @ 2005-06-26 22:18:37 by jmb]John Mark Bell2005-06-261-9/+37
| | | | | | | 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
* [project @ 2005-06-26 01:55:20 by jmb]John Mark Bell2005-06-261-13/+105
| | | | | | | | 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
* [project @ 2005-06-07 21:29:26 by jmb]John Mark Bell2005-06-071-4/+13
| | | | | | | 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
* [project @ 2005-05-25 23:06:26 by jmb]John Mark Bell2005-05-251-2/+2
| | | | | | Fix textarea submission svn path=/import/netsurf/; revision=1740
* [project @ 2005-05-16 00:55:43 by jmb]John Mark Bell2005-05-161-2/+3
| | | | | | 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
* [project @ 2005-05-11 02:03:15 by jmb]John Mark Bell2005-05-111-3/+9
| | | | | | 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
* [project @ 2005-05-11 01:34:41 by rjw]Richard Wilson2005-05-111-11/+10
| | | | | | Fix for default checkbox submit value. svn path=/import/netsurf/; revision=1718
* [project @ 2005-04-16 19:34:30 by jmb]John Mark Bell2005-04-161-1/+3
| | | | | | Don't append a space to the end of textarea input svn path=/import/netsurf/; revision=1654
* [project @ 2005-04-16 05:09:32 by jmb]John Mark Bell2005-04-161-8/+27
| | | | | | | | | | | | 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
* [project @ 2005-04-09 09:47:36 by bursa]James Bursa2005-04-091-0/+1
| | | | | | 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
* [project @ 2004-12-12 21:49:23 by bursa]James Bursa2004-12-121-0/+70
| | | | | | Add form_new() and form_add_option(). svn path=/import/netsurf/; revision=1400
* [project @ 2004-10-09 19:14:26 by jmb]John Mark Bell2004-10-091-3/+8
| | | | | | Work around issue with selected radio buttons/checkboxes having no current value svn path=/import/netsurf/; revision=1308
* [project @ 2004-08-18 01:45:29 by jmb]John Mark Bell2004-08-181-10/+6
| | | | | | Restrict last change to hidden inputs only - breaks sf.net bug tracker otherwise svn path=/import/netsurf/; revision=1243
* [project @ 2004-08-18 01:36:39 by jmb]John Mark Bell2004-08-181-12/+60
| | | | | | | Fix issue with hidden inputs having no value property Log on memory error to aid debugging svn path=/import/netsurf/; revision=1242
* [project @ 2004-08-08 19:13:40 by bursa]James Bursa2004-08-081-83/+149
| | | | | | 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
* [project @ 2004-07-19 20:40:11 by joty]John Tytgat2004-07-191-99/+131
| | | | | | | | | | 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
* [project @ 2004-06-02 21:14:40 by bursa]James Bursa2004-06-021-20/+20
| | | | | | Revert accidental checkin. svn path=/import/netsurf/; revision=916
* [project @ 2004-06-02 21:09:14 by bursa]James Bursa2004-06-021-20/+20
| | | | | | Update calls to layout_document() for error handling. svn path=/import/netsurf/; revision=915
* [project @ 2004-05-21 23:42:26 by bursa]James Bursa2004-05-211-2/+3
| | | | | | Fix and clean code for radio and checkbox inputs. svn path=/import/netsurf/; revision=884
* [project @ 2004-05-21 10:25:42 by bursa]James Bursa2004-05-211-0/+53
| | | | | | Add form_new_control() and form_free_control(). svn path=/import/netsurf/; revision=878
* [project @ 2004-05-03 22:05:40 by bursa]James Bursa2004-05-031-1/+1
| | | | | | Implement dragging files into <input type="file" ...>. svn path=/import/netsurf/; revision=821
* [project @ 2004-04-08 23:46:41 by jmb]John Mark Bell2004-04-081-0/+1
| | | | | | | 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
* [project @ 2004-04-01 18:29:42 by bursa]James Bursa2004-04-011-0/+1
| | | | | | Fix bug with submission of forms with no successful controls. svn path=/import/netsurf/; revision=696
* [project @ 2004-03-21 21:32:15 by jmb]John Mark Bell2004-03-211-1/+0
| | | | | | | Fix for SparkFS causing problems with uploading zip files. Map filetypes to mimetype properly. svn path=/import/netsurf/; revision=646
* [project @ 2004-03-21 20:07:14 by jmb]John Mark Bell2004-03-211-0/+19
| | | | | | | <input type="file" support> Broken in places. svn path=/import/netsurf/; revision=645
* [project @ 2003-10-25 21:51:15 by bursa]James Bursa2003-10-251-3/+54
| | | | | | Submit textarea contents. svn path=/import/netsurf/; revision=386