You can set up a frame within a frameset that is 0 rows (or columns) in size.
It, then, does not display in the browser.
You have a URL associated with this hidden frame. Usually the frame
contains a form so you can store/reference individual values by name
via JavaScript from another frame.
For example, your main frame has a button, select box, etc. that
invokes a JavaScript royutine in the main frame (or the JavaScript
routine invoked could be in the hidden frame).
The mainframe JavaScript routine can post fields in the hidden
frame... and/or invoke JavaScript functions in the hidden frame.
So the main frame can cause the fill-in and submission of a form in
the hidden frame.
As to the original question, a hidden frame may be a nice way to
invisibly interface Flash, JavaScript and CF.
A hidden frame would be a tend to modularize and organize this interface.
Another alternative is to do it all within a single window/frame.
Flash files (Not really movies) can be imbedded and invisible.
JavaScript and Flash can communicate with each other, and either of
them can communicate with the server.
It probably would be better to use the Flash loadVariables command
for this communication as it:
is very fast/efficient, low bandwidth (only sends/receives name/value pairs).
the screen never goes blank as a new page is not downloaded and displayed
by the browser.
Flash has an internal language that is very much like JavaScript...
similar to the way CFScript resembles JavaScript.
Looking down the road I would hope that Flash/CF are expanded to
incorporate the complete JavaScript standard. Things like:
Add regexp to Flash ActionScripts
Seamless inerface between Flash and Javascript
Built-in function in the Flash browser plugin and CF (script) that does the
variable passing that was the subject of the original post
HTH
Dick
At 10:02 AM -0800 2/21/01, JoshMEagle wrote:
>Can you explain "hidden frames" a little bit? This sounds interesting and
>although I've been writing JS and HTML for over 5 years, I've never heard of
>this - PLEASE SHARE!
>
>Thanks!
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists