JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 30th, 2001, 08:47 AM
ccrego15 ccrego15 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Posts: 5 ccrego15 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
JavaScript variables passed to java variables

Hello,

I am trying to pass a variable that is given it value on onchange

</select></td>
<td align=center><select onchange = "setTandemSwitchString()" name="switchListTable" size="10">
<%= switchListInfo%>
</select></td></tr>

this calls setTandemSwitchString()

function setTandemSwitchString()
{

strSwitch = document.eoFrame.switchListTable.options[document.eoFrame.switchListTable.options.selectedIndex].value;

document.eoFrame.switchList.value = strSwitch;



}
I am trying to send strSwitch variable back to the bean so I need it to pass it back as a java variable.

any suggestions?
Thanks

Reply With Quote
  #2  
Old May 30th, 2001, 09:02 AM
epl epl is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Dublin
Posts: 413 epl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 18 m 18 sec
Reputation Power: 13
I've had trouble going the other way - passing Java strings to javascript objects - in Netscape only (IE5&6, anyway, were fine).

As such, I'd be interested to hear of any solution you come across....

(not much help - sorry!)

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > JavaScript variables passed to java variables

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap