ganzqgy Posted March 18, 2014 Share Posted March 18, 2014 function beforeInit(sender){ sender.value=''; //ok sender.originalValue=''; //not work } Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 18, 2014 Administrators Share Posted March 18, 2014 what do you want to do? Quote Link to comment Share on other sites More sharing options...
ganzqgy Posted March 18, 2014 Author Share Posted March 18, 2014 O68=new Ext.ux.form.CodeMirror({id:"O68_id",codeMirrorPath:"uni-0.95.0.1045/codemirror-0.8",language:"pas",value:"aaaaa\n",n The client does not want to see it, but the server to use it. Quote Link to comment Share on other sites More sharing options...
ganzqgy Posted March 18, 2014 Author Share Posted March 18, 2014 O68=new Ext.ux.form.CodeMirror({id:"O68_id",codeMirrorPath:"uni-0.95.0.1045/codemirror-0.8",language:"pas",value:"if (top.sss){\ntop.sss.destroy();\n}\n\ntop.sss=Ext.create('Ext.panel.Panel', {\n \n width: '100%',\n height: '100%',\n layout:'accordion',\n defaults: {\n // applied to each contained panel\n bodyStyle: 'padding:15px'\n },\n layoutConfig: {\n // layout-specific configs go here\n titleCollapse: false,\n animate: true,\n activeOnTop: true\n },\n items: [{\n title: 'Panel 1',\n html: 'Panel content!'\n },{\n title: 'Panel 2',\n html: 'Panel content!'\n },{\n title: 'Panel 3',\n html: 'Panel content!'\n }],\n renderTo:'gan'\n});\n",name:"O68",enableKeyEvents:true,beforeinit:function(sender) { sender.value=''; }, Sometimes, don't want to get the original value is sent to the client. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 18, 2014 Administrators Share Posted March 18, 2014 Try setValue("") Quote Link to comment Share on other sites More sharing options...
ganzqgy Posted March 18, 2014 Author Share Posted March 18, 2014 Can not, can still see the view Webpage original code inside. value:"......" Quote Link to comment Share on other sites More sharing options...
ganzqgy Posted March 18, 2014 Author Share Posted March 18, 2014 procedure TMainForm.UniFormCreate(Sender: TObject);begin s:=UniSyntaxEdit1.Text; UniSyntaxEdit1.Text :='';end; procedure TMainForm.UniFormActivate(Sender: TObject);begin UniSyntaxEdit1.Text :=s;end; OK! Quote Link to comment Share on other sites More sharing options...
ganzqgy Posted March 18, 2014 Author Share Posted March 18, 2014 UniSyntaxEdit1.visible:=false; //not work? Quote Link to comment Share on other sites More sharing options...
ganzqgy Posted March 18, 2014 Author Share Posted March 18, 2014 <table class="x-field x-table-plain x-form-item x-form-type-text x-abs-layout-item x-field-default x-absolute-form-item" style="left: 584px; top: 324px; width: 137px; height: 150px; display: none;" cellpadding="0" id="OA9_id"><tbody><tr role="presentation" id="OA9_id-inputRow" class="x-form-item-input-row"><td role="presentation" id="OA9_id-labelCell" style="display:none;" valign="top" halign="left" width="105" class="x-field-label-cell"><label id="OA9_id-labelEl" for="OA9_id-inputEl" class="x-form-item-label x-unselectable" style="width:100px;margin-right:5px;" unselectable="on"></label></td><td role="presentation" class="x-form-item-body " id="OA9_id-bodyEl" colspan="3"><textarea id="OA9_id-inputEl" name="OA9" rows="4" cols="20" tabindex="11" class="x-form-field x-form-text x-form-textarea" style="font:13px Courier New" autocomplete="off" aria-invalid="false"></textarea></td></tr></tbody></table> <div id="CodeMirror-wrapping-OA9_id" class="CodeMirror-wrapping" style="position: absolute; left: 584px; top: 324px; width: 97px; height: 150px; padding-left: 40px;"><textarea style="position: absolute; left: -10000px; width: 10px;"></textarea><iframe class="codemirror-iframe-OA9_id" frameborder="0" src="javascript:false" style="border: 0px; width: 100%; height: 100%; display: block;"></iframe><div id="CodeMirror-line-numbers-OA9_id" style="position: absolute; height: 100%; top: 0px; left: 0px; width: 40px; overflow: hidden;"><div class="CodeMirror-line-numbers"><div>1</div><div>2</div><div>3</div><div>4</div><div>5</div><div>6</div><div>7</div><div>8</div><div>9</div><div>10</div><div>11</div><div>12</div><div>13</div><div>14</div><div>15</div><div>16</div></div></div></div> Quote Link to comment Share on other sites More sharing options...
ganzqgy Posted March 18, 2014 Author Share Posted March 18, 2014 in "UniHiddenPanel1" .OK Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.