How set an initial state for Slide effects

Hi everyone, I would like to use the slide effect like the
collapsable panels, with an initial state "closed".
I used Spry Pre-Release 1.5 Preview
In my first attempt
<a
onclick="Spry.Effect.Slide('MoreOptionSlide',{duration:1000,from:'0%',
to:'100%',toggle:true})" >More Options</a>
The DIV is always "open" and after click it closes and
performes the slide animation.
Also i tried to change some style attributes of the DIV and
restore or change them in the "setup" function of the
spy.Effect.Slide constructor, I thought this function is executed
before animation, but it is executed even without be triggered the
animation.
Thanks,
Richard

Hello Richard,
After you design the page and adjust the element dimensions
as if the element would be in page without the animation to show it
you'll have to set the 'display:none' CSS property on that element.
In this situation the element will remain in page but will simply
be invisible. Something like this:
<div id="MoreOptionSlide" style="width: 300px; height:
200px; border: 1px solid black; overflow: auto;display:none;">
</div>
Now using Spry 1.5 effects you can make this element appear
after the More Options link is clicked:
<a href="#" onclick="effect.start(); return false;"
>More Options</a>
<script type="text/javascript">
var effect = new
Spry.Effect.Slide('MoreOptionSlide',{duration:1000,from:'0%',
to:'100%',toggle:true});
</script>
Regards,
Cristian MARIN

Similar Messages

  • Initial state for CNiIIRCascadeFilterHi

    Hi,
    I'm using a CNiIIRCascadeFilter for my signal processing.  I perform a forward an backward filtering on the data. To reduce transient on both ends I have to introcude paddings and to set the initial state of the filter. Is it possible to set the initial state? I could not find an appropriate method. Or is there a 'trick' to feed the filter with special values to achiev the wished state?
    Thank you
     Mario

    Hi Mario!
    I didn't found any 'trick' to in set an initial state. I didn't found anything else than that is documented in the MStudio help. For all methods of these classe please refer the help file.
    ms-help://MS.VSCC.v80/MS.VSIPCC.v80/NI.MeasurementStudio.2005/NIVCAnalysis/Objects/CNiIIRCascadeFilter/Main.htm
    Regards
    Tobias Lange
    Attachments:
    CNiIIRCascadeFilter.pdf ‏15 KB

  • How to write Select statement for this codition

    I need to check whether SGTXT contains BELNR value.
    SGTXT is a text field and It should be matched with BELNR
    How to write select statement for this.
    Select AUGBL AUGDT into t_BSAD
    from BSAD
    where SGTXT should have the given BELNR Value.
    Plz note : Here I cannot give as SGTXT = BELNR as coz BELNR have only 10 digits.

    Hi,
    data temp(12).
    concatenate '%' belnr '%' into temp.
    Select AUGBL AUGDT into t_BSAD
    from BSAD
    where SGTXT like temp.
    If belnr is having multiple values,just create a internal table as follows.
    types : begin of ty,
            belnr....
            temp(12),
            end of ty.
    data itab_ type standard table of ty.
    data wa type ty.
    loop at itab into wa.
    concatenate '%' wa-belnr '%' into wa-temp.
    modify itab from wa index sy-tabix transporting temp.
    endloop.
    Change your select statement accordingly.
    Kindly reward poits if it helps.

  • How set  UserName and Password for HTTP Basic Authentication for a servlet

    Hi..
    How set UserName and Password for HTTP Basic Authentication for a servlet in JBoss server?
    Using Tomcat i can do it .(By setting roles in web.xml, and user credintails in tomcat-user.xml).
    But i dont know how do it in JBOSS..
    I am using Netbeans and Eclipse IDEs.. Can we do it by using them also!?
    Thank u

    Hi Raj,
    You can do this by creating a Login screen for the users and check the authentication of each user in PAI i.e. PROCESS AFTER INPUT.
    Store the user information in a database table and check the username and password when the user enters it.
    You can display password as *** also. For this double click on input box designed for password and goto Display tab. Select Invisible in the list and check it.
      CASE sy-ucomm.
        WHEN 'BACK'.
          LEAVE PROGRAM.
        WHEN <fcode for submit>.
          SELECT SINGLE uname pwd
           FROM <DB table>
           INTO (user, pass)
           WHERE username = user AND
                   password = passwd.
          IF sy-subrc = 0.
    <Go to next screen for further processing>
          ELSE.
    <Display Error message and exit>
          ENDIF.
      ENDCASE.
    Regards,
    Amit
    Message was edited by:
            Amit Kumar

  • How can I get trial for after effects 4? it is the only version my PC meets the requirements.

    How can I get trial for after effects 4?
    it is the only version my PC meets the requirements.

    Hello  yaniv7m,
    in my eyes you will find it only in shops like ebay or Amazon, like this:
    http://www.ebay.com/sch/i.html?_from=R40&_trksid=p2050601.m570.l1313.TR0.TRC0.H0.Xafter+ef fects+4&_nkw=after+effects+4&_sacat=0
    or
    http://www.amazon.com/Adobe-After-Effects-CS4-VERSION/dp/B001EUJ0SI/ref=sr_1_1?s=software& ie=UTF8&qid=1407396391&sr=1-1&keywords=after+effects+cs4
    Good luck!
    Hans-Günter

  • How can I install Gimp for pictures effects ? They say i can't cause it's not an apple product ! :(

    How can I install GIMP for pictures effects ?  They say I couldn't cause it's not an apple product ? 

    10:10 PM      Sunday; January 13, 2013
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to set the default behavior of slide effect?

    Basically, I am using the spry widget that allow me to do the
    click and expand (like how sections get slide up and down) effect.
    (Sorry if I don't know the term, I am running a Chinese version...
    if it helps at all... it's "滑動" in chinese character)
    Is there any way to set it so that the object that being
    hidden/revealed stay hidden from the start before the click?
    Because of the way I have all my layouts setup, it really destroy
    the view if it's revealed from the start.
    Thanks in advance!

    It seems like the same one, but I can't find the accordion
    keyword in any of my code. I have this... which I guess is the code
    generated when I insert the widget
    "function MM_effectSlide(targetElement, duration, from, to,
    toggle)
    Spry.Effect.DoSlide(targetElement, {duration: duration,
    from: from, to: to, toggle: toggle});
    is that the same thing? how would I change it according to
    the instruction?
    i found the slide effect thing on adobe lab and found out how
    to have the element hide initially (by adding display: none; to my
    css), but then another weird problem.
    i have 8 divs wrap inside a big div "Main" which would be
    slid up and down. "Main" slid up and down as expected, but one of
    the small div (the first one to be precise) simply disappeared. the
    margin that I set for it still display correctly (I set the div to
    be 140 px, and there is a 140 px space), but no content (I have a
    mouseswap image),
    when I remove the display: none; code from the div "Main"
    part of the css, then the small div display correctly, with the
    mouse swap image.
    Did I do something wrong?

  • How can I set the initial state of the PGCTR0 out pin?

    Hi,
    I have a 6115 board, and I am trying to generate a pulse train on PGCTR0 with an external clock. The external clock signal is connected to PFI1 and the PGCTR0 is gated through PFI0. The PGCTR is reset at the end of each run.
    The problem is that the initial state of the PGCTR out pin changes from run to run, but I'd like it to stay high after reset. Any help is appreciated. THanks.
    feng

    Hi Feng,
    The default output state of your counters should be high depending on your board. If you run a counter application, and the line ends in a low state it will stay low. One way to change the output state is to not only reset the counter but reset the board (see knowledge base linked below). The other way is to treat it like a digital line (see second link below). This is probably the best method. This method should allow you to read the value and change it using a couple software calls. Instead of disabling the counter, I would reset the counter since you just want to reset the state. This method is also a decent workaround because you are resetting the counter anyway. Hope that helps. Have a good day.
    Default State of Counter Output Lines
    on E Series Data Acquisition Devices
    http://digital.ni.com/public.nsf/websearch/008995633E33E47486256B5F00034436?OpenDocument
    Using the General Purpose Counter (GPCTR) on the Data Acquisition (DAQ) Device as a Digital Line http://digital.ni.com/public.nsf/websearch/B8A49A4E33F38AB686256B610061DC6D?OpenDocument
    Ron

  • Is it possible to set IN/OUT points for video effects within a single clip in PE4?

    Hello,
    In PE4, Is it possible to use keyframes to simply turn certain video effects on/off at different points within a single clip ?
    Some effects (i.e. Invert)have a Blend With Original setting which makes this easy to achieve, but others (i.e. Ripple)do not.
    I understand how to use keyframes to adjust effect properties at different points within a clip, I just can't find a way to simply 'turn-off' or bypass an effect for a period of time.
    Thanks All, CB

    Chris,
    As Steve points out, most Effects are OFF, by default (usually setting their parameters to 0). I just add a Keyframe for that Effect, with those properties, where you want the Effect to be OFF (but check that each Effect that you use starts as OFF, just to be sure). Then, in between the OFF settings, I add Keyframes with the desired parameters to invoke that particular Effect.
    One can also use the Razor/Sissors to cut the Clip into segments (just do not move them) to keep the Keyframes in one area of the original Clip. I usually work on the entire Clip, as once the Keyframe is set to OFF for that Effect, no more Keyframes are needed.
    Some Effects also have a Bypass setting, that can be Keyframed (in P Pro, and assume in PE). This can be handy to fully turn OFF any Effect. Note: even in P Pro, not all Effects have a Bypass setting.
    As usual with PE (and P-Pro and PS), there can be a couple of ways to accomplish the same thing. One can choose the method that suits them best.
    Good luck,
    Hunt

  • How to Generate DDL Statement for PSAPROLL Tablespace on Oracle9i-HP_UX

    Hi,
    I am having SAP R3 46C installed with Oracle 9i on HP_UX 11i system.
    I want to generate required DDL statements for PSAPROLL Tablespace/Rollback Segments as Backup/recovery purpose, before converting it into PSAPUNDO.
    Its easy to find & store required DDL statements using OEM. But, I am not able to locate oemapp  (under $ORACLE_HOME/bin directory) application in the installation.
    The current patch level of installed oracle is
    I want to start OEM in HP_UX system, if it is possible.
    otherwise,
    I want to know the other alternatives to generate the required DDL statements.
    Thanks in advance.
    Regards,
    Bhavik G. Shroff

    Hi Stefan,
    On windows Platform it is very easy to get DDL info for any object of database.
    But, I was not able to start OEM in HP_UX system.
    I have done my job complete using this good package of Oracle9i, in this way.
    SQL> SET heading off
    SQL> SET long 10000
    SQL> SET pages 100
    SQL> SELECT dbms_metadata.get_ddl(u2019TABLESPACEu2019,'PSAPROLLu2019)
    FROM DBA_TABLESPACES;
    O/P:
    CREATE TABLESPACE "PSAPROLL" DATAFILE
    '/oracle/RQ1/sapdata1/roll_1/roll.data1' SIZE 681574400 REUSE ,
    '/oracle/RQ1/sapdata1/roll_2/roll.data2' SIZE 3145719808 REUSE
    LOGGING ONLINE PERMANENT BLOCKSIZE 8192
    EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1048576 SEGMENT SPACE MANAGEMENT MANUAL
    SQL> SELECT dbms_metadata.get_ddl(u2019ROLLBACK_SEGMENTu2019,'PRS_0u2019)
    FROM DBA_SEGMENTS;
    CREATE ROLLBACK SEGMENT "PRS_0" TABLESPACE "PSAPROLL"
    STORAGE(INITIAL 10485760 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 32765
    Also follow this useful links:
    [DDL Generation--Oracle's Answer to Save You Time and Money|http://www.dbasupport.com/oracle/ora9i/DDLgen2.shtml]
    [DDL Generation--Oracle's Answer to Save You Time and Money|http://www.dbasupport.com/oracle/ora9i/DDLgen3.shtml]
    Good.
    Thanks a lot.

  • How to find export statement for Import statement ?

    hi experts,
    I am having an IMPORT....from memory ID  statement in my program.
    how could i find the location of EXPORT ...to memory ID statement for the IMPORT statement.
    Pls help
    saravanan.

    Not possible if you are just trying to find it without knowing the links between your program and the other programs. You have to know all the objects that relate to the process that your program is automating and then you can probably dig into those related programs to see if there is an EXPORT statement there. But it is not as simple as double clicking on the IMPORT statement or doing a WHERE-USED on the memory ID.

  • How set maximum of characters for the columns

    Hello I use a JTable and I want to set maximum of characters for the columns.
    For example column 1 max 10 characters, column 2 max 20 characters, etc..
    How can I do this?

    The principle is as follows: a table uses certain input components for editing a cell value, e.g. a JCheckBox for Boolean-type values or a JTextField for textual/numerical values. By default, a JTextField doesn't have any size limit, so you can enter as many chars as you want. In order to change this behaviour, you'll have to
    1.) create a JTextField that does have a size limit and
    2.) set a CellEditor on the JTable which uses this manipulated JTextField.
    An easy way for 1.) is to create a custom Document (the internal data representation for text components, the M-part of the MVC -- see javax.swing.text.Document) that doesn't accept any text beyond a given limit, e.g.:
    public class LimitedDocument extends PlainDocument {
      private int max = 0;
      public LimitedDocument(int max) {
        this.max = max;
      public void insertString(int offset, String str, AttributeSet a) throws BadLocationException {
        // too long for the limit; get current contents, insert, and cut off trailing chars
        if ((getLength() + str.length()) > max) {
          StringBuffer buf = new StringBuffer(getText(0,getLength()));
          buf.insert(offset,str);
          remove(0,len); // remove current text contents
          super.insert(0,buf.toString().substring(0,max),a); // insert whole text
        // no problem, will fit
        else {
          super.insertString(offset,str,a);
    }Then, in order to set the cell editor -- for example for the first column --, you can do as follows:
    myTable.getColumnModel().getColumn(0).setCellEditor(new DefaultCellEditor(new JTextField(new LimitedDocument(5),"",5)));This will create a new DefaultCellEditor (see javax.swing.table) and initialize it with a given text field which will be responsible for any edition in this column. As the text field itself is created using a limit of 5, it should accept no text insertion beyond 5 chars.

  • How to use collect statement for below

    data : begin of itab,
             n(3) type c,
          n1 type n,
          k(5) type c,
          end of itab.
    select n n1 from into itab table /zteest.
    *internal table has
    n      n1    k
    gar    100  uji
    hae    90   iou
    gar    90   uji
    hae    87   iou
    I want
    gar 190
    hae 177
    How to use collect statement as n1 is n ..?
    let me know..
    Thanks

    try this..
    DATA : BEGIN OF itab OCCURS 0,
    n(3) TYPE c,
    n1(3) TYPE p DECIMALS 2,
    k(5) TYPE c,
    END OF itab.
    itab-n = 'gar'.
    itab-n1 = 100.
    itab-k = 'uji'.
    COLLECT itab .CLEAR itab.
    itab-n = 'hae'.
    itab-n1 = 90.
    itab-k = 'iou'.
    COLLECT itab .CLEAR itab.
    itab-n = 'gar'.
    itab-n1 = 90.
    itab-k = 'uji'.
    COLLECT itab .CLEAR itab.
    itab-n = 'hae'.
    itab-n1 = 87.
    itab-k = 'iou'.
    COLLECT itab .CLEAR itab.

  • How to gather table stats for tables in a different schema

    Hi All,
    I have a table present in one schema and I want to gather stats for the table in a different schema.
    I gave GRANT ALL ON SCHEMA1.T1 TO SCHEMA2;
    And when I tried to execute the command to gather stats using
    DBMS_STATS.GATHER_TABLE_STATS (OWNNAME=>'SCHMEA1',TABNAME=>'T1');
    The function is failing.
    Is there any way we can gather table stats for tables in one schema in an another schema.
    Thanks,
    MK.

    You need to grant analyze any to schema2.
    SY.

  • Initial setup for After Effects

    Hi. Running AE CS4 on a Mac Pro w/ 16 GB RAM. Have some questions regarding an initial setup for AE using two internal drives (boot drive is an SSD).
    With the aim of keeping my boot drive lean as possible and improving AE performance, in Preferences, under Conformed Media Cache, is it a good idea to select a folder on a different drive than the boot drive for both Database and Cache?
    Should I enable Disk Cache and should I choose a folder on the 2nd drive for it? I read that enabling Disk Cache is not a good idea if you only have one internal drive bus. I've got a mid-2010 Mac Pro and I'm not sure if it has more than a single internal drive bus (although there's a reference to busses in the specs).
    Re: Enabling "Render Multiple Frames Simultaneously" Without this enabled I was only able to get a RAM Preview duration of about 4" on a particular clip, but with it checked off, I was able to preview the entire clip (20"). So this definitely seems to be a good thing to have enabled. Anything I should be careful about?
    Last thing. Does it matter if I keep my AE project files in a folder on the 2nd drive?

    Dr. Seward wrote:
    Re: Enabling "Render Multiple Frames Simultaneously" Without this enabled I was only able to get a RAM Preview duration of about 4" on a particular clip, but with it checked off, I was able to preview the entire clip (20"). So this definitely seems to be a good thing to have enabled. Anything I should be careful about?
    You're running CS4. CS4 is old. It was written in 32-bit. This means it can only address under 4 GB of RAM. (CS5 and later are all 64-bit, so they can all access much more RAM.) When you enable multiprocessing in CS4, it actually launches several instances of AE so that it can address more RAM. Thus, your RAM preview will be longer because you are accessing more RAM. Does that help?

Maybe you are looking for

  • FIFA 13

    I have macbook pro 13 mid 2012. Intel hd4000 graphics. 4gb ram what best game settings can i use to play fifa 13 smoothly on my mac.?

  • TS1363 my ipod is no working is tell me disk mode is not connetting to my computer

    my ipod is not working is tell me disk mode is not connetting to my computer help me please

  • [SOLVED] Problem whilst trying to build kernel26-ck from source

    I've spent some time reading about kernel patch sets, and after some research and valuable info from the Arch community, I've decided that the ck patchset is most appropriate for my system, however,  I receive the following error after issuing a mkpk

  • Progress Bar in Form

    how can i use progress bar in form for performing task in background

  • Audio issues in Captivate 4

    Hi, I have problems with audio in Captivate 4: 1) While doing audio import/record you get "Unable to decode / import the selected wav/mp3 file" as error message. 2) Audio recording, calibration or editing does not work. 3) The Text-to-speech no work