Developer
Supported
AJAX Login
Back to this add-on's main page
View Other Add-ons From Laisvunas
Error messages
General
|
j_p
|
| Posted: 31 October 2011 09:08 AM |
|
|
|
|
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
|
| Posted: 31 October 2011 11:25 AM |
# 1
|
|
|
|
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
|
| Posted: 01 November 2011 11:39 AM |
# 2
|
|
|
Developer
|
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
|
| Posted: 01 November 2011 11:58 AM |
# 3
|
|
|
|
I’ve decided to go with a different solution - thanks for the reply though.
|
|
|
|