Calling a javascript function to execute a logic with data I extract from html

Asked

Viewed 199 times

1

I’m taking some data from an html and need to call a Javascript to generate a parameter with the data I took in html.

How do I call Javascript to execute its logic with the extracted data within a class? Javascript is below. Noting that the program is in . NET.

function gerarParametro(chlg) {

   var start = aux3.charCodeAt(0);
   var end = aux4.charCodeAt(0);
   var arr = new Array(aux5);
   var m = Math.pow(((end - start) + 1), aux5);

   for (var i = 0; i < n; i++)
       arr[i] = aux3;

   for (var i = 0; i < m - 1; i++) {
      for (var j = aux5 - 1; j >= 0; --j) {
         var t = arr[j].charCodeAt(0);
         t++; arr[j] = String.fromCharCode(t);
         if (arr[j].charCodeAt(0) <= end) {
            break;
         } else { 
            arr[j] = aux3; 
         } 
       }

       var chlg = arr.join("");
    }
}
  • 1

    So you need to pass the data to the . net server, is that it? If it is, you need to use ajax.

  • I decided to do the logic in VB.net.

  • If you have resolved to share the answer with us.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.