Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Onclick in a link doesnt execute as needed


garnet

Recommended Posts

Posted

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

Posted

That doesn't look like Oscommerce to me.....

it is?

I just didnt use link function. Should I?

OSC beginner

Posted

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.

Posted

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.

Posted

onclick requires a javascript function not a relative url path.

something like?

 

document.location.href=

 

this didnt work?

What do I miss?

OSC beginner

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...