Jump to content

Recommended Posts

Posted

i have this code :
 

procedure Tmob_emp.bCopyClick(Sender: TObject);
begin
 UniSession.AddJS(
    'var tempInput = document.createElement("textarea");' +
    'tempInput.value = ' + QuotedStr(id_edit.Text) + ';' +
    'tempInput.setAttribute("readonly", "");' +
    'tempInput.style.position = "absolute";' +
    'tempInput.style.left = "-9999px";' +
    'document.body.appendChild(tempInput);' +
    'tempInput.select();' +
    'var successful = document.execCommand("copy");' +
    'document.body.removeChild(tempInput);' +
    'if (!successful) { alert("Cannot copy : ' + id_edit.Text + '"); }'
    );
end;

the code is Copy the content of "id_edit" to Clipboard  in android, but not work in iphone!!!!!
there is any way to copy it to Clipboard? 

×
×
  • Create New...