Sitemap

Amicuk Programming Answers

Toggle image in gallery

2015-10-11   Views:2

Advertisement

Trying to create a login/logout application. Can't figure out how to get an image to toggle between two states. See below for reference.. The data in the black box is all from one gallery (data source) except for the "Out" image which I inserted

Trying to create a login/logout application. Can't figure out how to get an image to toggle between two states. See below for reference..
The data in the black box is all from one gallery (data source) except for the "Out" image which I inserted into the template.
I need to be able to toggle the "out" image to an "In" image for each independent item in the gallery. I've tried If/Then statements; UpdateContext with toggle-like switches of 1 & 0.; Inserting inside the template / Outside the template.
I've created separate collections and more. I am at a complete loss for how to do this. Nothing seems to work.
Theoretically this should be as simple as referencing a cell in a spreadsheet but without the ability to dynamically update a cell with input from the application - the whole exercise is mute.
I really need help with this. I have an entire fantastic application that is 90% complete except for this one 'seemingly' simple flaw. But if this flaw can't be worked out then the entire exercise is worthless and a giant waste of time.
Please help.

The replay answer
Advertisement
Hi Michael,
If I understand the scenario, an Image Gallery is bound to a Table which has at least one column with links to people's photo. When you toggle a switch, the image should switch to another image to indicate the person is Out.
First add the image that you want to display when the person is Out. To do this:
Click on the Image visual in the Image Gallery
Click on the Image property and select Add Image. Select the image you want to import from your local computer. I will assume the image name is
OutImage.
Then add the toggle logic. For this I will assume that the table has a column named
Photo containing the links to the photos. Click again on the Image Visual and edit its
Image property to:
If(ToggleSwitch1!Value, OutImage, ThisItem!Photo)
This statement indicates that the Image for the Image visual is OutImage
if the Toggle is On, or the current item Photo if the toggle is Off.

Go to See the other 2 answers

Toggle image in gallery

Category:DefaultRelease time:2015-10-11Views:130

Trying to create a login/logout application. Can't figure out how to get an image to toggle between two states. See below for reference.. The data in the black box is all from one gallery (data source) except for the "Out" image which I inserted[More]

Gallery Demo... how to toggle background-image on playLabel

Category:DefaultRelease time:-0001-11-30Views:130

Anyone? I'd like something besides the play/pause text -- basically, using a background-image... how can I tap into whatever it is that toggles the text to get it to toggle the css instead? Any help appreciated, thanks!quote: Originally posted by: n2[More]

How do I get the old photo gallery version back in my photos, don't like the date thing currently there

Category:DefaultRelease time:2015-10-11Views:130

DDon't like new version of photos by date, want old photo gallery version is that possibkeYou can revert to the previous Search Bar scheme like this. Open up '''about:config''' ''(typed in the Location Bar)'' Right-click and toggle this preference to[More]

How do i apply a basic jQuery to my image gallery?

Category:DefaultRelease time:2015-10-11Views:130

I'm using jQuery in order to allow an image gallery to show the same product in various colours. However the jQuery I'm using, animates the next image to sweep in from the left. And i just want the images to change in a basic way, so one image is on[More]

Need help with xml video gallery

Category:DefaultRelease time:2015-10-11Views:130

Hello everyone I recently bought a xml video gallery. I'm loading the movie externally into another movie. When the xml gallery loads, it cancels all sounds. I need to figure out where in the actionscription can i reverse the cancellation of sounds.[More]

Web Gallery not showing in Aperture's browser window.

Category:DefaultRelease time:2015-10-11Views:130

Hi, I hope someone can help me with this. I create web galleries all the time and they work fine. For some reason when I create a new web gallery, instead of seeing the interface with the web preview (where you get the all the setting for customizing[More]

Gallery App Help/Lost ability to control whether to resize a photo when emailing

Category:DefaultRelease time:2015-10-11Views:130

When emailing photos and using the Gallery App I had the option to resize or not. I could select a new size and select "Always" or "Just Once". I don't have the option anymore and I really need to get it back. What do I do? Example: I'[More]

Photo-gallery examples / how to ?

Category:DefaultRelease time:2015-10-11Views:130

Is there a tutorial on how to create a Spry photo-gallery, or do we just view the source code for the example page at the Adobe site? Which relevant files are need to make this work? Nadia Adobe® Community Expert : Dreamweaver CSS Templates |Tutorial[More]

Image gallery approach for additional details and add to cart option?

Category:DefaultRelease time:2015-10-11Views:130

With efficiency and minimalist downloads for smartphone users I would appreciate advice on a product image gallery. Currently I have an intro page and other simple information pages. My gallery pages ( four distinct pages for different leather goods)[More]

SPRY ALBUM GALLERY not working in IE7

Category:DefaultRelease time:2015-10-11Views:130

Hi, I have created a spry album gallery using adobe's sample code and have test via dreamweaver - firefox 3.0 & IE7 to view the site. It works a treat. I have uploaded the files and now running live. One problem. I have type the web address into IE7[More]

Sync project, album or smart album with MobileMe gallery?

Category:DefaultRelease time:-0001-11-30Views:130

Is there any way to sync a project, album or smart album with MobileMe gallery? It would be nice to have changes in one, reflect changes in the other. Thanksmake sure your inspector is visible on the left hand side press i to toggle on and off. You w[More]

Hot
Hi The below JavaScript code is used to add row in the table when I want to add multiple row data into table for single entry no field.   <html>  function addRow()             i++;             var newRow = document.all("tblGrid").insertRow [More]
Need to create a multi paged document that contains fields with persons pix, name, address, and phone number. It will be alphabetized and searchable using an index. I want the end result to be a multi-page pdf. Is data merge the tool to use? Or pleas [More]
Hello there im fairly new to dreamweaver and im having some troubles. I went ahead and publish my site on a Free site with provided hosting and when i click on my link i can see the text of my website but none of the images come out on the actual int [More]
dear friends, my client is asking to lengthen the field size of SHORT TEXT in purchase requisition. if they enter the long text, the characters are getting tranucated. can you please provide me good solution for this problem. who is handling this iss [More]
I've been trying to debug this for days now and it completely breaks my lab - until it fixes itself after some random time and then breaks again I created a simple approval workflow which seeks approval from [//Target/Owner] when joining an Owner App [More]
I bought a hp omin with S.No.(Personal information removed by Moderator)/prodno : f4l88pa#ACJ from tata chroma retail.I gt a problem while reseting the tablet,Then went to hp service they said that every tab shuld get a recovery media when i spoke to [More]
hi i have this code using the FacesContext to talk inbetween my session bean and the page request bean basically this method is attached to a command button that will save an ID and then move to the next page with the "success" action i find thi [More]
While installing SQL Server 2005 Express Edition SP2 or SQL Server 2005 Express Edition with Advanced Services SP2 on Vista Ultimate,  I get the error "The feature(s) selected are not valid for this edition of SQL server".  Then the installation [More]
Hi All, We are using OBIEE 10g and would like to know how to set priority for Logical table source. I believe in OBIEE 11g there is an option caledl "Priority Group Numbers" but is there a similar option in 10? Regards, SreekanthIs there any oth [More]
Hi Is it possible to select multiple columns via code insight pop up window. For example if I have the following query select a. from table a If I type a. completion insight will show me the columns for the table. I would like select more than one co [More]