Focal Point
Using the calendar

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6331046602

January 11, 2007, 03:25 PM
Håkan
Using the calendar
Does anybody have a working way of retrieving the calendar values? I get the result "undefined" when trying to display this.calendar1.value.

Tia
Håkan


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
January 12, 2007, 06:08 AM
Tony A
Håkan,

What type of HTML control are you using? Post the tag set for your calendar control.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
January 12, 2007, 07:49 AM
Håkan
Tony, sorry. I should have mentioned it's the HTML calendar control from Dev Studio HTML Layout Painter.


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
January 12, 2007, 08:54 AM
<Tim Howard_ABCBS>
In javascript you can either use the following:

calendar1.value

or the more correct DOM way:

document.getElementById("calendar1").value

I've used both ways in my code and they both work great.
January 12, 2007, 09:00 AM
Håkan
Tim, thanks. The second option works fine.


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)