FAQ
Products Showcase Download Extras Support
 
Home :: Support :: Community :: CourseLab Issues

Error with if action in Firefox

Error with if action in Firefox 
Author:  Peter Huppertz   [Member]
Date: 24.07.2008 14:58:54
I use the if action to determine how often a user has clicked a button. It's used in the following way:

1) On the slide (beforedisplay event) I create a new slide variable "clicks" and set the value 0.
2) On a button I check the value of clicks and set it to 1 after the first click like the following:
IF(Condition="#clicks == 0")
[some action here]
If(Condition="#clicks == 1")
[some other action here]
VARIABLE(Name='Clicks', Value='1', Scope='Current Slide'

This works fine in IE, but doesn't work in Firefox (the variable is set, but the IF clause does not seem to work)

Can anyone approve this error?  
...
Update: Error with if action in Firefox 
Author:  Peter Huppertz   [Member]
Date: 24.07.2008 16:15:05
I rewrote the if block in a javascript action like this:

if(g_arSlideVars["clicks"] == 0){
[some action]
if(g_arSlideVars["clicks"] == 1){
[some other action]
}

and guess: it works. Would be nicer to use the built-in functions, but for now I can live with it.

Peter  
...

Reply

You can also post this message as registered user. [Log in]
Author:
E-mail:
Subject:
Options:  Notify me if there is a new reply
Message emoticon:
Message body:
Insert smilie into text:
 
Jump to thread: