OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

Java questions

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Java questions
Page: [1]
 
chadb

 

Posts: 501
From: Kansas
Status: offline

 
Java questions - 8/13/2009 11:55:06   
Can I put 2 onclick statements in? I can't seen to get this to work

<input type="radio" onclick="makeEnable()" onclick="chgtxEnable()" value="V3" name="R1">

Thanks
Cahd
swoosh

 

Posts: 1535
Joined: 5/18/2002
From: Beaver Falls, PA
Status: offline

 
RE: Java questions - 8/13/2009 14:27:24   
quote:

onclick="makeEnable()" onclick="chgtxEnable()"


I believe you can have them both but under one ONCLICK. Just separate them with a semi colon


onclick="makeEnable();chgtxEnable()"



_____________________________

Swoooosh
Just Do It!


(in reply to chadb)
chadb

 

Posts: 501
From: Kansas
Status: offline

 
RE: Java questions - 8/13/2009 15:11:56   
OK Thanks, but now I have 2 java functions on one text box, Is there a way to have 1 trump the other? Here is the code. What is does is if someone clicks the text box, it brings up a calendar, but I also have a radio button that is I select I want the date2 box disabled. Here is that function:
<input type="radio" onclick="makeEnable();chgtxDisable()" value="V3" name="R1">




<input onclick="ds_sh(this);" name="date2" readonly="readonly" style="cursor: text" size="20" />  </td>

(in reply to swoosh)
swoosh

 

Posts: 1535
Joined: 5/18/2002
From: Beaver Falls, PA
Status: offline

 
RE: Java questions - 8/14/2009 9:27:03   
quote:

I have 2 java functions on one text box, Is there a way to have 1 trump the other?


Wouldn't it be better served as one function with an IF STATEMENT?

_____________________________

Swoooosh
Just Do It!


(in reply to chadb)
chadb

 

Posts: 501
From: Kansas
Status: offline

 
RE: Java questions - 8/14/2009 9:31:51   
Sounds good to me, the only issue is I am very new to javascript. Can you provide an example of the correct way to use a if statement?

(in reply to swoosh)
TexasWebDevelopers

 

Posts: 722
Joined: 2/22/2002
From: Dallas, TX
Status: offline

 
RE: Java questions - 8/14/2009 10:39:15   
Contrary to what is intutive the second function of the pair will fire first.

_____________________________

:)

Follow us on TWITTER

(in reply to chadb)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Java questions
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts