all groups > flash data integration > september 2007 >
You're in the

flash data integration

group:

Building an Events Calendar with the DateChooser Component


Building an Events Calendar with the DateChooser Component Nancy - Adobe Comm. Expert
9/12/2007 4:58:29 PM
flash data integration: The AS2 DateChooser has just the functionality I need to build the events
calendar that I have to build .. however .. while I know what to do in
theory, I'm stumbling on (a) whether it will work and (b) syntax.

I want to display an instance of the DateChooser (myDate) and access the
selectedDate property when the user selects a date. Then I need to pass it
to the main events page preferably on the same page with something like
this:

SELECT EventTitle. EventDescription, EventLink FROM Events
WHERE EventDate = MMColParam

MMColParam 1 myDate.selectedDate

The page itself is ASP. I am thinking I would probably define a variable
and perhaps use LoadVars to load the selected date from Flash .. not
something I have done before.

Perhsps something like

dim eventDate
eventDate = myDate.selectedDate

I'm sure that's not the syntax .. but I think that is the theory. I should
be able to access the selectedDate property of the Date Chooser instance and
feed the date into the query to select the events on that date and list
them.

Will this work? Am I out to lunch? :)

Thanks,
Nancy

Re: Building an Events Calendar with the DateChooser Component Nancy - Adobe Comm. Expert
9/13/2007 9:11:44 PM
Thanks so much, Paris ... what you have outlined looks like it might work ..
and then the ASP can take over. I'll give it a whirl and report back!

Thanks!
Nancy

[quoted text, click to view]

Re: Building an Events Calendar with the DateChooser Component parispap
9/13/2007 10:10:33 PM
Hello Nancy,i have done something similar,it's better to define a variable that
takes the DateChooser value,i gave names to the DateChooser components for
example

_global.fromdate=_root.fromdate.selectedDate;
_global.todate=_root.todate.selectedDate;

then with if you use the LoadVars you can pass the values to a Asp script and
do the server side work,after that the Asp can give a response to the Flash
movie and the movie can do another procedure,i thing the easiest part is to
pass the user choices from Flash to the Asp...But you must examine the date
format that the Asp gets from Flash and after that you
can use queries to compare the data.

the following is part of a CDONTS script that gets the values from a
reservation form(Flash) and sends an email

dim fromDate,toDate
Request.Form("fromdate")&Request.Form("todate")

i hope that i gave you a little help about how to send data from Flash to an
Asp script

i used loadVariablesNum("nameofscript.asp","0","post"); to send the data to
the Asp

Paris



AddThis Social Bookmark Button