Comparare date

Discutii legate de AJAX, jQuery, MooTools, Prototype, Dojo, Yahoo! UI Library,script.aculo.us, ExtJS,AngularJS, Backbone.js, Ember.js, KnockoutJS

Moderator: Moderatori

serradi
PHPRomania Supporter
Mesaje: 5
Membru din: Joi Aug 02, 2012 1:36 pm

Comparare date

Mesajde serradi » Mar Aug 07, 2012 1:09 pm

<html>
<script>
function mytest1() {
var Excel, Book; // Declare the variables
Excel = new ActiveXObject("Excel.Application"); // Create the Excel application object.
Excel.Visible = false; // Make Excel invisible.
Book = Excel.Workbooks.Add() // Create a new work book.
Book.ActiveSheet.Cells(1,1).Value = document.all.my_textarea1.value;
Book.SaveAs("C:/Documents and Settings/ProGamer/Desktop/word to text/TEST.xls");
Excel.Quit(); // Close Excel with the Quit method on the Application object.
}

</script>

<body>
<form name="form1">
<input type=button onClick="mytest1();" value="Send Excel Data"><input type=text name="my_textarea1" size=70 value="enter ur data here">
</form>
</body>
</html>

Cum fac sa pot compara textul de la input cu datele existente in fisierul excel pentru a putea vedea daca nu a mai fost adaugat inca o data?

multumesc



Înapoi la “Librarii Javascript”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 22 vizitatori