mjcramos Posted May 5, 2017 Posted May 5, 2017 Hello, I am creating a login screen using bootstrap, the information that is in the tEdits I have been able to retrieve, however I have a checkbox that indicates whether or not to save the user data in cookies, I can not in any way recover a true or false Coming from checkbox, I'm using a tuniurlframe to display the controls I pass the data to the form using the OnAjaxEvent event In the end it does not return the property in the event I'm sending the project to make it easier to understand Login HTML.rar Quote
Sherzod Posted May 5, 2017 Posted May 5, 2017 Hi, <div class="checkboxes"> <label for="Lembra"><input id="Lembrar_id" name="Lembrar" type="checkbox" value="off"/> <span>Lembrar-me</span></label> </div> Try this: <div class="checkboxes"> <label for="Lembra"><input id="Lembrar_id" name="Lembrar" type="checkbox" /> <span>Lembrar-me</span></label> </div> Best regards, Quote
mjcramos Posted May 5, 2017 Author Posted May 5, 2017 Hi, thanks for the answer, I tested this, it always returns on independent whether or not I checkbox Quote
Sherzod Posted May 5, 2017 Posted May 5, 2017 Hi, Did you remove the property "value=": value="off" ? Quote
mjcramos Posted May 5, 2017 Author Posted May 5, 2017 <div class="checkboxes"> <label for="Lembra"><input id="Lembrar_id" name="Lembrar" type="checkbox" /> <span>Lembrar-me</span></label> </div> Yes, the code is the same as above, there when you inform user password and branch, and confirms after it simulate the login it gives a showmessage and indicates whether it received the property or not, always returns false, regardless of the checkbox marking Quote
Sherzod Posted May 5, 2017 Posted May 5, 2017 ** always returns false, regardless of the checkbox marking i.e. "off" ? Quote
mjcramos Posted May 5, 2017 Author Posted May 5, 2017 I tested in Internet Explorer and chrome and gave the same thing, unigui works this way? Quote
Sherzod Posted May 5, 2017 Posted May 5, 2017 Hi, Sorry, Maybe I did not quite understand your problem. Can you clarify once again ? Later I will try to make a small testcase. Best regards, Quote
Hayri ASLAN Posted May 6, 2017 Posted May 6, 2017 Hi, Please change this var lembrarField= $("input[name=Lembrar") <----- top.ajaxRequest(top.UniLoginForm1.UniURLFrame1,"Login",["usuario="+LoginField.val(),"senha="+SenhaField.val(), "Filial="+FilialField.val(),"llembrar="+lembrarField.val()]); <------ to this var lembrarField=$("input[name=Lembrar]").is(":checked"); <----- top.ajaxRequest(top.UniLoginForm1.UniURLFrame1,"Login",["usuario="+LoginField.val(),"senha="+SenhaField.val(), "Filial="+FilialField.val(),"llembrar="+lembrarField]); <---- Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.