winjs

IndexedDB view all Databases and Object Stores

左心房为你撑大大i 提交于 2019-11-26 16:52:59
问题 I'm using IndexedDB in a Windows 8 app and I'm very new to both. I've been able to successfully create, read, update, delete objects from object stores, and have created a couple databases and a few object stores. My question is how can I list all of my object stores and databases? I create a few bogus ones that are not needed and I would like to clean things up a bit, but I can't remember what they are named. Maybe this is anal retentive, but it seems like it should be possible to list all

how to reset <input type = “file”>

元气小坏坏 提交于 2019-11-26 14:05:05
I am developing a metro app with VS2012 and Javascript I want to reset the contents of my file input: <input type="file" id="uploadCaptureInputFile" class="win-content colors" accept="image/*" /> How should I do that? The jQuery solution that @dhaval-marthak posted in the comments obviously works, but if you look at the actual jQuery call it's pretty easy to see what jQuery is doing, just setting the value attribute to an empty string. So in "pure" JavaScript it would be: document.getElementById("uploadCaptureInputFile").value = ""; You need to wrap <input type = “file”> in to <form> tags and

how to reset <input type = “file”>

▼魔方 西西 提交于 2019-11-26 03:03:06
问题 I am developing a metro app with VS2012 and Javascript I want to reset the contents of my file input: <input type=\"file\" id=\"uploadCaptureInputFile\" class=\"win-content colors\" accept=\"image/*\" /> How should I do that? 回答1: The jQuery solution that @dhaval-marthak posted in the comments obviously works, but if you look at the actual jQuery call it's pretty easy to see what jQuery is doing, just setting the value attribute to an empty string. So in "pure" JavaScript it would be: