Hide and Show - Toggle image

Hi:
Okay - I admit it! I am completely baffled.
I am trying to use custom "click" images for my hide and show region. I am using a modified version of Theme 20 in Apex 4.0.
I have created two little images, one for open state and one for closed. I have managed to get the "open" image to display and it is clickable and the region closes, but the image does not toggle.
In the region template, I find the following:
onclick="htmldb_ToggleWithImage(this,'#REGION_STATIC_ID#_body')"
Clearly, this is to toggle the image. But, how does it know what image to use? Which image to replace the oen state image with. I am not understanding how it selects the second image.
Please, please, can someone explain to me how to get the toggle to work properly with my custom images.
Thanks in advance.
Regards,
Bruce

So, I figured it out myself.
the function htmldb_togglewithimage actually takes the 'puls' string in the image name and changes it to 'minus'. So your images have to be maned something like:
my_image_plus.gif
my_image_minus.gif
without uswoing this maning convention - it will not work.
Bruce

Similar Messages

  • Make a button hide and show an image

    I want a button to hide and then show an image, basically an on/off switch.  I tried accomplishing this using multipl slides that jump around but even after removing all transitions, you can still tell that the slides are changing instead of just the image appearing and disappearing.  I have seen some posts about advanced actions but it's reading clear as mud.

    Christina,
    If you want a toggle button, that can be done with advanced actions. What did you read already? And which version of Captivate are you using?
    The idea is that:
    You create the image, but set its visibility unchecked in the Properties panel
    You create a user variable, will label it v_visib that has a start value of 0, will be set to 1 when the image is visible
    You create a conditional advanced action, that will check the value of v_visib:
    IF v_visib is equal to 0
        Show Image
         Assign v_visib with 1
    ELSE
        Hide Image
        Assign v_visib with 0
    I blogged several times about toggle buttons:
    http://lilybiri.posterous.com/toggle-shape-buttons      for Captivate 6 only
    http://lilybiri.posterous.com/toggle-button
    Lilybiri

  • Dock "automatic hide and show" broken

    Folks:
    This morning I noticed the "automatic hide and show" of the Dock is broken. No matter how long I put the mouse pointer in the area of the Dock, it doesn't pop up.
    There are only two ways I can access the dock now. One is to set the Dock size sufficiently big (about 40% or more seems enough) and it simply stays visible all the time. Another, if the Dock size is set lower than 40%, is to keep the Dock preference box open and manually toggle "Automatically hide and show the Dock" checkbox.
    Hmmm, I see right now that the Dock is hidden, but the name of an application is displayed just above the bottom edge of the screen. This app is launched, but I've not used it at all this morning. Yep, show the Dock, the name is in the "right" place, but it should not be visible at all.
    I tried re-starting the Finder. No difference.
    I just updated to 10.4x recently, and applied the latest updates as they became available (Friday, I think), so it is hard to tell what to point a finger at...
    OK, I'm going to restart and see if that helps... but shouldn't have to do this. Something got broken recently.
    Henry
    P.S. the OS pulldown doesn't show 10.4.8 so I can't use that to tell you I'm running 10.4.8.

    Repair Disk Permissions" from Disk Utility may help you.
    Also, you can create a new user account and check things there.
    Last, you can trash Dock preference file from your home directory:
    ~/Library/Preferences/com.apple.Dock.plist
    Mihalis.

  • HT2531 Spotlight lists items and shows preview images.  BUT what about showing the location address of an item in my computer. Especially important if I've put the item in the wrong folder and what to locate it without multi-steps. iMac OS 10.5 was more u

    Spotlight lists items and shows preview images.  BUT what about showing the path/location address of an item in my computer.
    Especially important if I've put the item in the wrong folder and what to locate it without multi-steps. iMac OS X 10.5 was more useful.
    Old OSX Spotlight function automatically displayed path/location within the machine:  e.g. desktop/folder/sub-folder/item.
    Can I make Spotlight show the path?

    Press option-command and the path is displayed at the bottom of the little preview window.  Press command-return and the enclosing folder opens. 

  • Next Button in a Hide and Show Region is not displayed correctly

    I created a new button at the bottom of the region in a Hide and Show Region called [Next >]. The button is displayed to the right of the region. I want it displayed at the right end of the bottom of the region. The following is the button properties
    Name
    Button Name : NEXT_SIGNS
    Text Label/Alt: Next >
    Displayed
    Sequence            130
    Display in Region: Signs and Nameplates (1) 100
    Button Position:    Bottom of Region
    Button Alignment: Right
    Attributes
    Static ID:          
    Button Style:      Template Based Button
    Button Template: PA Button
    Button Type:       Hot
    Button Attributes:
    Action When Button Clicked
    Action:                 Submit Page
    Execute Validation: Yes
    Database Action:    No Database Action
    Conditions
    None
    Security
    None
    Configuration
    NoneWhy is this occurring and how can I resolve the issue?
    The following is the template of the hide and show region:
    <div class="hide-show-region" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>
      <div class="hide-show-top">
        <div class="hide-show-title">
    <div class="rounded-corner-region">
    <div class="rc-blue-top">      
    <div class="rc-blue-top-r">
              #TITLE#</div>
    </div>
    </div>
           <a style="margin-left:5px;" href="javascript:hideShow('region#REGION_SEQUENCE_ID#','shIMG#REGION_SEQUENCE_ID#','#IMAGE_PREFIX#themes/theme_2/rollup_plus_dgray.gif','#IMAGE_PREFIX#themes/theme_2/rollup_minus_dgray.gif');" class="t1HideandShowRegionLink"><img src="#IMAGE_PREFIX#themes/theme_2/rollup_plus_dgray.gif"
      id="shIMG#REGION_SEQUENCE_ID#" alt="" />Click on arrow to enter/hide  information for signs and/or nameplates</a></div>
        <div class="hide-show-buttons">#CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</div>
      </div>
      <div class="hide" id="region#REGION_SEQUENCE_ID#">#BODY#</div>
    </div>APEX version 4.1
    DB version 10g Rel 2
    PLEASE HELP!!
    Robert
    http://apexjscss.blogspot.com

    I created a new button at the bottom of the region in a Hide and Show Region called [Next >]. The button is displayed to the right of the region.I only see it displayed to the right of the region in Firefox (Safari and IE8 showed it above the sub-regions). Not obvious to me why this is the case (it's usually IE that does it's own thing).
    I want it displayed at the right end of the bottom of the region.Button position Bottom of Region causes an anonymous HTML table containing the button(s) to be generated after the <tt>#BODY#</tt> placeholder in the region template. Your Hide/Show region template didn't have a <tt>#SUB_REGIONS#</tt> placeholder so by default the sub-regions were rendered after the <tt>#BODY#</tt> and the "Bottom of Region" button container (don't know if this is the intended behaviour or a bug). Adding <tt>#SUB_REGIONS#</tt> before <tt>#BODY#</tt> in the template gets things in the right order (button after sub-regions):
    <div class="hide-show-region" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>
      <div class="hide-show-top">
        <div class="hide-show-title">
    <div class="rounded-corner-region">
    <div class="rc-blue-top">      
    <div class="rc-blue-top-r">
              #TITLE#</div>
    </div>
    </div>
           <a style="margin-left:5px;" href="javascript:hideShow('region#REGION_SEQUENCE_ID#','shIMG#REGION_SEQUENCE_ID#','#IMAGE_PREFIX#themes/theme_2/rollup_plus_dgray.gif','#IMAGE_PREFIX#themes/theme_2/rollup_minus_dgray.gif');" class="t1HideandShowRegionLink"><img src="#IMAGE_PREFIX#themes/theme_2/rollup_plus_dgray.gif"
      id="shIMG#REGION_SEQUENCE_ID#" alt="" />Click on arrow to enter/hide  information for signs and/or nameplates</a></div>
        <div class="hide-show-buttons">#CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</div>
      </div>
      <div class="hide" id="region#REGION_SEQUENCE_ID#">
        #SUB_REGIONS#
        #BODY#
      </div>
    </div>Firefox is still showing the button to the right of the sub-regions. I'm assuming that this has something to do with everything in this theme being floated left (for reasons that escape me), so we'll try to clear the button container using CSS. The table doesn't have an ID or class so try an adjacent sibling selector using the ID of the preceding sub-region:
    #nameplates-name+table {
      clear: both;
    }Finally, the button alignment was set to "Left", so I changed it to "Right".
    Seems to be working in IE8 (all I have access to at present).
    Edited by: fac586 on 30-Nov-2012 20:10
    Fixed CSS selector syntax.

  • I tried to restore my Apple TV.  It froze on a connect to iTunes screen and showed an image of a USB cord.  Now it is frozen there.  Any ideas?

    I tried to restore my Apple TV.  It froze on a connect to iTunes screen and showed an image of a USB cord.  Now it is frozen there.  Any ideas?

    Did you try restore from teh AppleTV menu connecetd to TV.
    If so sounds as though something went wrong.
    Hook up to a computer using a micro USB cable alone, run iTunes and select the AppleTV to restore:
    http://support.apple.com/kb/HT4367

  • Classic Report with Hide and Show Region Template does not show report

    Hello,
    I created a "No Template" region on a page with a Classic Report. When I change it to a "Hide and Show" region template, the report does not show up when I click to Show the region...is there an additional step i'm missing to make the report show up. Its a very simple query.
    Thanks in advance,
    John

    How about posting some relevant information like Apex version, RDBMS version, Theme you are using, etc.?
    Regards,

  • Hide and Show Region Problem

    Hi,
    I have created a report with the following attributes:
    Region Definition User Interface - Hide and Show Region;
    Report template -Standard;
    Sort Columns - all checked.
    Report source - SQL Query (PL/SQL Function Body returning SQL query).
    I open a page with this report, click on (+) and show region but when I try to sort records in the column region hides. The same problem I have with some others report templates.
    Report templates Borderless and Horizontal Border do not have this problem.
    I am using Application Express 2.2.1.00.04.
    Could someone explain what it is?
    Thank you in advance.
    Val

    Report template -Standard
    Use a "Standard - PPR" template instead, that works better with a Show/Hide region template because the entire page is not re-rendered when you click on a column header to sort. Only the report region content is refreshed.

  • Hide and Show

    Hi all,
    In my application i want to hide and show a report. For this i created two buttons in a new region and setting a hidden item value depends on Hide or Show button.But i want to hide the report only not the title so that i can able to place the Hide and Show buttons in the same region.

    Hi,
    There is a "Hide and Show Region" region template that you can use that does this for you.
    However, if you wish to stay with what you have, you could enter the report title into the region that contains the buttons (assuming that this is above your report?) and use the "Region without Title" for the report region itself.
    Andy

  • Hide and show region and an interactive report showing side by side

    Hi,
    I have a report and some filters (drop down list) on a page... I've put my filters in a Hide and show region...
    Here is how it's been set up...
    Display Point: Page Template Body (1)
    20           Filters     HTML     
    Display Point: Page Template Body (2)
    10           Report Saved Report     
    my issue is that the filters and report search region shows side by side in a same row... tried changing the regions but still getting the same response... Please advice

    Hi,
    Place both regions to Display Point: Page Template Body (3).
    Then set filters region sequence to 10 and report 20
    If that is not what you need, please specify more how you like layout look like
    Regards,
    Jari

  • Sticky hide and show not working

    I believe I have followed Carl Backstrom's Sticky Hide and Show Region example to the letter for my own application.
    1 - I have the application items and application processes in place.
    2 - I have the javascript in the HTML Header attribute
    3 - The SHOW_HIDE_MEMORY package is in place
    4 - I edited the Hide and Show Region template
    I'm on Apex version 3.0.0.00.20
    The collection does not seem to be getting populated. I'm wondering if the region template which includes this code is not working: onclick="$r_ToggleAndSave(this,'#REGION_ID#')" id="#REGION_ID#img"
    My regions are always collapsed when I navigate away and return to the page and the collection is always empty. I've checked the state of the temporary item after clicking the expand (+) button and the value is always null.
    Any help would be greatly appreciated.
    Thanks, Todd

    Hi Carl,
    I'm not seeing any obvious errors on the screen or in the message bar. I just downloaded the Firefox javascript debugger extension. I'm not exactly sure how to use this tool, but when I expand a hidden region, I do see this message in the debugger screen:
    Warning ``reference to undefined property this.onShutdown_'' [xs] in file ``file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSafebrowsingApplication.js'', line 1710, character 0.
    Error ``node has no properties'' [xs] in file ``http://dsi3.gfc.iowa.com:7777/i/javascript/htmldb_html_elements.js'', line 25, character 0.

  • Hide and Show question.

    I have application with button which I would like to show only when status is "Draft".
    I have created created condition for the button where Value Exoression 1 = Expression 2
    Where expression 1 is P9_X_STATUS
    and expression 2 is Draft.
    Button is still hidden.
    Just to let you know that if I place button below status field, my hide and show condition works.
    Any idea?
    Robert

    I have set the default value to "Draft" when page is first opened.
    and I have Condition set for it : Exists (SQL query returns at least one row)
    SELECT 1
    FROM DUAL
    WHERE :P9_X_STATUS = 'Draft' or :P9_X_STATUS = '' or :P9_X_STATUS = null
    I don't understand why this button is shown when I move field below it (button).
    What is the rule for showing and hiding elements on the form?
    Regards
    Robert

  • Hide and show regions

    Hello,
    I am using Hide and show regions on my page. But now I'm encountering a problem. Every time the page reloads, all regions are collapsed. Is there some way to make sure the regions that were open, are open again when the page reloads.
    Thanks in advance,
    Bram.

    Hello Bram,
    Ben's right :) I forgot it was allready made in the past... check out the howto: http://apex.oracle.com/pls/otn/f?p=35250:6:1357026562718730::NO
    So, I just wasted some time creating my own example, without the collections used in the packaged app Ben referred to. But here it is, nonetheless: http://apex.oracle.com/pls/otn/f?p=39118:10
    Greetings,
    Rutger
    http://rutgerderuiter.blogspot.com/
    ===============================================================================
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Hide and show portlets

    Hello all,
    I have created two forms and two reports and added them in a page as 4 portlets like this...
    FORM1                    REPORT1             
    FORM2(Hidden)        REPORT2(Hidden) 
    ---------------------------------------------------------By default Form2 and Report2 are hidden..
    If I click the link on Report1...
    Form2 and Report2 should be visible....
    How can i acheive this..
    I hope someone suggest me a good solution..
    Thanks a lot in advance..
    Regards,
    Paappu.

    I do not think it is advisable to use page properties to hide and show portlets on them on user interaction. This assumes that we can do it by changing the display properties of those portlets on Page.
    The reason is this: If I am a user of your portal and visited one such page, I would see Form1 and Report1 on the page.
    Let us say, I clicked on some link you are planning, and then I started seeing Form2 and Report2 on that same page.
    However at the same time, you also visited on the same page right after I had clicked on that link. Then you will also see Form2 and Report2. And so the state of the page will be changed for all users after the first user's action.
    Is it actually what you would intend to do? that different users will see different pages based on who has visited the page before them?
    that is why I would not recommend it. Hope that helps.
    AMN

  • Hide and show text

    Hi how can i hide and show text on a form

    set_item_property('blockname.itemname',visible,property_true);
    set_item_property('blockname.itemname',visible,property_false);

Maybe you are looking for

  • Noclassfound error while connecting java with oracle database

    hi all the source code metioned below gets compiled. but when it is run it gives thefollowing error. ClassNotFoundException: jdbc.driver.OracleDriver Exception in thread "main" java.sql.SQLException: No suitable driver at java.sql.DriverManager.getCo

  • Exception caught during processing mail message

    I am getting the following error in CC monitoring for my sender mail adpater: exception caught during processing mail message; java.io.IOException: invalid IMAP status response; not finding * STATUS, but 001I NO The requested item could not be found.

  • Installing sound driver on Windows XP (Qosmio 505 & co.)

    http://thesunstroke.blogspot.com/2010/07/windows-xp-on-toshiba-qosmio-x505.html Now that I have Win XP with sound on my laptop I can finally enjoy games.

  • Safari video upload

    Whenever I'm uploading a video to a site like YouTube, after a couple of minutes Mac OS X puts the computer to sleep as it seems that it is not aware that an upload is in progress. How do I get around this?

  • Date format in windowes 7

    i have problem with date format in developer 10g and developer 6i it show date in this format 2011/25/1 it sould be like this 25/1/2011 i put the format mask like dd/mm/yyyy but it showing lik 2011/25/1 this problem only in windowes 7 if i run in win