| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Two authboxes causing javascript error | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() OK, experimenting with two authentication boxes (authbox.tpl) on the page, but the strange thing is that when I click the "Logoff" text next to the "Go" button, it results in a javascript error "Object does not support this method". Alternatively, if I click the "Go" button it does actually logoff. This behaviour only happens when the two authboxes are present on the page.
I've seen this mentioned once before on the forum but no solution or reason as to why it happens. The button code on the authbox is (which I gather is default X-Cart): Code:
and the button/logout_menu.tpl is: Code:
Any ideas? Dan
__________________
4.4.2 and 4.6.1 |
|||||||
#2
|
|||||||
|
|||||||
![]() Worked it out. X-Cart/Javascript doesn't seem to like the two forms having the same name. I've made a second (copied) authbox.tpl and changed the "name" of the form from:
Code:
to: Code:
then I updated the a href tag of the button to reference this form: I now have the original authbox.tpl on the side menu and the doctored authbox.tpl (authbox_mod.tpl) within the page. It now logs off regardless of what's pressed! Dan
__________________
4.4.2 and 4.6.1 |
|||||||
#3
|
|||||||
|
|||||||
![]() I'm getting errors on this topic... I created a "Your Account" page which can display the login so I end up with 2 login boxes (one on the menu left and the "account" page I created).
I'm clear about the first part of your mod but where do I modify the button hyperlink you reference in the last entry of your mod? My issue is login in only not logout. I only display one logout button on the side menu. Thanks
__________________
X-Cart GOLD 4.0.17 Affiliate RMA AOM Configurator --- PHP 4.4.2 MYSQL 4.1.21 |
|||||||
#4
|
|||||||
|
|||||||
![]() Hi,
In my modified auhtbox (authbox_mod.tpl) I have: Code:
which is the button code. Dan
__________________
4.4.2 and 4.6.1 |
|||||||
#5
|
|||||||
|
|||||||
![]() so you are adding the above code or modifying the existing code? Here is my version as of right now.
Code:
__________________
X-Cart GOLD 4.0.17 Affiliate RMA AOM Configurator --- PHP 4.4.2 MYSQL 4.1.21 |
|||||||
#6
|
|||||||
|
|||||||
![]() My opening form tag is:
Code:
and then the bottom of my file looks like: Code:
so long as the button code I gave is within the form tags it should work, so you may want to try something like: Code:
which is the code you gave me and my button code inserted......that might work ![]() Dan
__________________
4.4.2 and 4.6.1 |
|||||||
#7
|
|||||||
|
|||||||
![]() other than authbox_mod are there any other files which need modification?
Thanks for thi shelp it's been driving me insane!
__________________
X-Cart GOLD 4.0.17 Affiliate RMA AOM Configurator --- PHP 4.4.2 MYSQL 4.1.21 |
|||||||
#8
|
|||||||
|
|||||||
![]() No, all I did was make a copy of the authbox and then adjust the opening form tag (to read loginform2) and the button code.
Dan
__________________
4.4.2 and 4.6.1 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|