473,385 Members | 1,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

dynarch calendar, rows of inputs, init

First off, I think the dynarch calendar is quite wonderful, and I've
been using it for months.

I'm having some issues with form inputs in rows, and initializing the
calendar.
My fields, and inputs and buttons are all uniquely named ####1,
####2, etc.
My text input (datetime), which I have pre-populated, is similar to
MySQL format, but without the year: MM-DD hh:mm

I have never initialized the dynarch calendar (DC), before but it has
somehow initialized itself.
Just as a note, my html/form with rows has been by xml/xsl and I've
done a work around to call Calendar.setup() for each row. It seems
my 1st and last row, have the calendars initialized correctly ( using
2006 for current data ) but rows 2-(MaxRow-1) show odd years when
clicked: 1949 and 1950, etc.
I'll need some algorithm eventually, so when working in December and
specifying month 01 that the following Year, will be assumed.

Mihai Bazon, in the DC docs, shows a "date" initialization parameter,
to easily set.
I'm expirementing with the JS Date object and hope to include hh:mm as
well.
Any users have initialization issues, or know how it initializes
without the "date" param ?

My setup looks like this:
function CalByRowImpl(row) {
Calendar.setup( {
inputField : "appt"+row, // ID of the input field
ifFormat : "%m-%d %H:%M", // the date format
button : "butAppt"+row, // ID of the button
showsTime : "true",
timeFormat : "12",
cache : "true",
step : "true"
} );
}

Apr 28 '06 #1
1 3118
any opinions on this ?
I tried passing a Date Object as a param, as documented, but this did
not help. I'm guessing that the input field value, takes precedence
and somehow the HH:MM value is being interpreted as the Year.

I've also tried using one of the recipies
1) Hidden field with the value (MySQL format)
2) Span or Text field, for visual display
3) button, to trigger
(again, I'm using unique id's for each element)
it requires passing more parameters to Setup (the id's and formats of
the fields) but looks promising.
new**: Span seems to work fine (as example shows), but Text does not.
RT error occurs on click, for Date Selection, and DC does not close.
more to come ....

May 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Shyguy | last post by:
Is it possible to create a calendar that shows previous input data and also allows for input of new data?
0
by: Subba Rao via DotNetMonster.com | last post by:
---------------------------HTML---------------------------------------- <html> <head> <title>:: DHTML Table Demo ::</title> <script langauge="javascript" src="InterchangeRows.js"></script>...
0
by: Wyatt70 | last post by:
I'm attempting to implement a javascript popup calendar in a DataGrid. The calendar will be used to insert a date into a textbox. I keep getting a "System.NullReferenceException: Object reference...
2
by: todd.freed | last post by:
Hi All, I am using the <asp: Calendar> object. In the OnDayRender event handler I am putting text into certain day boxes, and leaving others blank. The effect is that some months have no...
12
cassbiz
by: cassbiz | last post by:
I downloaded this calendar off the web and am trying have it show twice, once as calendar.php and the second time as calendar1.php I need the visitor to be able to select a beginning date and an...
2
by: Robbo | last post by:
Hi, I am creating html pages with forms where I use Dynarch menu script in a context menu mode. Their script needs to be initialized like this: <body onload="DynarchMenu.setup('menu', { context:...
1
by: abhishekbrave | last post by:
The code below is opening a calendar on mouse over in the same window. I need the calendar to be opened in new window. Have to fulfill this requirement urgentely so posting the whole code here. I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.