X1Iz.png

I have the following questions about the above circuit:

-Why are we even using a trica/diac combo above. Why would a circuit consisting of just the fuse, switch and primary not be sufficient for charging the battery?

-If we do go ahead with the above combo, what is the use of the resistor/capacitor combo attached in parallel above the triac?

Thanks
giv


Question: How to retrieve files inside folder in document library using javascript
Answer: An example of how to Get Files from a Folder using Ecmascript\Javascript client object model in SharePoint 2010

&lt;script type=”text/ecmascript”&gt;
function ViewAllFiles()
{
var context = new SP.ClientContext.get_current();
var web = context.get_web();
var list = web.get_lists().getByTitle(‘Shared Documents’);
var query = SP.CamlQuery.createAllItemsQuery();
query.set_folderServerRelativeUrl(‘/Shared%20Documents/TestFolder’);
allItems = list.getItems(query);
context.load(allItems, ‘Include(Title, ContentType, File)’);
context.executeQueryAsync(Function.createDelegate(this, this.success),   Function.createDelegate(this, this.failed));
}

function success()
{
  var fileUrls = “”;
  var ListEnumerator = this.allItems.getEnumerator();
   while(ListEnumerator.moveNext())
   {
    var currentItem = ListEnumerator.get_current();
    var _contentType = currentItem.get_contentType();
     if(_contentType.get_name() != “Folder”)
       {
        var File = currentItem.get_file();
        if(File != null)
          {
           fileUrls += File.get_serverRelativeUrl() + ‘\n';
          }
       }
   }
  alert(fileUrls);
 }
 function failed(sender, args) {
  alert(“failed. Message:” + args.get_message());
 }
 &lt;/script&gt;
 &lt;a href=”#” onclick=”Javascript:ViewAllFiles();”&gt;View All Files in Test Folder&lt;/a&gt;


Please replace Document Library name and folder as per your requirement.