digatle
04-07-2008, 08:22 PM
I'm having difficulty getting a custom BB code working properly and I'm wondering if I have my syntax correct.
Tag: card
Works: <a href="http://magiccards.info/autocard.php?card={param}">{param}</a>
Doesn't Work: <a href="http://www.magiccards.info/autocard.php?card={param}" onclick="AutoCard('{param}'); return false;" title="{param}">
Example: Wrath of God
What I need to have happen is when someone clicks on the card a popup window opens. The current method only takes them to the page.
Is there someone wrong with my code?
--------------- Added 1207603938 at 1207603938 ---------------
OK, I'm the idiot.
<a href="http://www.magiccards.info/autocard.php?card={param}" onclick="AutoCard('{param}'); return false;" title="{param}">{param}</a>
Tag: card
Works: <a href="http://magiccards.info/autocard.php?card={param}">{param}</a>
Doesn't Work: <a href="http://www.magiccards.info/autocard.php?card={param}" onclick="AutoCard('{param}'); return false;" title="{param}">
Example: Wrath of God
What I need to have happen is when someone clicks on the card a popup window opens. The current method only takes them to the page.
Is there someone wrong with my code?
--------------- Added 1207603938 at 1207603938 ---------------
OK, I'm the idiot.
<a href="http://www.magiccards.info/autocard.php?card={param}" onclick="AutoCard('{param}'); return false;" title="{param}">{param}</a>