X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   button problems in table (https://forum.x-cart.com/showthread.php?t=17899)

mmoskva 11-11-2005 06:33 AM

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>


mmoskva 11-11-2005 09:41 AM

can someone help me out on why my submit buttom keeps giving me javascript errors?

balinor 11-11-2005 12:12 PM

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.

mmoskva 11-11-2005 12:21 PM

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> 


balinor 11-11-2005 12:28 PM

Did you alter the button templates or rectangle_top.tpl?

mmoskva 11-11-2005 01:37 PM

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

mmoskva 11-14-2005 07:36 AM

need some help can anyone see why i am getting the problem with the button?


All times are GMT -8. The time now is 03:29 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.