[Pas2js] submit??
Michael Van Canneyt
michael at freepascal.org
Tue Aug 20 10:35:52 CEST 2019
On Tue, 20 Aug 2019, Mattias Gaertner via Pas2js wrote:
> On Tue, 20 Aug 2019 09:43:32 +0200 (CEST)
> Michael Van Canneyt <michael at freepascal.org> wrote:
>
>> On Mon, 19 Aug 2019, Pedro Pablo Oviedo Vera wrote:
>>
>> > Hello ...iit is me again...perhaps it is a stupid question but ....
>> >
>> > I Trying traslate from Javascript to Pas2JS this:
>> >
>> > document.informacion1,submit()
>> >
>>
>>
>> The reset, submit and reportValidity methods of TJSHTMLFormElement
>> were missing. I added them in trunk.
>>
>> You can now simply do
>>
>> document.informacion1.submit
>
> Do you mean something like
>
> TJSHTMLFormElement(document.getElementById('informacion1')).submit
Yes.
Depends obviously on what document.informacion1 actually is, but the above
should always work.
Michael.
More information about the Pas2js
mailing list