Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / September 2007



Tip: Looking for answers? Try searching our database.

Building an Events Calendar with the DateChooser Component

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nancy - Adobe Comm. Expert - 13 Sep 2007 00:58 GMT
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
parispap - 13 Sep 2007 23:10 GMT
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
Nancy - Adobe Comm. Expert - 14 Sep 2007 05:11 GMT
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

> Hello Nancy,i have done something similar,it's better to define a variable
> that
[quoted text clipped - 30 lines]
>
> Paris
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.