mjcramos Posted May 5, 2017 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted May 5, 2017 Share 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 Link to comment Share on other sites More sharing options...
mjcramos Posted May 5, 2017 Author Share Posted May 5, 2017 Hi, thanks for the answer, I tested this, it always returns on independent whether or not I checkbox Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 5, 2017 Share Posted May 5, 2017 Hi, Did you remove the property "value=": value="off" ? Quote Link to comment Share on other sites More sharing options...
mjcramos Posted May 5, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted May 5, 2017 Share Posted May 5, 2017 ** always returns false, regardless of the checkbox marking i.e. "off" ? Quote Link to comment Share on other sites More sharing options...
mjcramos Posted May 5, 2017 Author Share Posted May 5, 2017 Always true returns, sorry Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 5, 2017 Share Posted May 5, 2017 Which browser are you using? Quote Link to comment Share on other sites More sharing options...
mjcramos Posted May 5, 2017 Author Share Posted May 5, 2017 FireFox Quote Link to comment Share on other sites More sharing options...
mjcramos Posted May 5, 2017 Author Share Posted May 5, 2017 I tested in Internet Explorer and chrome and gave the same thing, unigui works this way? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 5, 2017 Share 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 Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted May 6, 2017 Share 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 Link to comment Share on other sites More sharing options...
mjcramos Posted May 8, 2017 Author Share Posted May 8, 2017 Thank you, it was perfect. Quote Link to comment Share on other sites More sharing options...
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.