im trying to make a little script that will let the user pick a file
then display the name of the file then display its content and im not
sure how to do this here is what i have so far:

if(window.google && google.gears)
{
 var files = google.gears.factory.create('beta.desktop');
 var filecon = '';
 files.openFiles(
  function(file)
  {
   alert('You picked '+file[0].name);
   filecon += file[0].blob;
   alert(filecon);
  }, {singleFile: true}
 );
}
else{
 alert('No gears found.');
}

any ideas how to do this?

Reply via email to