Hi I hope somebody is able to help with a problem I have with Newsletter Module.
I have configured a page called Newsletter Handler, using the Newsletter Handler module. However, it doesn't handle things very well. Whenever I try to subscribe/unsubscribe to the Newsletter as a frontuser, I get an error.
The error is "document.forms.loginform is null or not an object".
I hope somebody is able to give me some insight on what this problem could be.
I appreicate your help
Geuxor
Newsletter Module error
Thanks for your reply Xmurrix,
I am not sure if I understand what you mean. You think that the login.html template is not coded correctly? or is it that the Newsletter handler is not pointing to the correct html template?
If so would you be able to provide me with yours or have a look at the below code to see what is wrong?
This is the login.html template...
The Newsletter Handler module I am using is here:
[HerrB: Cut...]
Hope you can help and thanks for your time...
Geuxor
I am not sure if I understand what you mean. You think that the login.html template is not coded correctly? or is it that the Newsletter handler is not pointing to the correct html template?
If so would you be able to provide me with yours or have a look at the below code to see what is wrong?
This is the login.html template...
Code: Alles auswählen
<div id="loginbox">
<form method="post" action="{FORM_ACTION}" style="padding:0;margin:0;" name="loginform" id="loginform">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/blank.gif" width="1" height="1" border="0"/></td>
<td><img src="images/blank.gif" width="1" height="1" border="0"/></td>
<td><img src="images/blank.gif" width="1" height="1" border="0"/></td>
</tr>
<tr>
<td><label for="username" class="label_searchbox">{USERNAME}</label></td>
<td><input type="input" name="username" id="username" value="" class="input_searchbox" style="margin-bottom:.4em;"/></td>
<td> </td>
</tr>
<tr>
<td><label for="password" class="label_searchbox">{PASSWORD}</label></td>
<td><input type="password" name="password" id="password" value="" class="input_searchbox"/></td>
<td><a href="javascript:document.forms['loginform'].submit();" style="color: #000000;" title="{GO}"><!--{GO}</a--> <a href="javascript:document.forms['loginform'].submit();" title="{GO}"><img src="images/catbullet.gif" alt="{LOGIN}" title="{LOGIN}" border="0"/></a></td>
</tr>
</table>
</form>
</div>
The Newsletter Handler module I am using is here:
[HerrB: Cut...]
Hope you can help and thanks for your time...
Geuxor
-
- Beiträge: 3215
- Registriert: Do 21. Okt 2004, 11:08
- Wohnort: Augsburg
- Hat sich bedankt: 4 Mal
- Danksagung erhalten: 17 Mal
- Kontaktdaten:
the posted code looks ok, can't find any discrepancies.
login-template does not includes any errors. you have to change "document.forms['loginform'].submit()" on using it for other modules, thats all.
i've thought that you are using a copy of login-template for your newsletter handler, but the module works without any templates.
at the moment i've no idea for resolving your issue. maybe it would be easier to help on seeing this behaviour in action, do you have any url where i can look at the html output?
regards
xmurrix
login-template does not includes any errors. you have to change "document.forms['loginform'].submit()" on using it for other modules, thats all.
i've thought that you are using a copy of login-template for your newsletter handler, but the module works without any templates.
at the moment i've no idea for resolving your issue. maybe it would be easier to help on seeing this behaviour in action, do you have any url where i can look at the html output?
regards
xmurrix
There is a minor bug in the V4.6.8 newsletter form template (not the login.html is used, the newsletter_form.html template is used - unfortunately it contains wrong JS pointing to the login form).
Please use the updated package (see signature, modules). Update to V4.6.8.5 is also a good idea (see Misc V4.6).
Regards,
HerrB
Please use the updated package (see signature, modules). Update to V4.6.8.5 is also a good idea (see Misc V4.6).
Regards,
HerrB
Bitte keine unaufgeforderten PMs oder E-Mails -> use da Forum!
Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net
Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net