Plugin

Developer
Supported

EE 1
EE 2
AJAX Login

Back to this add-on's main page
View Other Add-ons From Laisvunas

     

You must be logged in to post.

Error messages

General

j_p
j_p

Hi.

I’m getting the following error in Firebug:

invalid XML markup
[Break On This Error] style_on_login_temporarily_msec: <?= @$style_on_login_temporarily_msec ?>,

If I ignore the error message, the form doesn’t work via AJAX at all.

If add in the missing apostrophes to the code(pi.ajax_login.php) to address the error, and refresh the page the form is on, I get alerts that the login button and form cannot be found.

This is my markup:

{exp:ajax_login 
form_id
="login_form" 
login_button_id="login_button" 
logout_button_id="logout_link" 


{exp
:member:login_form id="login_form"}
<p><label for="f_username">Username:</label><br />
<
input type="text" id="username" name="username"></p>
<
p><label for="f_pasword">Password:</label><br />
<
input type="password" id="password" name="password"></p>                            
<
p><input id="login_button" type="submit" name="submit" value="Submit" /></p>
{/exp:member:login_form}

<a id="logout_link href="path='LOGOUT'>Log out</a

 

All very frustrating.

 

 

j_p
# 1
j_p

OK, found that part of the problem is that the plugin uses short tags, so I’ve had to change these. I can now login, but my login callback is not being fired and there is the error “Refused to set unsafe header “Connection”.

Laisvunas
# 2
Developer
Laisvunas

Hi,

The error “Refused to set unsafe header “Connection” is Chrome only and does not interfere with the functionality of the script.

In order to analyze why your login callback isn’t called please post here your current code (full page, with html tag and the function you need to call).

j_p
# 3
j_p

I’ve decided to go with a different solution - thanks for the reply though.