Jump to content

This topic is 7736 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

This topic is 7736 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.