Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-07-2005, 03:33 PM   PM User | #1
aayalona
New to the CF scene

 
Join Date: Jun 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
aayalona is an unknown quantity at this point
setting a boolean data member of a form bean from javascript?

How do I set a boolean data member of a form bean from javascript?

eg.
XForm.java
boolean show = false;
setShow(boolean s)

boolean getShow()


How do i call setShow from javascript
i tried
document.XForm.setShow(true);

it did not work..
help will be really appreciated.

thank you
aayalona is offline   Reply With Quote
Old 07-08-2005, 05:29 AM   PM User | #2
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough
Java is server-side and Javascript is client-side. So you can't directly call a Java method from Javascript unless it is an applet. If it is indeed an applet, you'd do it like this:

Code:
document.applets['appletName'].setShow(true);
If it's not an applet, you can only execute a server-side code by submitting the form.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:14 PM.


Advertisement
Log in to turn off these ads.