|
-
Jun 13th, 2002, 11:23 AM
#1
Thread Starter
Frenzied Member
(javascript) Can onClick be in a TD? **Resolved**
I cant get a function to fire and am trying to narrow it down... Can onClick be in a TD?
Thanks in advance,
michael
Last edited by msimmons; Jun 13th, 2002 at 02:19 PM.
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Jun 13th, 2002, 11:29 AM
#2
Fanatic Member
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');">
-
Jun 13th, 2002, 12:44 PM
#3
Addicted Member
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
}
-
Jun 13th, 2002, 12:46 PM
#4
Fanatic Member
You cannot tell javascript to run a php function or vice versa, you cannot tell php to run a javascript function.
-
Jun 13th, 2002, 01:42 PM
#5
Thread Starter
Frenzied Member
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'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Jun 13th, 2002, 02:18 PM
#6
Thread Starter
Frenzied Member
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
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Jun 13th, 2002, 02:23 PM
#7
Fanatic Member
omg! how did I miss that??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|