I have this code to work with:
<div data-role="content">
<div data-role="content">
<form id="registerForm" action="/register" method="post" data-ajax="false" class="ui-body ui-body-a ui-corner-all">
<fieldset>
<div data-role="fieldcontain">
<label for="rUIdInput">Email:</label>
<input name="<%=User.USER_ID%>" id="rUIdInput" value="" type="email" placeholder="your.mail@abc.com" />
<label for="rUPwInput">Password:</label>
<input name="<%=BasicAuthRedirectServlet.PASSWORD%>" id="rUpwInput" value="" type="password" placeholder="Your password" />
</div>
<button type="submit" data-theme="b">Register</button>
</fieldset>
</form>
</div>
</div>
When I click the register button and type on some values and hit register, I get back a JSON object. I m not sure how to get a handle on this JSON object
THANKS!
I hopefully assume that you need to
POSTthe data of the form to/register. If that is the case, then this is what you need to follow. You have already said that the button is:Using jQuery (or jQM), you can do this:
Give an
IDto the button and the form.Next is setting the handler for the button action.
Say if this worked for you.