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>


On 8/17/06, Chesty Puller <[EMAIL PROTECTED]> wrote:
>
> Or set a form variable that can be read on the server side.
>
> - Matt
>
>
> ----- Original Message -----
> From: "Robert Munn" <[EMAIL PROTECTED]>
> To: "CF-Community" <[email protected]>
> Sent: Wednesday, August 16, 2006 8:01 PM
> Subject: Re: ot: set cf var onclick event
>
>
> > you have to go back to the server to set a cf var, e.g. via an AJAX
> call.
> >
> > On 8/16/06, Paul Ihrig <[EMAIL PROTECTED]> wrote:
> >>
> >> how the hell do i cfset a cf var on a js onclick event.
> >> getting so forgetful...
> >> like..
> >> <div id="hereIAmPaul1" onclick="mm_swapInCrap; <cfset wherTheHellAmI =
> >> "rightHerePaul1">;">stuff goes here </div>
> >>
> >> thanks guys.
> >> -paul
> >>
> >>
> >>
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:213392
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to