WelcomeForumsCommunityproblem with sending of the value of the textarea to the server

Wijmo Team Member
ankazakov posted on July 3, 2012 at 5:18 am link

Could I possible send to the server the value of the textarea, which is placed in wijdialog. I try to do that, but I can’t. I suspect that the text field is not kept on the server, if it is put in wijdialog.

Sorry for my bad English.

Wijmo Team Member
abdiasm posted on July 4, 2012 at 12:29 pm link

textarea is an html control and cannot be accessed on the server. You could get the text of the textarea and send it to the server via ajax.

function btn_click() {
            var val = $(‘#txtarea1′).text();
            $.ajax({
                type: “POST”,
                url: “SomeService.asmx”,
                contentType: “application/json; charset=utf-8″,
                dataType: “json”,
                data: “{text:’” + val + “‘}”,
                success: function (result) {
                }
            });
  }

Regards
Abdias

Answer

Tagged: 

This topic has 2 voices, contains 1 reply, and was last updated by  abdiasm 321 days ago.

You must be logged in to reply to this topic.