View Full Version : writting to HTML Pages from a flash popup
hogtied
05-29-2002, 02:45 AM
I'm making a web page that when you click on a calendar pic a flash calendar pops up in another window.
What im having trouble doing it write that date that the user picks back into the main HTML page...
any suggestions?????
Thanks
Mcircus
05-30-2002, 04:17 PM
are you sending the information over as a form post/get or QueryString
hogtied
05-31-2002, 11:34 PM
the date list box field is in a form. but it's not using get or post to bring up the calendar. Let me break it down
The user click on a calender image, selects the date they wish to check in. That date is then writen to the date listbox. The problem I'm having is writing to that listbox.. I know it should be something like DOCUMENT.WRITE.FORM.ELEMENT.VALUE.OPTION = (the date). but I'm not sure,, plus ActionScript is a little different than JavaScript.
Thanks for repling...
Mcircus
06-03-2002, 04:35 PM
Ok I know what you want to do now. But I would use JavaScript for that type of task. (it is just a lot cleaner)
But if you need to use flash this is how I would try it.
1. the pop up needs to have a name and so dose the parent window.
2. the flash will need to tell the parent window to call a function.
3. pass in the the date ( fscomand( call your function and pass the vars over))
4. the function (you were right on the document.form(id).element(id).value = something).
so in short have the flash call a function on you parent page then tell the form element to have a new value. Also, at the end of your function on the parent tell the flash window to close.
hogtied
06-03-2002, 06:08 PM
thanks mcircus i'll give that i try... I'm not familar with the fdcommand though and will have to look into that.
Thanks
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.