View Single Post
  #1  
Old 10-13-2005, 06:56 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default Two authboxes causing javascript error

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:
{if $js_enabled} {include file="buttons/logout_menu.tpl"} {else} {include file="buttons/logout_menu.tpl"} {/if}

and the button/logout_menu.tpl is:

Code:
<FONT class="VertMenuItems">{$lng.lbl_logoff} </FONT><INPUT type="image" { include file="buttons/go_image_menu.tpl" }>

Any ideas?

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote