Thread View: borland.public.delphi.vcl.components.using.general
4 messages
4 total messages
Started by Alessandro Pugno
Tue, 08 Jul 2008 09:25
TwebBrowser script problem
Author: Alessandro Pugno
Date: Tue, 08 Jul 2008 09:25
Date: Tue, 08 Jul 2008 09:25
46 lines
2746 bytes
2746 bytes
I run an Url correctly, I put 2 date (from, to) in controls dataIniG ecc..
but the post method use the DEFAULT value put in the "dataTo" field and not
the compiled value.
I compile the fields using some code that search for the fields and write
the value (it can be saw).
But in this way the values in "dataFin" are not used.
If I compile the fields manually, using tab or mouse, it works.
It seems like the OnChange event doesn't occurs. (see below)
how can I do??
thanks.
Alessandro Pugno
<form name="listaFiltri">
<input type="hidden" id="dataIni" name="dataIni" value="">
<input type="text" id="dataIniG" name="dataIniG" size="2" maxlength="2"
value="" onChange="concatenaDataIni()"> /
<input type="text" id="dataIniM" name="dataIniM" size="2" maxlength="2"
value="" onChange="concatenaDataIni()"> /
<input type="text" id="dataIniA" name="dataIniA" size="4" maxlength="4"
value="" onChange="concatenaDataIni(); testDataNoClear(this.form.dataIni,
this.form.dataIniG)">
al
<input type="hidden" id="dataFin" name="dataFin" size="10" maxlength="10"
value="8/7/2008">
<input type="text" id="dataFinG" name="dataFinG" size="2" maxlength="2"
value="8" onChange="concatenaDataFin()"> /
<input type="text" id="dataFinM" name="dataFinM" size="2" maxlength="2"
value="7" onChange="concatenaDataFin()"> /
<input type="text" id="dataFinA" name="dataFinA" size="4" maxlength="4"
value="2008" onChange="concatenaDataFin(),
testDataNoClear(this.form.dataFin, this.form.dataFinG)"> (gg/mm/aaaa)
</td>
</tr>
<td class="bordofiltro" align="left">
<input id="buttonOk" name="buttonOk" onclick="sendValueScarica()"
type="button" value="Scarica" class="button" width="80px" height="23px">
</td>
</tr>
</table>
</td>
</tr>
</table>
Re: TwebBrowser script problem
Author: Remy Lebeau (TeamB)
Date: Tue, 08 Jul 2008 20:34
Date: Tue, 08 Jul 2008 20:34
19 lines
1860 bytes
1860 bytes
"Alessandro Pugno" <pugno@consulinformatica.it> wrote in message news:48734092@newsgroups.borland.com... > I run an Url correctly, I put 2 date (from, to) in controls dataIniG ecc.. > but the post method use the DEFAULT value put in the "dataTo" field > and not the compiled value. What "compiled" value are you referring to exactly? > I compile the fields using some code that search for the fields > and write the value (it can be saw). Please show the actual code. Are you sure you are actually finding the fields correctly? If you change a field value programmably, you should be seeing the new value appear visually in the field. Are you seeing that? Gambit
Re: TwebBrowser script problem
Author: Alessandro Pugno
Date: Wed, 09 Jul 2008 09:46
Date: Wed, 09 Jul 2008 09:46
27 lines
2273 bytes
2273 bytes
> > "Alessandro Pugno" <pugno@consulinformatica.it> wrote in message > news:48734092@newsgroups.borland.com... > >> I run an Url correctly, I put 2 date (from, to) in controls dataIniG >> ecc.. >> but the post method use the DEFAULT value put in the "dataTo" field >> and not the compiled value. > > What "compiled" value are you referring to exactly? The values that my program put inside the controls, which were ignorated. > >> I compile the fields using some code that search for the fields >> and write the value (it can be saw). > > Please show the actual code. Are you sure you are actually finding the > fields correctly? If you change a field value programmably, you should be > seeing the new value appear visually in the field. Are you seeing that? Yes, it could be saw that the fields's value changes. I put a pause in the code after the compilation of the fields, where i can simulate a manual insert of the values simply using the mouse and/or the tab key, but nothing is changed. I also tried to delete the default values (current day) putting empty string before putting the new and desidered values. Nothing.
Re: TwebBrowser script problem
Author: Remy Lebeau (TeamB)
Date: Wed, 09 Jul 2008 22:15
Date: Wed, 09 Jul 2008 22:15
11 lines
1363 bytes
1363 bytes
"Alessandro Pugno" <pugno@consulinformatica.it> wrote in message news:48748ae4$1@newsgroups.borland.com... > Yes, it could be saw that the fields's value changes. What you see visually in the web controls is what will actually be transmitted when the form is submitted. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads