>It sounds like you're having trouble differentiating between client side
>code and server side code. CF is server side, which means that CF
>statements are evaluated BEFORE the page gets sent to the browser. User
>requests page -> CF server evaluates CF code and creates a simple HTML
>document -> HTML document is sent to user. Once the browser receives the
>HTML no more CF code will run unless you request another page from the
>server.
Yep, I figured that, I just figured there was a way to basically drop down
CFINCLUDEs.. after a good night sleep (which was needed) I came to this
conclusion:
>2) You could create a series of overlapping layers where each layer contains
>the info for one of the possible selections. Each time the user clicks on a
>selection you could make the relevant layer to the "highest" on the stack,
>thereby making it visible. This should work in both Netscape and IE (4.x+
>versions) but has two disadvantages: first, you would have to include the
>info for all possible selections as hidden layers. This could result in the
>document becoming relatively large and therefore a long download. Secondly,
>the HTML code itself could get a little ugly with all of the overlapped
>layers.
This is somewhat what I did. I created 5 <DIVS> with seperate CFINCLUDEs
so that I can continuously change the content upon demand and enabled them
via DHTML drop downs..
>3) If you are targeting an IE 4.x+ audience only you can use the DIV's
>.innerHTML or .innerText properties to dynamically rewrite the contents of
>the DIV tag. This is far easier to do then the layer method but only works
>on IE 4 and up.
Yeah, I thought about this, but had to rule it out ;(
Using multiple <DIV><CFINCLUDE TEMPLATE> functions basically worked out to
fix the problem I was after.. and it fundamentally wasn't that bad.
(then again, I'm not trying to recreate madness, ala
http://news.ortaga.com/ which someone referred me to, just four dropdowns.. )
CW
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.