Jul
14
vB4 onclick in a template
ByI am trying to use onclick to popup a window with some data retrieved form the DB. I already hav eth edata in {vb:raw queuelist.message}
When I put the below code in my template, it displays {vb:raw queuelist.message} on the main page, instead of just inside the popup window. Is there anyway to correct this?
{vb:raw queuelist.message} usually contains HTML, and I'm thinking this is what is causing the problem.
So I tried it with just text, now the main page displays as expected, but when I click on the link nothing happens.
When I put the below code in my template, it displays {vb:raw queuelist.message} on the main page, instead of just inside the popup window. Is there anyway to correct this?
Code:
<img src="{vb:stylevar imgdir_statusicon}/post_new.gif" alt="" /><a href="mailist.php#" onclick="window.open('{vb:raw queuelist.message}','message','width=800,height=622');">{vb:raw queuelist.subject}</a></p>So I tried it with just text, now the main page displays as expected, but when I click on the link nothing happens.
