Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Popup menu onChange help...


Recommended Posts

Hello all...


On my product_info.php I have several popup menus which have product options. On the layout I have a link next to the popup which will (when clicked) open another window showing greater detail about this option.

I am having problems getting the link and the onClick to work... Can someone shed some light?


In my product_info.php at the to script portion I have:

 function JumpTo(theMenu){
.. this is where I need to set a variable to be used when passed to the open window link below


In my options section they look like the following:

              <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute, 'onChange="JumpTo(this)"'); ?></td>


The code for the click the link button is as follows (give or take):

	<script language="javascript">
document.write('<td class="main"><?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(popup_details . '.' .php, 'pID=' . $selMenu) . '\\\')">' . TEXT_CLICK_4_INFO . '</a>'; ?></td>');
 <td class="main"><?php echo '<a href="' . tep_href_link( popup_details. '.' . php . ', pID=' . $selMenu) . '" target="_blank">' .  '<br>' . TEXT_CLICK_4_INFO . '</a>'; ?></td>


the variable $selMenu is what I need set in the JumpTo code.


Thanks in advance...

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...