File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
value of a textbox from a tabbed pane control
Joined: Sep 27, 2004
Jun 21, 2006 11:18:00
i have a tabbed pane control ,with two tabs. the first tab, i have a textbox. on click of the second tab, i want the value of this textbox. how do i do this?
i tried the following: it didnt help.
var hdlyStrt1 = document.getElementById("hldyStartDate1"); alert("Holiday start" + hdlyStrt1) ; where hldyStartDate1 is the name of the textbox control. i get Holiday start null in the alert box.
SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
Joined: Nov 08, 2001
Jun 21, 2006 12:10:00
document.getElementById("hldyStartDate1"); is referencing an object. You need to look at the properties. Not sure how you tabs work, but if they require post back, than that textbox is probably no there to reference.
I agree. Here's the link:
subject: value of a textbox from a tabbed pane control
Passing hidden values from one tab to another
using h:inputHidden in JSF
on control+tab how to show different tabs in a tabbed pane(urgent)
How does tomahawk Tab comp work
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015