garnet Posted June 2, 2010 Posted June 2, 2010 Hi all I have a link on my page: <a href="http://bgtop.net/in.php/1254057637" target="_blank" onclick="../../topc.php"><img src="/includes/boxes/bgtop8831.gif" alt="" border="0"/></a> this code resides in categories box. It is supposed to execute a file (topc.php) in catalog folder but it doesnt. If you execute topc.php by typing its url it does the job. Why onclick doesnt work? Thanks OSC beginner
garnet Posted June 2, 2010 Author Posted June 2, 2010 That doesn't look like Oscommerce to me..... it is? I just didnt use link function. Should I? OSC beginner
garnet Posted June 3, 2010 Author Posted June 3, 2010 it is? I just didnt use link function. Should I? Anyone any ideas? OSC beginner
♥FWR Media Posted June 3, 2010 Posted June 3, 2010 Hi all I have a link on my page: <a href="http://bgtop.net/in.php/1254057637" target="_blank" onclick="../../topc.php"><img src="/includes/boxes/bgtop8831.gif" alt="" border="0"/></a> this code resides in categories box. It is supposed to execute a file (topc.php) in catalog folder but it doesnt. If you execute topc.php by typing its url it does the job. Why onclick doesnt work? Thanks onclick requires a javascript function not a url. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
♥FWR Media Posted June 3, 2010 Posted June 3, 2010 Hi all I have a link on my page: <a href="http://bgtop.net/in.php/1254057637" target="_blank" onclick="../../topc.php"><img src="/includes/boxes/bgtop8831.gif" alt="" border="0"/></a> this code resides in categories box. It is supposed to execute a file (topc.php) in catalog folder but it doesnt. If you execute topc.php by typing its url it does the job. Why onclick doesnt work? Thanks onclick requires a javascript function not a relative url path. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
garnet Posted June 3, 2010 Author Posted June 3, 2010 onclick requires a javascript function not a relative url path. something like? document.location.href= this didnt work? What do I miss? OSC beginner
Recommended Posts
Archived
This topic is now archived and is closed to further replies.