Forum Moderators: coopster

Message Too Old, No Replies

<td onClick="click.php">

         

bgb76

7:11 am on Oct 27, 2007 (gmt 0)

10+ Year Member



I was trying this code onclick the <td> with onclick to run an click.php file

<td onClick="click.php">

But browser displays error ' Error :"Click" is undefined'

is their anyway to execute php file in <? --silent mode--?>
or
javascript: something to load php file?

Help will be deeply apreciated in advance...

thank you
bharadwaj

m_ike842

7:22 am on Oct 27, 2007 (gmt 0)

10+ Year Member



sounds like something you would have to do in AJAX.

bgb76

7:29 am on Oct 27, 2007 (gmt 0)

10+ Year Member



nope i was trying to em-bed html with php

jatar_k

1:38 pm on Oct 28, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



it's just the javascript that's wrong

it needs to be window.location='click.php' or something like that

my js is rusty but they know here [webmasterworld.com]