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

button problems in table

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-11-2005, 06:33 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default button problems in table

I am trying to put my password recovery in a new table that I made.
When I did that the go button doesn't want to dislay properly and my error message is always showing. could someone take a look at it and help me out.

Link to view my problem:
http://www.michaelmoskva.com/xcart/help.php?section=Password_Recovery

Code:
<TABLE border="0" width="100%" cellpadding="0" cellspacing="0" class="WhiteBgsignin"> <TR> <td width="48" height="19"></td> <td width="900" valign="top"><font class="Subheader3b">{$lng.txt_email_invalid}</td> </tr> </table> <table border="0" width="100%" cellpadding="0" cellspacing="0" class="WhiteBgsignin"> <tr> <td>[img]{$ImagesDir}/spacer.gif[/img]</td> <td width="100%"> <table border="0" width="100%" cellpadding="0" cellspacing="0" > <tr> <td><table border="0" width="100%" cellpadding="0" cellspacing="1"> <tr> <td width="50%" height="120" valign=top class=NavDialogBox_> [img]{$ImagesDir}/spacer.gif[/img]<font class=SubHeader2>{$lng.lbl_email}</font> <table border="0" width="100%" cellpadding="0" cellspacing="1" align="center" class=NavDialogBox_> </table></td> <td class=WhiteBgsignin> [img]{$ImagesDir}/spacer.gif[/img]</td> <td class=WhiteBgsignin width="50%" valign=top> <table border="0" width="100%" cellpadding="0" cellspacing="1" align="center" class=NavDialogBox_> <tr><td height="10" width="13"></td> <td width="565" height="120" valign=top class=NavDialogBox_> [img]{$ImagesDir}/spacer.gif[/img] <font class=SubHeader2> <INPUT type="text" name="email" size="30" value="{$smarty.get.email|escape:"html"}"></font> [img]{$ImagesDir}/spacer.gif[/img] <table border="0" width="100%" cellpadding="0" cellspacing="1" align="center" class=NavDialogBox_> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> <td>[img]{$ImagesDir}/spacer.gif[/img]</td> </tr> </table> <TABLE border="0" width="100%" cellpadding="0" cellspacing="0" class="WhiteBgsignin"> <TR> <td width="42" height="26" class="WhiteBgsignin">[img]{$ImagesDir}/spacer.gif[/img]</td> <td width="581" class=SubHeader2Line> </td> <td width="4" class="WhiteBgsignin"></td> <td width="579" class="SubHeader2Line">{literal} {include file=&quot;buttons/submit.tpl&quot; href=&quot;javascript: document.processform.submit()&quot; js_to_href=&quot;Y&quot;} {/literal} </td> <td width="42" class="WhiteBgsignin">[img]{$ImagesDir}/spacer.gif[/img]</td> </TR> </TABLE> <TABLE border="0" width="100%" cellpadding="0" cellspacing="0" class="WhiteBgsignin"> <TR> <td width="48" height="29"></td> <td width="900" class=big_text2></td> </tr> </table>
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #2  
Old 11-11-2005, 09:41 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

can someone help me out on why my submit buttom keeps giving me javascript errors?
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #3  
Old 11-11-2005, 12:12 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Quote:
{literal} {include file=&quot;buttons/submit.tpl&quot; href=&quot;javascript: document.processform.submit()&quot; js_to_href=&quot;Y&quot;} {/literal}

Something is seriously wrong with your code....you should not have any &quot; in there, or literal tags.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 11-11-2005, 12:21 PM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

hey man whats up..

This is my original Buton code from the email password:
{include file="buttons/submit.tpl" href="javascript: document.processform.submit()" js_to_href="Y"}

But iwhen i hit submit i get a java error; dont kow what to chage the button code to to make it work? Appreciate your help.


http://www.michaelmoskva.com/xcart/help.php?section=Password_Recovery



Code:
<td class=WhiteBgsignin width="50%" valign=top><table border="0" width="100%" cellpadding="0" cellspacing="1" align="center" class=NavDialogBox_> <tr> <td height="10" width="13"></td> <td width="565" height="120" valign=top class=NavDialogBox_> [img]{$ImagesDir}/spacer.gif[/img] <INPUT type="text" name="email" size="30" value="{$smarty.get.email|escape:"html"}">[img]{$ImagesDir}/spacer.gif[/img] {include file="buttons/submit.tpl" href="javascript: document.processform.submit()" js_to_href="Y"} [img]{$ImagesDir}/spacer.gif[/img] <table border="0" width="100%" cellpadding="0" cellspacing="1" align="center" class=NavDialogBox_> </table></td>
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #5  
Old 11-11-2005, 12:28 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Did you alter the button templates or rectangle_top.tpl?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 11-11-2005, 01:37 PM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

No I didnt alter any of the button templates or rectangle_top.
I wanted to change to layout of the password_recovery.tpl file:

(1) I dont want to stick to the dialog.tpl layout, so i commented that out and then created a custom table design that I wanted to use in its place. (2) then i took the code from the cells in the original password_recover.tpl file and placed them into my table cells.

From their i tried to ented an email but got a javascript error when i hit the GO button.
Does this help you understand what i did. appreciate your help.

http://www.michaelmoskva.com/xcart/help.php?section=Password_Recovery
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #7  
Old 11-14-2005, 07:36 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default

need some help can anyone see why i am getting the problem with the button?
__________________
x-cart 4.0.16v
linux server
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 07:44 AM.

   

 
X-Cart forums © 2001-2020