JitseSchaafsma Posted November 27, 2003 Posted November 27, 2003 I want to disable an inline action. Suppose this peace of JS code in a top frame i have a variable perform=0 in a data frame i have this peace of code if (not perform) { [FMP-InlineAction] [/FMP-InlineAction] perform = true } Now the first time this page is called the inline action is excecuted. The next time this page is loaded by the user (in the same session) the page should be loaded but without the inline action. My Q is this : does the if statement indeed stop the inline action from executing after the variable is set to true. I did some testing my self and i think indeed it works, but i am not sure. Can any of you comment on this. Thanks Jitse
Garry Claridge Posted November 27, 2003 Posted November 27, 2003 The InlineAction will be performed on the server before the page is sent to the browser. The Javascript will perform in the browser as the page is loaded. Hence, the Javascript does not affect the InlineAction. You can, however, have the Javascript set a Token which is tested by an [FMP-If] statement on the next call of the page. All the best. Garry
JitseSchaafsma Posted November 27, 2003 Author Posted November 27, 2003 Thanks garry for your response. Indeed, i have assumed your answer. So i need some reprogramming to do Jitse
Recommended Posts
This topic is 8005 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now