Gallery problem with next/prev buttons

Hi,
I'm working on a photo gallery and I have some weird things
happening, hence the request for help!
When the gallery opens, you can click on any picture, the
main one then appears with various buttons:
1. Click on the image and you go back to the thumbnails -
fine
2. Click on the cross button and it's the same - fine
3. Don't click on the automatic gallery, it's no on yet! :)
4. Click on previous and the previous image appears - fine
5. Click on next and the next image appears - nope, that's
where the problem is!
For the previous button, I use this code:
var previous = "none";
if (_global.currentImage == 1) {
previous = _global.photoNum;
} else {
previous = _global.currentImage-1;
_global.currentImage is the number related to the thumbnail
you have clicked.
_global.photoNum is the total number of pictures
After this code, there's all the code for the preloader and
it ends by defining the new current image (
_global.currentImage = previous;) and loading it (
mcLoader.loadClip("images/photo"+previous+".jpg",
_level0.images_mc.holder_mc);).
The next button is based on the same code:
var next = "none";
if (_global.currentImage == _global.photoNum) {
next = 1;
} else {
next = _global.currentImage+1;
With at the end
_global.currentImage = next; and
mcLoader.loadClip("images/photo"+next+".jpg",
_level0.images_mc.holder_mc);.
Here is the problem, there are three situation you use the
next button:
1. On the thumbnails, you click any image. When the main
image is loaded, you click first previous, have the new image
loaded and then you click next. The next image is loaded and it
works fine.
2. On the thumbnails, you click the last image. When the main
image is loaded, you click next. The next image (which is then the
1st) is loaded and it works fine.
3. On the thumbnails, you click any image. When the main
image is loaded, you click next.
Here is the problem: the next image is not loaded!
You can see it here:
www.theminnesotafats.com/gallery
When you see that the picture is not loaded, you will have to
refresh the page to make it work again.
I hope that those explainations are not too long and that
somebody could help me. Thanks!

WHEN 'NEXT'.
      PERFORM scroll_end.
WHEN 'PREVIOUS'.
     PERFORM scroll_left.
ENDCASE.
ENDMODULE.                 " USER_COMMAND_7100  INPUT
*&      Form  scroll_end
      text
     -->RT_COLUMNS text
form scroll_end tables rt_columns type kkblo_t_columns.
  ENDFORM.
*&      Form  scroll_left
      text
     -->RT_COLUMNS text
form scroll_left tables rt_columns type kkblo_t_columns.
  ENDFORM.
i've tried this....the previous error gone..but now i have another error said " the type kkblo_t_columns. is unknown ".
really exhausting :P

Similar Messages

  • Problem with java swing button and loop

    Problem with java swing button and loop
    I�m using VAJ 4.0. and I�m doing normal GUI application. I have next problem.
    I have in the same class two jswing buttons named start (ivjGStart) and stop (ivjGStop) and private static int field named Status where initial value is 0. This buttons should work something like this:
    When I click on start button it must do next:
    Start button must set disenabled and Stop button must set enabled and selected. Field status is set to 1, because this is a condition in next procedure in some loop. And then procedure named IzvajajNeprekinjeno() is invoked.
    And when I click on stop button it must do next:
    Start button must set enabled and selected and Stop button must set disenabled.
    Field status is set to 0.
    This works everything fine without loop �do .. while� inside the procedure IzvajajNeprekinjeno(). But when used this loop the start button all the time stay (like) pressed. And this means that a can�t stop my loop.
    There is java code, so you can get better picture:
    /** start button */
    public void gStart_ActionEvents() {
    try {
    ivjGStart.setEnabled(false);
    ivjGStop.setEnabled(true);
    ivjGStop.setSelected(true);
    getJTextPane1().setText("Program is running ...");
    Status = 1;
    } catch (Exception e) {}
    /** stop button */
    public void gStop_ActionEvents() {
    try {
    ivjGStart.setEnabled(true);
    ivjGStart.setSelected(true);
    ivjGStop.setEnabled(false);
    getJTextPane1().setText("Program is NOT running ...");
    Status = 0;
    } catch (Exception e) {
    /** procedure IzvajajNeprekinjeno() */
    public void IzvajajNeprekinjeno() {  //RunLoop
    try {
    int zamik = 2000; //delay
    do {
    Thread.sleep(zamik);
    PreberiDat(); //procedure
    } while (Status == 1);
    } catch (Exception e) {
    So, I'm asking what I have to do, that start button will not all the time stay pressed? Or some other aspect of solving this problem.
    Any help will be appreciated.
    Best regards,
    Tomi

    This is a multi thread problem. When you start the gui, it is running in one thread. Lets call that GUI_Thread so we know what we are talking about.
    Since java is task-based this will happen if you do like this:
    1. Button "Start" is pressed. Thread running: GUI_Thread
    2. Event gStart_ActionEvents() called. Thread running: GUI_Thread
    3. Method IzvajajNeprekinjeno() called. Thread running: GUI_Thread
    4. Sleep in method IzvajajNeprekinjeno() on thread GUI_Thread
    5. Call PreberiDat(). Thread running: GUI_Thread
    6. Check status. If == 1, go tho 4. Thread running: GUI_Thread.
    Since the method IzvajajNeprekinjeno() (what does that mean?) and the GUI is running in the same thread and the event that the Start button has thrown isn't done yet, the program will go on in the IzvajajNeprekinjeno() method forever and never let you press the Stop-button.
    What you have to do is do put either the GUI in a thread of its own or start a new thread that will do the task of the IzvajajNeprekinjeno() method.
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    This tutorial explains how to build a multi threaded gui.
    /Lime

  • Slideshow resize hiding next / prev buttons

    Hi,
    I am trying to resize a jQuery slideshow to fit specific dimensions on a page. The images are resized already which helps.
    However the next / previous button are missing as well as the small dots that lie at the bottom (the ones that light up depending on which img you are on in the cycle).
    aside from editing the slideshow image dimensions, this was the only style I edited to try to get it to match up - made it the same as each image:
    .flex-container {
        width: 772px;
        height: 434px;
    Here's the only HTML for it:
    <div class="flex-container">
        <div class="flexslider">
            <ul class="slides">
                <li>
                    <a href="#"><img src="../test/img/slide1.jpg" /></a>
                </li>
                <li>
                    <img src="../test/img/slide2.jpg" />
                </li>
                <li>
                    <img src="../test/img/slide3.jpg" />
                    <p>Testing Text</p>
                </li>
            </ul>
        </div>
    </div>
    The rest of the styles are from the orig open source:
    http://designmodo.com/responsive-slider/
    Any suggestions as to which style I need to play around with to get this to display to the set image dimensions? And with the correct controls in place? - Thank you!

    Hi,
    You can not disable the next and prev buttons, you may hide them via the Flyout options menu if you want (select the widget> click on the blue circle with the white arrow, on the right top of the widget).
    However, even if the next/prev buttons take you to a different picture, you can still edit them, when they are selected, as the buttons remain same for all the slides.
    Also, the buttons have to be of the same color for each picture.
    Hope it helps,
    Sonam

  • Hi, i am using iphone4s.. 2 days ago i had a problem with wifi.. button greyed out, it was suggested to keep phone in freezer, worked temporarily and i updeted to ios7.1 but still facing same problem.. wht to do? cant afford to throw off :/ huhh..

    Hi, i am using iphone4s.. 2 days ago i had a problem with wifi.. button greyed out, it was suggested to keep phone in freezer, worked temporarily and i updeted to ios7.1 but still facing same problem.. wht to do? cant afford to throw off :/ huhh..

    well, you know how it is - glitches that usually resolve with a hard reset etc
    then a restore. then a factory restore....then ..... nothing fixes so I try the next step with apple online - fill out my serial number and find it is a couple of weeks out of date - and then with the holidays who has time to get to the apple store? this is my second 4s handset as it is - first one the glass cracked from L to R without any impact/damage etc - they changed it out automatically because it's a 'known fault' apparently - so technically, this handset is only 6 months old - but warranty is from original purchase date -
    never imagined it would turn out to be a warranty issue with the phone - and hey maybe when I get a chance to go to the apple store they'll be sympathetic, but I won't be able to get there till at least Jan 4th as it is. On the other hand, another iOS update might resolve the issue - but how long till that release? at the moment I'm having to use my old 3gs for wifi and 4s for phone!!!

  • Is anyone having a problem with the home button on a 6?

    when I first got my iPhone 6, the home button was just like my other iPhones have been, my iPad, my sons iPhone 6, etc. when you pushed it, you can feel it move and you feel a little dull clck. Now the the home button on my iPhone 6 has no movement or click. It still functions, but I'm worried it is on its way to failing and if I wait to address the issue until it completely fails, then it will be out of warranty. Has anyone else experienced any problems with the home button?

    If you believe that your device has a defect or malfunction, contact Apple now.  This forum is not for taking polls.  Contact Apple for support options.

  • Having problem with my wifi button on my iPhone

    Having problem with the wifi button

    I'm going to ask the mods to move this to the iPhone part of the forum

  • Is anyone else having problems with the power button?

    Someone at work also said they were having a problem with their power button not working? Is it hardware or maybe software?

    I had the same problem with my new macbook air. It was scratchy and annoying so I updated the speaker's software and now it's perfect.
    http://worldwide.bose.com/downloads/en/web/bose_bluetooth_speaker_download/page. html
    hope it solves your problem too.

  • Problem with Next button !

    Hi ,
    I have done a Portal upgradation from 3.0.6.6.5 to 3.0.7 .
    After this i am facing problem with reports where the "Next" button does'nt work on a page. It gives the error as below :
    Error: The servlet produced the following error stack.
    java.lang.ArrayIndexOutOfBoundsException: 1024
    at javax.servlet.ServletInputStream.readLine(Compiled Code)
    at oracle.webdb.page.PageBuilder.getMetaData(Compiled Code)
    at oracle.webdb.page.PageBuilder.process(Compiled Code)
    at oracle.webdb.page.ParallelServlet.doGet(Compiled Code)
    at oracle.webdb.page.ParallelServlet.doPost(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at org.apache.jserv.JServConnection.processRequest(Compiled Code)
    at org.apache.jserv.JServConnection.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)
    This problem was not there in ver.3.0.6 .
    Thanks in advance .
    Regards,
    Vijaya
    null

    Vijayalaxmi,
    I had this problem, it's a bug with 3.0.7.
    This is my reply from Metalink..
    07-FEB-01 10:19:02
    <<< iTAR OUT >>> TAR Updated By Analyst!
    It seems that you are running into bug 1548075 which produces the same error stack when using Next. This bug has been fixed in Portal version 3.0.8.8.4 and hence you would have to upgrade the portal version.
    ** Please use Metalink to further update this tar **
    ** For new issues please raise a new TAR via Metalink **
    ** Log onto Metalink at http://metalink.oracle.com **
    Regards, Matt.
    null

  • Gallery problem with 5230 on my 4th phone

    Still have a problem with viewing my photos once I put a couple hundred in my phone under mass storage. Have over 3 gigs available on a 4 gig card and all my photos are under 200kb which are smaller than the ones my phone actually takes. As soon as I pass an unspecified amount of pics and files the gallery refuses to open up my image folder, says opening and that's it. The only way I can get in is if I'm lucky shut off phone and restart, try and get in before gallery sets up, problem is once I leave can't get back in. Another way is press off button scroll to remove memory card remove and then restart phone go to gallery push in card and see files but once again once you leave that's it do not use internet, have tried 3 different memory card and 4 new phones all with same problem does anybody know what the problem is, my guess is a software problem that nokia is not admitting to, supposedly this phone should handle up to 16 gig of mem but it seems to be having trouble with more than 2,

    The images or their size will not be causing the issue. The gallery  display is database-based, the database is used to store details of everyimage stored on the phone (irrespective of whether in phone memory or memory card, and irrespective of which folder they are stored in), and each time the gallery is opened the gallery is updated to check for images added to the phone since the last time.
    I would suspect that you have nothing wrong with either phone or memory card, but simply that the sheer volume of extra data means that the processing of the database update is so huge that the phone is getting stuck - you appear to be asking it to update info on 1Gb of data all at once. It may not even be crashing, if you allow it to stand a longer time it would probably appear eventually correct - I have the same slow first opening of the gallery everytime I reformat my N96 and then restore the mass memory content back to the phone.
    Try introducing the images to the phone in several groups of lower numbers of files to see if that makes any difference.

  • DVDSP:  Multiple stories and problem with next chapter going to next story

    I have a DVDSP4 project with 2 tracks and a story for each track.  Each story has 3 chapters start, middle, end.  I'm having problems when I'm testing in the simulator, the DVD is playing the first story I hit the NEXT CHAPTER button on the remote, it goes to the next chapter (in the same story).  The problem is when I click NEXT CHAPTER button again, it doesn't do anything.  I want it to jump to the end marker (which is a chapter marker), and then go to the next story because the End Jump is set to go to the next story.
    Help is appreciated.

    I ended up putting another chapter marker in the track, just before where the end is in the story, not ideal but it does allow progressing to the next story with the next button on the remote.
    I'm using stories because I have the need to play different segments of the videos.

  • Next & Prev buttons in Navigation pane appear in skin but not in HTML

    I have customized the standard template and its components in flash according to my requirement and created a skin. When the skin is generated all the images/buttons gets displayed perfectly but on generation with FlashHelp the Next, Prev and Sync buttons do not appear in the HTML format.
    Kindly assist what may be the reason for the same.

    Hi there
    If you have configured things (or more accurately, LEFT them configured for auto-sync - it is configured by default) then the sync button isn't presented.
    You don't see Prev or Next because you either haven't defined or haven't enabled a Browse Sequence. More on that at the link below:
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Problem with the sleep button

    Hello, my iphone only works when its plugged into the my computer. The instant I unplug it the screen goes black and flashes the apple logo for about 5 seconds on and off nonstop. It did this for the whole night and the battery was almost drained when I plugged it in the next morning after being fully charged. I believe the problem is with my sleep button, I think the phone thinks the button is pressed in all the time, but I can't be sure. The button still feels just fine, but I can't think of any reason why it would suddenly do this, I haven't downloaded anything onto it for weeks now, and I haven't ever dropped it. Any help on how to fix this would be greatly appreciated.

    Call 1800-MY-IPHONE and they can send you a box (free) to send it back to them (free) and if it is covered they will replace for free and send back. If you have an old phone around that accepts SIM cards you can use your SIM from your iPhone (they will tell you to take it out) in your old phone while your iPhone is out to them. Then put back in when you get phone back.

  • Problem with Audio in Buttons and Interactive

    Hi!!
    I have problems with the sound into buttons and Forms Interactive. The question is when I add a sound within a button, this it sounds directly when it enters the slides and not when the user presses the button.
    How I solve it?
    Thanks
    NEXTsp

    Hi there
    It isn't a problem. The function is working as it should. You simply have a different expectation!
    You have to think about it in different ways. When do you want the audio to play? When the button has been clicked, right? When you attach audio to an object such as a Button or an Image, the audio plays when that object appears. The trick here is to make an object appear on the Button click. You then attach the audio to that.
    If you have Captivate 3 or older, you can enable the Success caption for the button. Attach the audio to the caption. Button is clicked, caption appears and you hear the audio.
    What's that you are asking? Oh, you don't want to actually SEE a Success Caption? No problem. Choose the Transparent caption type and remove any text!
    If you have Captivate 4, you can also use the same method to accomplish this. But you can also probably use the new scripting in it to make the audio play on a Button click. I can't tell you how to do that at the moment if that's the approach you want to take. I'll have to leave that to another person here that has played with the scripting to explain how it's done.
    Likely it involves opening a panel, inserting or declaring a variable, adding a sound file, associating the variable with the sound file, assigning actions to the button to check the variable and change it if you need to. Stuff like that. Sounds a bit like a Rube Goldberg setup. But really that's what happens with the Success Caption method. It's just that we deal with objects and not the code behind the scenes.
    Hopefully this was somewhat helpful... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Problems with the home button and generally freezing and shutting down often.

    I have had this iPad 2 for around 3 months. After about a month I noticed that I was having to press the home button multiple times in order to get it to respond. It is now at a stage where I have to press it as many as 12-13 times. It's won't do this every time but all day for maybe 3 out of 5 days the other times it works fine.
    As well as this I have also had issues with the Internet shutting down, Skype going crazy, picture albums popping up and then vanishing and so on. I'm not a computer wiz but I would describe it as going crazy two or three times a day.
    While I was in a shopping centre about a week ago I asked about the problems in an apple store. The man was very helpful and asked if I had it on me so he could look at it. Unfortunately I didn't be he said I could bring it back whenever I like and it would take around 30 mins for someone to check it out. He said most Likley they would just give me a new one and that would be that. So of course happy that it could be sorted I went home. Today I decided to drive the nearly two hours down to Brisbane after having a nightmare time trying to Skype my friend this morrning. I hot to the store and asked if it could be looked at only to be told I need an appointment. I showed the card that I had been given and explained what I had being told. To cut a long story short he agreed that I had been told that but said the assistant clearly didn't know what he was on about and that I should come back. I offered to wait but dispute the shop being more full of staff watching movies and downloading songs then actual customers I was basically denied any sort of help and told to call the office to arrange an appointment.
    Sorry to rant! I just thought that apple were renowned for good service? 5 hours later I'm home with the same issues.
    If anyone has had similar problem with the device or even customer service I would be intrested.
    Regards,

    Me too!  I had many bugs and returned my phone for a brand new one that did this the first time it was turned on at the Apple store.  I was told it is a "software issue" and to "reboot the phone" if it continued to happen.  It happens almost every time I try to use my phone.  I've rebooted three times in a row some days.  Nothing really seems to help.  I keep waiting for an update.

  • Weird Problem with Add Row Button in Master Detail Page

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

Maybe you are looking for