I cant get a function to fire and am trying to narrow it down... Can onClick be in a TD?
Thanks in advance,
michael
Printable View
I cant get a function to fire and am trying to narrow it down... Can onClick be in a TD?
Thanks in advance,
michael
yes and no. No it Netscape 4. The onclick event is one of the html 4.01 core attributes os it should work fine.
Test it by putting an alert in it.
eg.
<td onclick="alert('test');">
if you're making that selectRate function in JavaScript, should you be using the dollar sign as your variable names. I thought that was only for scripting languages like PHP or Perl.. try this.
function selectRate(one, two, three){
alert('test');
alert(one);//room
alert(two);//rate
alert(three);//date
}
You cannot tell javascript to run a php function or vice versa, you cannot tell php to run a javascript function.
I can't recall where I picked up the habit of using $ for my passed variables but I've been doing it for a while. I did try it w/o the $ as you suggested and it still did not work. Any other ideas?
Thanks
Michael
I KNEW IT WAS SOMETHING STUPID!!! I don't even want to say what it is but I don't feel so bad because no one else saw it either.
onClick="selectRate= ('1','1','6/25/2002')"
:)
Michael
omg! how did I miss that?? :rolleyes: