Submit login form using Ajax - Joomla! Forum - community, help and support
i need submit form below (components/com_users/views/login/tmpl/default_login.php. ) using ajax. (i'm new ajax , php, javascript area).
my ajax request come external mobile app (on click, run javascript ajax submit form).
is possible? if yes, parameters should pass ajax request (based on example here : "http://stackoverflow.com/questions/16616250/form-submit-with-ajax-passing-form-data-to-php-without-page-refresh" need pass url, data , success).
if possible, i'm able pass username , password (which form fetch them fieldset), can provide them in plain text (no security concerts that).
deeply appreciate help.
code: select all
<form action="<?php echo jroute::_('index.php?option=com_users&task=user.login'); ?>" method="post">
<fieldset>
<?php foreach ($this->form->getfieldset('credentials') $field): ?>
<?php if (!$field->hidden): ?>
<div class="login-fields"><?php echo $field->label; ?>
<?php echo $field->input; ?></div>
<?php endif; ?>
<?php endforeach; ?>
......
</form>my ajax request come external mobile app (on click, run javascript ajax submit form).
is possible? if yes, parameters should pass ajax request (based on example here : "http://stackoverflow.com/questions/16616250/form-submit-with-ajax-passing-form-data-to-php-without-page-refresh" need pass url, data , success).
if possible, i'm able pass username , password (which form fetch them fieldset), can provide them in plain text (no security concerts that).
deeply appreciate help.
you have questions related same issue. cross posting forbidden. next why effort when have http://extensions.bowthemes.com/bt-login.html free available?
leo
leo
Comments
Post a Comment