cancel
Showing results for 
Search instead for 
Did you mean: 

Toggle between Web Items using an Image link in WAD 7.0

Former Member
0 Kudos

Hello,

i want to toggle between Web items using an image link: e.g. on my template I have a visible table and a hidden chart, now when I click on a small chart image I want the table to get hidden and the chart to get visible. I know that this is possible using a button group, but I need to make this possible using an image.

My approach is the following:

1. Using a script item with 2 commands of type SET_ITEM_PARAMETERS from the command wizard, from which one command hides the table and one command makes the chart visible.

2. Writing a hyperlink which calls up the script using the image as source.

Now my problem:

This works only if I'm using ONE command of type SET_ITEM_PARAMETERS in the script function. So I can either make the chart visible or hide the table. When I insert a second command in the java script nothing works anymore. However, I need to use both commands at once in order to make it useful. I don't know how to program in javascript, can you help me out?!

Thanks,

Norbert

PS: I could show you the javascript code which was created automatically by the web application designer including both commands, but as I've just seen it in the preview it looks totally messed up since it doesn't get formatted corrected.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi.

You still can use button, but in button properties set parameter "Icon" with your image so it will be similar to if you use image.

Attach to button 2 commands "SET_WEBITEM_PARAMETERS". One hides and next shows your items.

Regards.

Answers (1)

Answers (1)

former_member595061
Contributor
0 Kudos

Hi Norbert,

There is an easier approach. In the button group item, you can insert an image and a description. Just open the parameters of your button there you will find the parameter 'icon'. Insert an image there and leave the 'caption' empty.

Best regards,

Janine