Re: Problems retrieving data from form fields for non-encrypted host
"Siegfried Heintze" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Thanks Martin! I made your change and I don't get that message any more. Hurray! I really appreciate your prompt response as I'm giving a demo tonight to a local users group. So now I have these two edit boxes with the default values in them and when I click add, it adds correctly. However, if I try to change the numeric values in the edit boxes and then click add, it restores the default values and computes the same sum again. This is strange! Why is it doing this and how do I surpess it? Thanks, Siegfried "Martin Honnen" <[email protected]> wrote in message news:[email protected]... > > > Siegfried Heintze wrote: > > > The message is: "The information you have entered is to be sent over an > > unencrypted connection and could easily be read by a thired party. > > > > Are you sure you want to continue sending this information?" > > > > At this point, I can see it has already correctly called my web service, > > received the data and displayed the correct sum. Now, when I press continue, > > the entire page is restored to its appearence before pressing my "add" > > button. > > > 120 <form name=main> > > > 132 <button style=border:110 OnClick="add();">Add</button> > > As I said (well speculated) in the previous post, you are submitting a > form to itself, you want > <button type="button" onclick="add();">Add</button> > instead to have a simple push button only reacting to script but not > submitting the form. > Currently you have a submit button as submit is the default: > <http://www.w3.org/TR/html4/interact/forms.html#h-17.5> > > > -- > > Martin Honnen > http://JavaScript.FAQTs.com/