122 Commits

Author SHA1 Message Date
Joe Cheng
6eec570828 Add CSS hooks for app-wide busy indicators 2012-11-21 00:04:16 -08:00
Joe Cheng
ae9bd868f1 Implement arbitrary file downloads 2012-11-20 17:42:34 -08:00
Joe Cheng
bc73048ab9 Fix IE8 slice bug
IE8 doesn't like slice(0, undefined)--rather than interpreting it as slice(0),
it returns an array of length 0.
2012-11-19 17:19:51 -08:00
Joe Cheng
b6723a6219 Add per-session GET infrastructure. Allow IE8/9 to avoid data URIs. 2012-11-19 13:08:09 -08:00
Joe Cheng
66eaaff598 More customizable error display 2012-11-02 09:49:17 -07:00
Joe Cheng
478c6c134f Much less flicker when updating plots 2012-11-02 09:48:36 -07:00
Joe Cheng
81723d55ac Change T and F to TRUE and FALSE
TRUE and FALSE are keywords whereas T and F are just predefined variables that can be reassigned
2012-10-31 11:35:41 -07:00
Winston Chang
7b3a4bdc39 Use vectors instead of lists in UI elements 2012-10-30 10:47:05 -05:00
Joe Cheng
dc4eb720ae Introduce input type hints
These allow the server to use custom deserialization code on a per-type basis.
2012-10-26 10:28:40 -07:00
Joe Cheng
7dfa7d7426 Fix issue #26: Shiny.OutputBindings not correctly exported 2012-10-24 14:41:32 -07:00
Joe Cheng
b8b1a891cf Add custom message handler support, console logging
If the server sends a message with a "custom" field, that field's value will
be passed to a custom window.Shiny.oncustommessage function, if it is defined.

Also add support for messages like so:
{
  console: [
    'line one',
    'line two'
  ]
}

This will cause "line one" and "line two" to be printed at the browser console.
2012-10-04 17:45:20 -07:00
Joe Cheng
ff072ae9d9 bindAll should send initial values to server 2012-09-25 01:29:52 -07:00
Joe Cheng
3db1f2a98c Don't animate showing/hiding of conditionalPanel 2012-09-21 19:51:24 -07:00
Joe Cheng
d01149620f Fix issue #19: Checkboxes and radios can't be added dynamically 2012-09-19 11:48:28 -05:00
Joe Cheng
1a591cd9f1 conditionalPanel now triggers show/shown/hide/hidden event 2012-09-07 00:44:20 -07:00
Joe Cheng
e9b81b2033 [BREAKING] Simplify input binding callbacks
InputBinding.subscribe used to have to call callbacks with at least two arguments,
now there is only one optional argument (allowDeferred). The binding argument in
particular was problematic because it required "var self=this;".
2012-09-06 12:06:15 -07:00
Joe Cheng
cb63338805 Allow htmlOutput to contain inputs/outputs 2012-09-05 11:17:39 -07:00
Joe Cheng
bcdc82ccee Add conditionalPanel; JS API changes
- bindAll/unbindAll added
- bindInput/bindOutput/unbindInput/unbindOutput removed
2012-09-05 09:40:40 -07:00
Joe Cheng
872f23b0f0 Improvements for output binding/unbinding
- When bound, outputs receive cached error/value
- On binding, (potentially all) output plot sizes are resent
2012-08-31 23:12:20 -07:00
Joe Cheng
e61f7405fd Upload example app should accept text/plain files 2012-08-31 22:39:45 -07:00
Joe Cheng
0714871b56 Improve blob handling browser compatibility 2012-08-31 22:39:26 -07:00
Joe Cheng
8a89fb2a1a Expose and fix Shiny.unbindOutputs 2012-08-31 18:29:42 -07:00
Joe Cheng
7a6784d809 Add missing param to prototype method 2012-08-31 11:48:21 -07:00
Joe Cheng
ed9301705b Refactor JS to use more consistent OOP style
(function() { }).call(Foo.prototype) for extending prototypes manually, and
$.extend for extending objects manually or prototypes inheriting from each
other.
2012-08-31 10:00:20 -07:00
Joe Cheng
3a0b11b89d Add file upload feature
This feature is currently pretty rough. It only works in the most modern
browsers (depends on HTML5 File API, including Blob.slice) and doesn't
show upload progress.
2012-08-30 22:07:00 -07:00
Joe Cheng
5f775db40a Enhancements to Shiny transport
- JS can now do remote procedure calls (with return value or exception), not just message passing
- RPC calls can include non-JSON-compatible binary data (not compatible with IE)
2012-08-30 12:16:12 -07:00
Joe Cheng
9b84b83627 Allow binding and unbinding of Shiny input/output 2012-08-30 12:04:17 -07:00
Joe Cheng
b0d9b5762a Don't use WebSocket constant, it's not on IE8 2012-08-24 11:28:46 -07:00
Joe Cheng
42fac871fb Extensible websocket creation 2012-08-22 12:32:33 -07:00
Joe Cheng
2782bf6735 Execute sendPlotSize when anything is shown/hidden 2012-08-21 14:18:00 -07:00
Joe Cheng
c8969c4cc0 Upgrade to Bootstrap 2.1 2012-08-21 11:35:37 -07:00
Joe Cheng
653509368b Let Bootstrap tabset send its selected tab as input 2012-08-20 17:01:41 -07:00
Joe Cheng
363633b01f Fix issue #10: Plots in tabsets not rendered 2012-08-20 09:54:50 -07:00
Joe Cheng
575350842a Fix broken progress indication 2012-08-18 00:01:38 -07:00
Joe Cheng
642d153202 Dynamic output bindings 2012-08-14 01:21:25 -07:00
Joe Cheng
8cf7d8b4cb Input binding enhancements
- Add textarea binding
- Deterministic priority ordering
- Allow getting/setting priorities for existing bindings
2012-08-14 00:58:56 -07:00
Joe Cheng
b0b7cfa3a5 Remove comment cruft 2012-08-13 14:45:49 -07:00
Joe Cheng
3692d5f008 Delay Shiny init to after document-ready
Also remove some dead code
2012-08-13 11:51:53 -07:00
Joe Cheng
2344dc04a5 Fix bug in deferred submission 2012-08-13 10:09:44 -07:00
Joe Cheng
cf37072bed Don't debounce when animating 2012-08-13 10:04:06 -07:00
Joe Cheng
cc5c933e7d Use InputBinding for sliders 2012-08-09 17:13:14 -07:00
Joe Cheng
ad1737f16b Infrastructure for extensible inputs 2012-08-09 16:38:21 -07:00
Joe Cheng
2ac1895a6e Inputs without names shouldn't be sent 2012-08-08 17:13:19 -07:00
Joe Cheng
4dc7630adc Cleanup code, exports, radio values
- Radio values based on id could not be kept in sync because implicitly deselected radios don't trigger a change event. So don't pass id-based values for radios at all (still works for checkboxes though)
- Make onInputChange available in a Shiny namespace on the window
- Remove no longer used debounce/throttle code
2012-08-07 15:25:00 -07:00
Joe Cheng
66a3d68755 Hook up modular input pipeline 2012-08-07 15:25:00 -07:00
Joe Cheng
ce9213cdc1 Infrastructure for more flexible input handling 2012-08-07 15:25:00 -07:00
Joe Cheng
8455343fee Only instantiate sliders if sliders are loaded 2012-07-29 11:04:27 -07:00
JJ Allaire
9672088158 remove helpText from animation example 2012-07-28 11:12:23 -04:00
JJ Allaire
995908d3c6 remove docs since they have been folded into the tutorial 2012-07-28 11:04:49 -04:00
Joe Cheng
c3e14933e2 Use simpler output format for 05_sliders 2012-07-27 14:46:11 -07:00