Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

How to make javascript buttons into regular buttons

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-12-2008, 12:01 PM
 
rhu rhu is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 63
 

Default How to make javascript buttons into regular buttons

I noticed that the buttons to login, submit, add to cart, etc. are javascript.

Is there a way to make these regular form buttons and not javascript?

I know it's something to do with button.tpl but I'm afraid to touch the code...
__________________
X-Cart 4.3.0 Gold
Reply With Quote
  #2  
Old 08-12-2008, 09:16 PM
 
Thedae2k Thedae2k is offline
 

eXpert
  
Join Date: Jan 2004
Posts: 288
 

Default Re: How to make javascript buttons into regular buttons

actually you can pretty easy but then you won't be able to press "enter" to make the buttons submit. Let me know if you don't mind that and I can help you.
__________________
X-Cart Pro 4.1.9
PHP5.2.5
MySQL 5.0.54
IIS/Apache/NGINX Webservers
Reply With Quote
  #3  
Old 08-16-2008, 12:19 PM
 
ReadytoCover ReadytoCover is offline
 

Senior Member
  
Join Date: Apr 2008
Posts: 124
 

Default Re: How to make javascript buttons into regular buttons

I think I would like to add this.

Is there any reason to use javascript vs regular button link?
__________________
x-cart 4.1.9
Reply With Quote
  #4  
Old 08-17-2008, 05:57 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: How to make javascript buttons into regular buttons

Other than having the ability to hit "Enter" and have the button submit, no. The more frustrating one is having the button use a "image" like on the newsletter subscription. I haven't figured out why this one is necessary.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:20 AM.

   

 
X-Cart forums © 2001-2020