Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Can't get pop-up windows to work on my site  (Read 3661 times)

0 Members and 1 Guest are viewing this topic.

CSemerad

  • Guest
Can't get pop-up windows to work on my site
« on: October 17, 2006, 09:09:22 AM »
This could be a script error or it could be something else, but the pop-up windows that were working are not now. They are product detail windows with an add to cart button. I have attached the script from the page if someone can look at it and see if there is an issue with the writing. I don't think I have ever changed anything on this page in order to not make it work, but I have been adding Java scripts to other pages on the site, if that makes a difference. Let me know if other page scripts are needed, or the website address. Thanks everyone! You all have been very helpful in the other forums!

<div align="left">
      <table border="0" cellpadding="0" cellspacing="0"  width="10" >
            <tr>
          <td  colspan="3" height="24" bgcolor="#F0EDE2" style="border: 1px solid #FBDB6F" nowrap>
          <p align="center">
          <font face="verdana" style="font-size: 12pt" >{title}</font></td>
        </tr>
        
<!-- BEGIN row -->      
        
        
        {row.td1}
       <FORM action=https://www.paypal.com/cgi-bin/webscr method=post target=paypal>
      <table class="table1" cellspacing="1" cellpadding="5" width="275">
      <tr>
      <td>
          
<a href="JavaScript:selectPopUpWindow('details.php?id={row.product_id}','details',{row.details_width},{row.details_height},'scrollbars=yes')" >

<img  alt="{row.product_name}" src="product_images/{row.image}" width="{row.width}" height="{row.height}" border="0" />

         [/url]
      </td>
          <td >
          <p style="margin-top: 1; margin-bottom: 1;">
          
          <a class="link3" href="JavaScript:selectPopUpWindow('details.php?id={row.product_id}','details',{row.details_width},{row.details_height},'scrollbars=yes')" >
          {row.product_name}
          [/url]
          
          <span style="font-size: 9pt">
          </span>
          </p>
          <p style="margin-top: 4; margin-bottom: 4">
          <a class="link2" href="JavaScript:selectPopUpWindow('details.php?id={row.product_id}','details',{row.details_width},{row.details_height},'scrollbars=yes')" >
          Item: {row.product_no}

          [/url]
          </p>
          <p style="margin-top: 4; margin-bottom: 4">
          <font face="verdana" style="font-size: 9pt">Price: </font>

          <span style="font-size: 9pt">&nbsp; </span>
          <font face="verdana" color="#800000" style="font-size: 9pt">$ {row.price}</font></p>
          <p style="margin-top: 0; margin-bottom: 0" align="center">
          
          <INPUT type=hidden value="_cart" name=cmd>
          <INPUT type=hidden value="{paypal_name}" name=business>
          <INPUT type=hidden value="{row.product_name} - ID #{row.product_no}" name=item_name>
          <INPUT type=hidden name=item_number>
          <INPUT type=hidden value="${row.price}" name=amount>
        <INPUT type=image alt="Add To Basket" SRC="site_images/index_20.jpg" border="0">
        <INPUT type=hidden value=Color name=on0>
        <INPUT type=hidden value=1 name=add>
        
        </p>
        </td>
      </tr>
      </table>             
       </FORM>
      
       {row.td2}
<!-- END row -->

      </table>
      
      
      <table width="100%" cellspacing="0" cellpadding="25" border=0 >
              
              <tr>
              <td align="left" >
              <font face="verdana" color="#000000" style="font-size: 7pt">
                 &nbsp;Displaying {first_product} to {last_product} of {total_products} &nbsp;
             </font>

                  
              </td>
              <td align="right"  >
              <font face="verdana" color="#000000" style="font-size: 7pt">
                  Page
                  <!-- BEGIN page_row -->
                <a class="link4" href="{page_row.link}">{page_row.name}[/url] &nbsp;
               <!-- END page_row -->
               
               <!-- BEGIN link_prev -->
                    <a  class="link4" href="{link_prev.link}">&lt;&lt;[/url]
                    &nbsp;
              <!-- END link_prev -->
                    
              <!-- BEGIN link_next -->
                    <a  class="link4" href="{link_next.link}">&gt;&gt;[/url]
                    &nbsp;
              <!-- END link_next -->
                    of {total_pages}&nbsp;
              </font>
     
                </td>
              </tr>
              </table>
     </div>

    

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: Can't get pop-up windows to work on my site
« Reply #1 on: October 17, 2006, 02:16:58 PM »
What's all the stuff in curly brackets (braces: { }) about?  Are you using a templating system?  DTML?

This is not a complete page you have posted here.  Perhaps you could provide a link to the page - that would be easier.
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos