Atozed Forums
JS change IWEdit - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: JS change IWEdit (/thread-2659.html)



JS change IWEdit - matija - 03-07-2022

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?!