Software Archive
Read-only legacy content
17061 Discussions

How to use ASP (Activer Server Pages) inside Intel XDK ?

Marcondes__Marcos
694 Views

How to use ASP (Activer Server Pages) inside Intel XDK ?

Where to put the files.asp ?

ISS works ?

thanks in advance

Marcos
www.conteudoanimal.com.br

0 Kudos
6 Replies
John_H_Intel2
Employee
694 Views

Your ASP pages need to be located on an external server, that your app can then communicate with. They can not reside in your app.

 

0 Kudos
Marcondes__Marcos
694 Views

Ok ....

My idea is to connect to mysql server .... how can I do it without ASP ?

0 Kudos
John_H_Intel2
Employee
694 Views

You will need to search for a sql cordova plugin. This one looks promising, but I have not tried it.

http://plugreg.com/plugin/MSOpenTech/cordova-plugin-websql

0 Kudos
Marcondes__Marcos
694 Views

How can I install the plugin on intel xdk ??

0 Kudos
Michael_O_2
New Contributor I
694 Views

You can also use sqlite for this purpose.

 

Sample code:

var db = openDatabase("EduDB", "1.0", "Students", 200000);  // Open SQLite Database

function initDatabase()  // Function Call When Page is ready.
 
{
 
    try {
  if (!window.openDatabase)  // Check browser is supported SQLite or not.
 
        {
 
            alert('Databases are not supported in this browser.');
  }
 
        else {
       console.log("DB supoted");
            createTable();  // If supported then call Function for create table in SQLite
             }
 
    }
 
    catch (e) {
 
        if (e == 2) {
 
            // Version number mismatch. 
 
            console.log("Invalid database version.");
 
        } else {
 
            console.log("Unknown error " + e + ".");
 
        }
 
        return;
 
    }
 
}
 
function createTable()  // Function for Create Table in SQLite.
 
{
 
    db.transaction(function (tx) { tx.executeSql(createStatement, [], showRecords, onError); });
    
 
}

0 Kudos
Reply