Git Product home page Git Product logo

js-webdav-client's Introduction

A webDAV client library

This is the repository for a general webDAV client library, written in JavaScript. The main purpose is to support the built-in client for BeeHub. However, we attempt to make it follow the webDAV RFC 4918 and any contributions that help implement features of this and other webDAV standards are welcome.

API reference can be found here: http://sara-nl.github.com/js-webdav-client/

Directory structure

  • ./COPYING.LESSER.txt contains the GNU LGPL
  • ./LICENSE.txt contains the GNU GPL
  • ./Makefile is the makefile to build the library into one single file
  • ./README.md contains this text
  • ./src/ contains all the source files for the basic library
  • ./src/plugins/ contains directories with plugins (such as the ACL plugin)

Development

If you want to develop on the library code itself, you'll want to link to the source files from within your HTML page. You should add all needed files manually to the header with the default script tag. For example:

<script type="text/javascript" src="/library_path/src/000_header.js"></script>

Make sure you link the source files in the same order as the Makefile will:

  • Files in ./src will be included in a sorted order first. This means:
    • ./src/000_header.js should be linked first
    • ./src/001_exception.js should be linked second
    • ./src/002_iehacks.js should be linked second
    • then the other files follow
  • Directories in ./src/plugins/ will be included in a sorted order next. Their files will also be included in a sorted order.

This way, the basic library will be linked before the plugins are loaded

Using the library in another script

To use the library from other scripts, create a single file containing the complete library:

make dist.js

Copy it to your webservers public folder and rename it for convenience:

cp dist.js /path_to_public_folder/webdavlib.js

Then link this file in your HTML file before your own scripts are linked.

<script type="text/javascript" src="/webdavlib.js"></script>

Of course you are free to rename the dist.js file any way you like and place it anywhere in your public folder. As long as you change the script tag correspondingly.

js-webdav-client's People

Contributors

pieterb avatar albertogp avatar

Watchers

Cruz Monrreal avatar James Cloos avatar Walt Giroir avatar Ed Hemphill avatar br avatar  avatar Travis McCollum avatar Jon Martin  avatar Yash Goyal avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.