Add popup window - can't get it to work
I have found several threads about this subject, getting a popup window to appear but can't get it to work.
In a .tpl file I added the following:
---
<a href="popup_info.php?action=templatename" onclick="javascript: return typeof(window.popupOpen) == 'undefined' || !popupOpen('popup_info.php?action=templatename', '{$title|wm_remove|escape:javascript}');" class="popup-link" target="_blank"><img src="{$ImagesDir}/spacer.gif" alt="{$lng.lbl_popup_help|escape}" /></a>
---
With this code the x-cart questionmark icon is shown and it is clickable, opening a popu which should hold the content of hlp_templatename.tpl;
So in skin1/help/ I created the hlp_templatename.tpl file which is called.
But I keep on getting a popup (so at least that part works) but with a message the page can't be found or isn't accessable. I have read several posts about this but can't find an answer.
Any idea what could be going wrong?
|