![]() |
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? |
Re: Add popup window - can't get it to work
what version of XC are you using?
|
Re: Add popup window - can't get it to work
Version 4.2
|
Re: Add popup window - can't get it to work
Anybody got this working?
|
Re: Add popup window - can't get it to work
The code you are using doesn't support your version of XC
Code:
<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> So this need to be hard coded or you can consider upgrading your site to 4.4.5 which is the latest version |
Re: Add popup window - can't get it to work
Unfortunately upgrading is not an option.
Any suggestions on how to properly hardcode this? |
Re: Add popup window - can't get it to work
Warwick, I am having the same issue. I have the Pop-Up, but no content from the specified template. There are no symbols & everything is in lower case, but the pop up does not read the content of the template.
Let's hope we find an answer, soon! |
Re: Add popup window - can't get it to work
I'm not sure if there are any other solutions to this... but try this
http://www.smarty.net/forums/viewtopic.php?p=46991 http://www.allwebco-templates.com/support/S_add_pop.htm http://www.blazonry.com/javascript/windows.php |
All times are GMT -8. The time now is 05:41 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.