JS change IWEdit

<< Click to Display Table of Contents >>

Navigation:  Forum >

JS change IWEdit

Forum link

 


 

03-07-2022, 09:08 AM:

 

My example:

 

 

 

IWEdit.Text:='test1';

 

Template: {%IWEdit%}

 

JS: document.getElementById('IWEdit').value ='test2' or $('#IWEdit').val('test2');

 

JS good change value in IWEdit from test1->test2

 

I would like to now Intraweb detect change IWEdit with IWEditAsyncChange

 

procedure TForm1.IWEditAsyncChange(Sender: TObject;

 

  EventParams: TStringList);

 

begin

 

      WebApplication.ShowNotification('Change!', ntSuccess);

 

end;

 

This change event not work?! I forgot the property IWEdit?!