[Pas2js] submit??

Pedro Pablo Oviedo Vera verakuba13 at gmail.com
Mon Aug 19 17:27:11 CEST 2019


Hello ...iit is me again...perhaps it is a stupid question but ....

I Trying traslate from Javascript to Pas2JS this:

document.informacion1,submit()

but I not find correct submit function...

on my project1.html I have a

<form id='informacion1' .....>
     <input type="button" id="enviar1"  ....>
</form>

and in my  project1.pas....I have written :

 FBtnEnviar1:= TJSHTMLButtonElement(document.getElementById('enviar1'));
FBtnEnviar1.onclick:= @Form2Sent;

then

function Form2Sent(aEvent: TJSMouseEvent):Boolean;
var
  MensajeError: String;
begin
  MensajeError := '';

 if not(MensajeError='') then
 begin
   Window.alert('Hola '+ MensajeError);
 end
 else
   document.informacion1.submit; <<< but not find how I can do it!!!!

Is it possible?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20190819/94450159/attachment.html>


More information about the Pas2js mailing list