Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 13 of 13 total
Thread TPage POST
Thu, Jul 24 2014 5:42 AMPermanent Link

Matthew Jones

Tim,

I switched to using the panel's SubmitForm, but then found that I had
to use hidden fields so I re-instated my hack for the moment. The
documentation says that a .SubmitForm posts the edits and the like that
are on the panel. How would I replicate a hidden field please?

xInput := THTMLInputElement(CreateHTMLElement('input'));
xInput.type := 'hidden';
xInput.name := xParams.Names[nLoop];
xInput.value := xParams.ValueFromIndex[nLoop];
AddHTMLElement(FForm, xInput);

--

Matthew Jones
Thu, Jul 24 2014 12:58 PMPermanent Link

Walter Matte

Tactical Business Corporation

I have put TEdit boxes with  edit1.visible := false on the Panel and they get submitted as "hidden fields"

Walter


"Matthew Jones" wrote:

Tim,

I switched to using the panel's SubmitForm, but then found that I had
to use hidden fields so I re-instated my hack for the moment. The
documentation says that a .SubmitForm posts the edits and the like that
are on the panel. How would I replicate a hidden field please?

xInput := THTMLInputElement(CreateHTMLElement('input'));
xInput.type := 'hidden';
xInput.name := xParams.Names[nLoop];
xInput.value := xParams.ValueFromIndex[nLoop];
AddHTMLElement(FForm, xInput);

--

Matthew Jones
Fri, Jul 25 2014 4:29 AMPermanent Link

Matthew Jones

Walter Matte wrote:

> I have put TEdit boxes with  edit1.visible := false on the Panel and
> they get submitted as "hidden fields"

Ahah! Thanks.

--

Matthew Jones
Previous PagePage 2 of 2
Jump to Page:  1 2
Image