Sie sind nicht angemeldet.

1

Samstag, 9. Januar 2010, 16:56

Syntax for action triggering second action

Does anyone know the correct syntax for an action to activate another action ? (Or if this is even allowed?)

For example, I have a "close all" button with the following code:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
	<action name="closeaction">
		set(plugin[hide-show].state, closed);
		set(plugin[maps].visible,false);
		set(plugin[full-screen].visible,false);
		set(plugin[rotation].visible,false);
		set(plugin[audio].visible,false);
		set(plugin[left].visible,false);
		set(plugin[right].visible,false);
		set(plugin[up].visible,false);
		set(plugin[down].visible,false);
		set(plugin[zoom-in].visible,false);
		set(plugin[zoom-out].visible,false);
		set(plugin[border].visible,false);
		set(plugin[info].visible,false);
set(plugin[interactivemap].visible,false);
	</action>


To this I would simply like to also trigger the action "closemap", but I can't work out what style to write ...

As an alternative I could also add this action to the "close all" button. But not having much luck adding a second action there either.

thanks

2

Samstag, 9. Januar 2010, 19:15

Hi Richard,

Add a call to your closemap action inside your closeaction.... like this:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<action name="closeaction">
		set(plugin[hide-show].state, closed);
		set(plugin[maps].visible,false);
		set(plugin[full-screen].visible,false);
		set(plugin[rotation].visible,false);
		set(plugin[audio].visible,false);
		set(plugin[left].visible,false);
		set(plugin[right].visible,false);
		set(plugin[up].visible,false);
		set(plugin[down].visible,false);
		set(plugin[zoom-in].visible,false);
		set(plugin[zoom-out].visible,false);
		set(plugin[border].visible,false);
		set(plugin[info].visible,false);
		set(plugin[interactivemap].visible,false);
		action(closemap);
</action>


SAlut.

3

Samstag, 9. Januar 2010, 23:24

Now I'm embarassed *unsure*

4

Sonntag, 10. Januar 2010, 01:48

Hi Richard,

What do you mean? *confused* What are you looking for?

5

Sonntag, 10. Januar 2010, 05:04

*g* It's just that the solution was so simple I should have known . . .

6

Montag, 11. Januar 2010, 10:39

Hi,

instead of:

Quellcode

1
action(closemap); 

you could also use just:

Quellcode

1
closemap();


best regards,
Klaus