Jump to content

Cannot set property 'value' of null

Recommended Posts



procedure TMainForm.UniBitBtn1Click(Sender: TObject);
  UniSession.AddJS('document.getElementById("txtReceptor").value="'+UniEdit1.Text+'";'); //transfer content

procedure TMainForm.UniFormCreate(Sender: TObject);
   // UnihtmlFrame2.HTML.loadfromfile('index3.html');  //this is  work
    UniURLFrame1.HTML.loadfromfile('index3.html');     //if i use  uniURLFrame not ok, why???????  

Cannot set property 'value' of null





<!DOCTYPE html>
<html lang="pt-BR">
  <title>Test HTML</title>

  <form id="frmTeste">
   <p><strong>Input Receptor:</strong> <input type="text" name="textReceptor" size=80  id="txtReceptor" value="" />

Link to post
Share on other sites
  • 2 weeks later...

Same question



<link rel=stylesheet href="uni-">

<link rel="stylesheet" href="uni-">

<script src="uni-"></script>


<link rel="stylesheet" href="uni-">


<script src="uni-">



<script src="uni-"></script>


<script src="uni-">

</script><style type="text/css">.CodeMirror {border-top: 0px solid black; border-bottom: 0px solid black;}</style>


<div><textarea id="O109code" name="O109code">begin



<script>var  O109editor = CodeMirror.fromTextArea(document.getElementById("O109code"), {    

theme:"abcdef",    styleActiveLine: true,    lineNumbers: true,    lineWrapping:true,    foldGutter: true,    tabSize:4,    gutters:["CodeMirror-linenumbers", "CodeMirror-foldgutter"],    fullScreen:true,    matchBrackets:true,    mode: "text/x-pascal"});    

O109editor.setSize('100%', '100%');


How to call O109editor. Getdoc(). SetValue in Delphi




Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...