Fossil

History of src/fossil.fetch.js of b48212f6ea83876b
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of file src/fossil.fetch.js at check-in b48212f6ea83876b

2025-04-11
22:48
Internal doc updates in fossil.fetch(). Ensure that fossil.fetch()'s onerror()/ontimeout() handler do not propagate exceptions (a defensive measure, not a fix for a known bug). ... (file: [091c826f] check-in: [1d3db505] user: stephan branch: trunk, size: 13135)
18:52
Further refinements of the chat poll connection detection. The first N ignored errors are now spaced out unevenly. Use the server's configured chat-poll-timeout as the basis for calculating our client-side timeout time. ... (file: [c47e36f4] check-in: [e8bbaf92] user: stephan branch: trunk, size: 11786)
2025-04-10
06:01
Rework the chat poll fallback considerably. The notification widgets now interact with other messages better and don't mis-fire when the long-poll connection times out. ... (file: [1bc42346] check-in: [9516f7cd] user: stephan branch: chat-backoff-timer2, size: 10631)
2024-07-02
10:33
Add chat search for message by ID using search term #NNNN. ... (file: [79291600] check-in: [34493500] user: stephan branch: fts5-chat-search, size: 9889)
2021-10-08
17:42
Documented fossil.fetch()'s behavior of onerror() being called if onload() throws. Added a safety net in the diff context loader to handle a corner case null dereference when an exception in onload() triggers onerror() after the context loader's DOM elements have been destroyed. Forum post 7bc8301eb191cf6d. ... (file: [55c8dcd5] check-in: [49e3bf7b] user: stephan branch: trunk, size: 9891)
2021-03-21
18:51
Cleaned up the is-first-call handling of the /chat message poller. ... (file: [36cb8a22] check-in: [147ff84e] user: stephan branch: chat-fetch-port, size: 9567)
18:25
Ported /chat from window.fetch to fossil.fetch, as FF versions as recently as 2017 fail with window.fetch. Needs more testing before merge but seems to work. ... (file: [4ce07ea5] check-in: [c9736432] user: stephan branch: chat-fetch-port, size: 8954)
2020-12-12
10:01
If fossil.fetch()'s beforesend() callback propagates an exception, it is now passed to the onerror() callback and aborts the fetch, rather than being silently ignored. ... (file: [2df4ea7e] check-in: [1515f022] user: stephan branch: trunk, size: 8949)
2020-08-12
11:42
Inconsequential JS cleanups. ... (file: [35d74ea5] check-in: [5dd9ff1c] user: stephan branch: trunk, size: 8896)
2020-08-08
12:41
wikiedit now relabels the Save button while save is in progress, per forum feedback. ... (file: [6cc20e07] check-in: [9f3747d8] user: stephan branch: trunk, size: 8464)
2020-07-09
03:13
JS fossil.fetch(): moved an XHR.setRequestHeader() call to after the XHR.open() call because FF now says it must be done in that order. ... (file: [33eeef2d] check-in: [98f3c05c] user: stephan branch: trunk, size: 8335)
2020-05-28
13:27
fossil.fetch() now uses onreadystatechange instead of onload because the latter does not handle connection errors and timeouts. Added timeout option to fossil.fetch() with a default of 15s. Corrected non-closing of a failed transaction when fileedit/commit fails. ... (file: [0994963b] check-in: [6849d9a5] user: stephan branch: trunk, size: 8335)
2020-05-18
05:19
Added optional fossil.fetch() beforesend/aftersend callbacks to allow us to... /efilepage now disables all input elements while AJAX requests are in-flight and updates the page with a 'wait' cursor. ... (file: [6f9b5302] check-in: [7e197260] user: stephan branch: fileedit-ajaxify, size: 7956)
2020-05-12
16:26
Fixed a potential corner-case bug which would have broken fossil.fetch() if a user had defined their own fossil.fetch.onerror() impl before calling fossil.fetch() the first time. ... (file: [3d7bdd01] check-in: [695dde00] user: stephan branch: fileedit-ajaxify, size: 6882)
13:18
Added fossil.fetch() responseHeaders option to pass on one or more response headers to the onload() callback. ... (file: [a083bb72] check-in: [bbb738d0] user: stephan branch: fileedit-ajaxify, size: 6595)
2020-05-06
04:52
Minor code style improvements, fixed a couple jquery-isms in the confirmer port, added the ability to select tabs by number and pre-select a specific tab, removed a superfluous C function. ... (file: [937316a3] check-in: [9085ec23] user: stephan branch: fileedit-ajaxify, size: 5044)
01:51
Reworked how /fileedit loads its JS - it now fetches them rather than embedding them inline. Moved fossil.fetch() docs from style.c into the JS file. ... (file: [f1085586] check-in: [b48212f6] user: stephan branch: fileedit-ajaxify, size: 5010)
2020-05-05
16:51
Completely overhauled the /fileedit layout, using a homebrew tabbed interface. ... (file: [08a9ec15] check-in: [33ffe576] user: stephan branch: fileedit-ajaxify, size: 2620)
08:41
Numerous minor cleanups. ... (file: [397aa884] check-in: [f54ac217] user: stephan branch: fileedit-ajaxify, size: 2620)
04:06
Initial work on ajaxifying /fileedit. Fetching content, preview, and diffs are ajax'd, but save is not yet. ... (file: [b3780bc2] check-in: [8edf9dbf] user: stephan branch: fileedit-ajaxify, size: 2553)