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:

> I'm pleased to say that I have a small web service client that runs in
> Mozilla's javascript. I can add two numbers as long as I hard code the
> addends in the java script.
> 
> However, when I try to retreive the addends from some form fields, I get a
> dialog box that says I'm sending data to an unencrypted host and there is a
> single OK button.

Reading a form field is simply
   var value = document.forms.formName.elements.inputName.value;
so Mozilla will hardly give you any dialog box about sending data 
unencrypted.
You will need to show us exactly on how you use script to send data, I 
don't think that message depends on script getting a value from a form 
or not.

> Unfortunately, I clicked the checkbox that says "do not show this message
> again". I wish I had not done that. How do I undo that?

I think it is the preference named
   security.warn_submit_insecure
so you would need to change that back to true, one way to do that is 
loading the (pseudo) URL
about:config
into Mozilla, search for that preference and then change it 
(right-click->modify).

> Anyway, prior to having unchecked that check box, I could see that they (the
> web service and client) were performing the addition correctly but as soon
> as I clicked the OK button, the form was restored to its previous state.

Show us some code, a URL maybe, perhaps it is just an onclick or 
onsubmit handler firing and then reloading the page. It is not possible 
to tell what goes on from the textual description.

And check the JavaScript console for any errors.


-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.