Hello, <br><br>goal is simple login component working with ajax. After click on login button is component validate username and pass and render self.<br><br>i take login logic from seaside tutorial something like this:<br>
<br> html<br> form: [html textInput on: #email of: self;<br> value: ''.<br> html break.<br> html passwordInput<br> callback: [:value | self password: value];
<br> value: ''.<br> html submitButton<br> callback: [self validateLogin];<br> text: 'Login']<br clear="all"><br>but submitButton after click call http request and i donw know how change this button's ability. I remove submit button and add simple anchor something like this:
<br><br>html anchor onClick: (html updater id: 'login'; callback: [:r | self validateLogin. self renderContentOn: r| ]); with: 'login'.<br><br>but i have not set self email and pass because i think seaside set my variables after form submit. My question is simple how get value of textInput and passwordInput when i want use anchor and ajax. And second isn't there better way than anchor?
<br><br>-- <br>Jakub.<br><br><br>