yeh, thats what i just had my boss show me.
i had my blinders on...

didnt relize how easy it is to set a js variable & then use it to build
if statements on.

was trying to do all this cfif/cfset stuff when i didnt need it..
i am so dense some days...


On 8/17/06, G Money <[EMAIL PROTECTED]> wrote:
>
> Why can't you keep all the logic in javascript?
>
> In the onclick event handler, call a function that alternates between
> backgrounds, or swaps them out, or whatever you want to do. I don't see
> why
> you have to call cold fusion at all...?
>
> Or am I missing something?
>
> On 8/17/06, Paul Ihrig <[EMAIL PROTECTED]> wrote:
> >
> > so how?
> > <div id="t1" onclick="('form.DefaultTab=Tab1');">t1</div>
> >
> > i can pass url vars just fine, but i dont want tio refresh the page.
> >
> > what i am really just trying to do is on my DIV,
> > is use a cfif to tell if the user has clicked it.
> > if they have dont swap out the backrounds.
> >
> > ....
> >
> > I should be ale to just do a cfset. but cant figure out how to do it,
> > within
> > the onclick event....
> > i know this is more complicated then it should be...
> >
> > <cfparam name="DefaultTab" default="Tab1">
> >
> > <div class="H1" id="t1"
> >
> >
> onclick="MM_showHideLayers('Tab1','','show','Tab2','','hide','Tab3','','hide','Tab4','','hide');
> >
> > MM_changeProp('t1','','style.color','#000080','DIV');
> > MM_changeProp('t2','','style.color','#FFFFFF','DIV');
> > MM_changeProp('t3','','style.color','#FFFFFF','DIV');
> > MM_changeProp('t4','','style.color','#FFFFFF','DIV');
> > MM_changeProp('t1','','style.backgroundImage
> > ','url(images/tab-1_f3.gif)','DIV');
> > MM_changeProp('t2','','style.backgroundImage','url(images/tab-1.gif
> > )','DIV');
> > MM_changeProp('t3','','style.backgroundImage','url(images/tab-1.gif
> > )','DIV');
> > MM_changeProp('t4','','style.backgroundImage','url(images/tab-1.gif
> > )','DIV');"
> >
> > <cfif DefaultTab EQ "Tab1">
> > <cfelse>
> > onmouseover="MM_changeProp('t1','','style.backgroundImage
> > ','url(images/tab-1_f2.gif)','DIV');"
> >
> > onmouseout="MM_changeProp('t1','','style.backgroundImage
> ','url(images/tab-
> > 1.gif)','DIV');"</cfif>>
> >   <div align="center">Client Info</div>
> > </div>
> >
> >
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:213404
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5

Reply via email to