path: root/render/form.c
Commit message (Collapse)AuthorAgeFilesLines
* Only iterate the form when freeing a control if there is one.Daniel Silverstone2015-06-031-14/+16
| | | | This fixes Bug#2322
* Change LOG() macro to be varadicVincent Sanders2015-05-281-49/+49
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* Ensure we delink form controls when freeing themDaniel Silverstone2015-04-221-0/+19
* add some debug to form gadget freeingVincent Sanders2015-03-271-3/+10
| | | | | Serveral reports of form freeing segfaulting on RISC OS so this adds some debug in this area to see if we can tell why.
* Forms: consider submit buttons successful. Fixes #2284.John-Mark Bell2015-03-101-2/+47
* Remove unecessary form debugVincent Sanders2014-11-151-33/+37
| | | | | Additionaly we make the curl fetcher report errors instead of uninitialised buffer.
* Fix cocoa usage of render internalsVincent Sanders2014-11-131-0/+8
* make the form select menu API smaller.Vincent Sanders2014-11-131-0/+20
| | | | | | By hiding all but the form selection menu option structure from code outside of render this reduces the API to the absolute minimum to support this feature.
* Doxygen cleanupsVincent Sanders2014-11-121-66/+11
* change form API to return error instead of warning user.Vincent Sanders2014-11-111-13/+24
| | | | | | | Update the form API so instead of directly warning the user it returns an error code to the caller allowing the appropriate action to be taken outside the core. Additionally clean up documentation of this API.
* Make most of the form API internal to the html renderer.Vincent Sanders2014-11-111-20/+3
| | | | | | Very little of the form API needed exposing outside of the renderer. This makes the form API that may be used by frontends obvious and limited.
* remove unecessary browser.h include from core headersVincent Sanders2014-10-171-0/+1
* Put the font operations table alongside all the other core APIVincent Sanders2014-10-131-7/+8
| | | | | | | | | | | | The netsurf core is driven from numerous operation tables most of which are now set through a common netsurf_register() interface. The font and plotting interfaces are currently separate and unlike all the other operation tables are modified for differing contexts. This change moves the font operations alongside all the other operations table and remove unnecessary interaction with the renderers font internals. Further this also removes the need for css internals to be visible in frontends.
* refactor url utility functions to use standard nserror codes and have ↵Vincent Sanders2014-05-081-5/+5
| | | | appropriate documentation.
* Gadgets can exisit outside forms, so now they store their own ref to the ↵Michael Drake2014-02-171-15/+3
| | | | containing html content.
* Make browser_window_navigate (un)verifiable flag match browser_window_create.Michael Drake2014-02-101-6/+3
* Allow tab creation without history clone. Changes browser_window_create and ↵Michael Drake2014-02-101-6/+6
| | | | browser_window_navigate flags.
* Native select menu interface shouldn't force front end to dig inside bw struct.Michael Drake2014-02-081-13/+21
* clean up desktop/gui.h include usageVincent Sanders2014-01-291-2/+1
* move utf8 conversion routines to use nserror instead of their own error enumVincent Sanders2014-01-281-7/+7
* Fix Coverity-spotted issue. (Fixes behaviour for multiple selects.) Also ↵Michael Drake2014-01-241-1/+2
| | | | minor optimisation.
* Deselect other options when select option is selected, and it's not a ↵Michael Drake2014-01-211-4/+8
| | | | multi-select.
* Support 'checked' properly in new form handlerDaniel Silverstone2014-01-061-1/+10
* Remove old form_successful_controlsDaniel Silverstone2014-01-051-349/+0
* Support image inputsDaniel Silverstone2014-01-051-8/+16
* Rewrite form_successful_controls() to use the DOM.Daniel Silverstone2014-01-051-5/+509
| | | | | | This stops image inputs from working temporarily, but makes inputs inside display:none work correctly. As such, this is a net-win.
* Remove logging now that file upload *seems* to workDaniel Silverstone2014-01-041-3/+2
* Add a bunch of logging to try and help track down the issue with rawfile ↵Daniel Silverstone2014-01-041-2/+3
| | | | handling, sorry guys
* Shunt around the file multipart stuff a bit to try and fix the segfaultDaniel Silverstone2014-01-041-9/+10
* In theory, store raw filenames and pass them through for file upload. ↵Daniel Silverstone2014-01-041-1/+24
| | | | Untested due to no file-upload in GTK frontend just yet
* Reflect changes to select boxes into the DOMDaniel Silverstone2014-01-041-1/+9
* Ensure textual input boxes re-update the DOM with new valuesDaniel Silverstone2014-01-041-0/+37
* Fix leaks in form_successful_controls. 'charset' was always leaked, value ↵Michael Drake2013-10-231-0/+4
| | | | was leaked in particular OOM case.
* s/!charset/charset == NULL/Michael Drake2013-10-231-1/+1
* Fix pointer shape and status bar messages for textareas and their scrollbars.Michael Drake2013-03-111-2/+3
* change stylesheet fetching to be generated from the default dom eventsVincent Sanders2013-02-191-0/+4
* rename flags for browser_window routines to be shorterVincent Sanders2013-02-181-6/+6
* browser_window_navigate refactorVincent Sanders2013-02-181-20/+42
* First pass at getting html forms to use textarea widget.Michael Drake2013-02-061-61/+26
| | | | | (Input element types text & password, and textarea element.) Can edit and submit forms, but there are loads of issues.
* Fix url encoded query generation, when there's no name/value pairs.Michael Drake2012-10-161-4/+5
* Make form_url_encode static.Michael Drake2012-10-111-1/+1
* Use nsurl_replace_query instead of url_get_components and url_reform_components.Michael Drake2012-10-111-26/+39
* Talloc ctx fixup.Michael Drake2012-10-051-3/+3
* Update to use latest libdom. Fixes handling of text input with no maxlength ↵Michael Drake2012-09-081-3/+0
| | | | set.
* Confine box_at_point to the document it's given. Callers are now ↵Michael Drake2012-08-211-4/+4
| | | | responsible for calling whatever functionality for object boxes. Remove last bw dereference from render directory. Remove a couple of unused functions.
* Pass content containing form's nsurl to form_submit, instead of its ↵Michael Drake2012-08-171-8/+5
| | | | hlcache_handle. Avoid dereferencing bw in html content handlers.
* Avoid bw dereference.Michael Drake2012-08-171-72/+79
* Remove redundant scrollbar widget message.Michael Drake2012-08-161-9/+1
* Include dom/dom.h where it might be neededDaniel Silverstone2012-03-241-0/+1
| | | | svn path=/trunk/netsurf/; revision=13625
* Don't need root bw here any more.Michael Drake2012-01-111-3/+0
| | | | svn path=/trunk/netsurf/; revision=13396