Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @{
  2.     ViewData["Title"] = "Index";
  3. }
  4.  
  5. <h1>@ViewData["Title"]</h1>
  6.  
  7. <script src="~/js/require.js"></script>
  8.  
  9. <script type="text/javascript">
  10.     function edit() {
  11.         const { createClient } = require("webdav");
  12.         const client = createClient(
  13.             "https://localhost/webdavdir",
  14.             {
  15.                 username: "marie",
  16.                 password: "myS3curePa$$w0rd"
  17.             }
  18.         );
  19.         //alert("3");
  20.         //// Get directory contents
  21.         //const directoryItems = await client.getDirectoryContents("/");
  22.         //console.log(directoryItems);
  23.     }
  24. </script>
  25.  
  26. <input type="button" value="Edit Document" onclick="edit()" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement