[Ur] DatePicker?

Stefan Scott Alexander stefanscottalexx at gmail.com
Sat Aug 1 22:19:09 EDT 2015


I haven't understood how to use a JQuery library with Ur/Web because most
JQuery library demos (just the demo, with no involvement with Ur/Web) tend
to have a call to $... on their index.html page, and I couldn't figure out
how to make that call to $... from Ur/Web.

Now, looking at Edward Z. Yang's Logitext, I see this line:

https://github.com/ezyang/logitext/blob/master/js.urp#L11

  script http://localhost/logitext/ffi.js

And ffi.js does call $...:

https://github.com/ezyang/logitext/blob/master/ffi.js

So it seems that this could be used as a guide for wrapping other
JavaScript libraries for Ur/Web, eg the DatePicker libraries I want to use:

https://github.com/dbushell/Pikaday/blob/master/pikaday.js

https://github.com/eternicode/bootstrap-datepicker/blob/master/js/bootstrap-datepicker.js

Does this approach make sense?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.impredicative.com/pipermail/ur/attachments/20150801/d18697b4/attachment-0001.html>


More information about the Ur mailing list