Re: Problems retrieving data from form fields for non-encrypted host
Martin Honnen <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[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/