[Typo3] Login box submit button
Martin Wan
mwan at Objectivasoftware.com
Sun Aug 21 12:15:45 CEST 2005
I did it. Using the following code:
<a
href="javascript:void(0);document.getElementsByName('loginform')[0].subm
it();" class="dclink" style="cursor:hand">Logout</a>
My problem was caused by this line:
<input type="hidden" name="submit" id="tx-newloginbox-pi1-logout_submit"
value="Logout" class="tx-newloginbox-pi1-submit" />
I thought this line is valuable, but I am wrong. So I just delete it and
no scripts error occurs again.
Martin.
-----Original Message-----
From: Martin Wan [mailto:mwan at objectivasoftware.com]
Sent: Saturday, August 20, 2005 20:26
To: 'typo3-english at lists.netfielders.de'
Subject: Login box submit button
Hi all,
The default logout-button of login box is:
<input type="submit" name="submit" id="tx-newloginbox-pi1-logout_submit"
value="Logout" class="tx-newloginbox-pi1-submit" />
At here, I tried to use a text-link to submit the logout request. I
changed the type of the default logout-button to "hidden", and added a
text-link. However, when I click the "Logout" text link, it does not
work. The following URL is showed at the IE address:
http://192.168.2.63/this.form.submit();
Following is the html code.
<a href="this.form.submit();" class="dclink">Logout</a>
<input type="hidden" name="submit" id="tx-newloginbox-pi1-logout_submit"
value="Logout" class="tx-newloginbox-pi1-submit" />
Could anyone please help me?
Thanks
Martin Wan
More information about the TYPO3-english
mailing list