Spry.Effect.Slide - cannot set initial state.

I have 3 div elements using the Spry.Effect.Slide effect. I
use CSS to close 2 elements and leave 1 element open. It works fine
in Firefox. But in IE7 when the hidden elements slide down to show,
its still display of none!! In firefox, the elements are displayed
fine when the slide effect is started. Below is my code.
Is there another simple approach that will work in IE7?
<style>
#menuGroupAboutCompany { display:none; }
#menuGroupAboutProducts {}
#menuGroupMoreMatchpoint { display:none; }
</style>
<script type="text/javascript">
var menuGroupAboutCompany_toggle = new
Spry.Effect.Slide('menuGroupAboutCompany', {duration:500, from:
'0%', to: '100%', toggle:true,
setup:menuGroupInit('menuGroupAboutCompany') });
var menuGroupAboutProducts_toggle = new
Spry.Effect.Slide('menuGroupAboutProducts', {duration:500,
toggle:true});
var menuGroupMoreMatchpoint_toggle = new
Spry.Effect.Slide('menuGroupMoreMatchpoint', {duration:500, from:
'0%', to: '100%', toggle:true, setup:menuGroupInit});
</script>

Sorry, previous code posting had some other code I was
experimenting with. This is the current code that works in Firefox.
<style>
#menuGroupAboutCompany { display:none; }
#menuGroupAboutProducts {}
#menuGroupMoreMatchpoint { display:none; }
</style>
<script type="text/javascript">
var menuGroupAboutCompany_toggle = new
Spry.Effect.Slide('menuGroupAboutCompany', {duration:500, from:
'0%', to: '100%', toggle:true});
var menuGroupAboutProducts_toggle = new
Spry.Effect.Slide('menuGroupAboutProducts', {duration:500,
toggle:true});
var menuGroupMoreMatchpoint_toggle = new
Spry.Effect.Slide('menuGroupMoreMatchpoint', {duration:500, from:
'0%', to: '100%', toggle:true});
</script>

Similar Messages

  • Spry effect "slide" won't reappear

    Hello DW users, I recently made and uploaded a simple HTML
    page to test out spry effects on text and images. If you view the
    page at
    http://student.santarosa.edu/~dnorth/hmwk1.html
    you can see what I'm talking about. Everything works fine except
    for the "slide" effect. It is set to toggle in its dialogue box,
    but doesn't work like i expected it to. When you click on it, it
    slides away and disappears. When I click back in the same area, it
    doesn't reappear as I expected it to. I can only get it to come
    back if I hit the page refresh button. any suggestions?? Thanks,
    Deborah North

    Just so you'll know, it never makes sense to remove a valid
    and complete
    doctype.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "dnorth" <[email protected]> wrote in
    message
    news:fne0qe$kqn$[email protected]..
    > Hi Teresa, thanks for the info. I've been working on it
    and I got the
    > slide
    > effect to work only while linking it from a text link,
    not directly from
    > the
    > image itself. It still has problems as you can see if
    you go back to the
    > link.
    > I'm wondering if the slide effect has some bugs to make
    it work in this
    > manner.
    > Maybe I need a hack. I tried removing the Doc Type as
    you suggested, but
    > that
    > still didn't fix things. Who knows. I really appreciate
    your time and
    > suggestions on this problem. Please go back to the page
    and hit refresh if
    > you
    > have the time.
    http://student.santarosa.edu/~dnorth/hmwk1.html
    >
    > Thanks again, Deborah
    >

  • 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

  • Spry Effects questions

    I have two (2) questions about using the Spry Effects script in a horizontal slide configuration.
    Question 1:
    In DW CS4 if I add the command <duration: 500,> the numerals turn red.  I also get an error in line ???? from DW which is the line the variable is on.  If I go ahead and accept the change I see the desired quicker slide in Firefox and Safari.  The default is 1,000 milliseconds so I am cutting it in half.  But!  In Internet Explorer 7 the script locks the browser window up.  Even if I revert to the saved HTML and JS files the problem still persists.  This problem also occurs if I set the duration higher than 1,000 milliseconds.
    This also happens if I upload the files to the Internet.  I was forced to redo the line in question and copy my saved SpryEffects.js over to my working directory.  This unlocked the file in Internet Explorer 7.  Any suggestions on how to get the quicker response time in Internet Explorer 7?
    Question 2:
    In Firefox I get a border around the button that enacts the Spry Effect.  I set the text decoration to "none" for both of the IDs for the images.  This thin line does not appear in Internet Explorer 7 or Safari 4.0.3.  My version of Firefox is version 3.5.3.
    The file can be viewed here.
    Thank you in advance.

    I have also found that the Spry works better in FireFox than
    IE7, when it comes to video
    http://www.catholicmemphis.com/catholicmensconference.html
    Check out this page and you will see that the Spry tabbed
    menu stops the video in FireFox but not in Explorer. I have seen
    this type of problem in a few forums, but know one gives an answer
    to those looking for solutions....

  • Initial State of Navigation Panel - Automatic not working

    Hello,
    I have several iViews where I have set Initial State of Navigation to Automatic, which should collapse detailed navigation if there is nothing on it to display. However, it always comes up open even though it is blank. Is there anything else that needs to be down to make it work? We are on EP7 SP14.
    Thanks,
    Alex

    Could you check your Portal Desktop Innerpage to check if there is some other iViews also on the left hand side where detail navigation iView is residing? Sometime another iView named Favorites is added there. So it might be the case though detail navigation is not there still it is showing the blank portal favorites iView on the left side.
    To check this Open you portal framework page -> Open Desktop Innerpage -> See if there is anything except Content Area and Detailed Navigation there. Check the Innerpage layout to see where these iViews are placed in side the page.
    Regards,
    Shubhadip

  • IE7 and Spry Effect

    In IE 7 when you start your div with display: none; in order
    to have the slide collapsed at start, when it expands, the text
    inside the div remains hidden, in FireFox the text displays
    properly. Any ideas?

    I just tried V1 Fusions idea and it sort of works, didn't
    have time to play with it more.
    The solution I found, though its still hack and I don't like
    it is to add a second effect to start it off closed:
    so my two effects are:
    var slideClose_effect = new Spry.Effect.Slide("slide1",
    {duration: 1, from: '0%', to: '0%', toggle: false});
    var slide_effect = new Spry.Effect.Slide("slide1", {duration:
    200, from: '0%', to: '100%', toggle: true);
    where slide_effect is triggered on a click of a link
    slideClose_effect is triggered on the page load
    and then I start off the div as visibility = hidden for the
    sliding div. Which works but now there is a blank div that
    collapses on load then works perfectly. I just wish I could start
    out with it collapsed at the get go.
    here are my two effects

  • Spry Blind Effect - Initial state closed

    Hi,
    I was wondering if its possible to have the Blind effect, set to be closed initially and then "Blind down"?  I've tried setting the "Blind from" fields but it doesn't seem to work.  The div container is always open initially then toggles up and down properly, I'd just like to be able to set it to be 'closed' initially. Is there a way to do this?
    Note: I have a table inside the container div, not sure if it affects it but it does seem to work when I toggle so, my issue is simple to have it on that closed state initially.
    Thanks for your help!
    Al

    Hi Ben,
    Thanks for your reply, yup I already saw that page but didn't seem to work
    with my case, so I just decided to use several "colapsable" widgets and that
    seemed to work, but was interested in knowing if there existed a way to have
    the Blind behavior start with the initial state being closed.
    Frank

  • When I click the iCloud button I get a browser with check boxes, not slider buttons and it does not have a "backup and storage" button.  So I cannot set up backup.

    When I open my iCloud browser it looks different than "normal." It shows the list with check boxes, not slider on-off buttons.  It dos not show a "storage and backup" button so I cannot set up my backup. What is wrong?

    If see something like the image below it's because you are looking at the iCloud settings on your Mac, not on an iOS device (which has sliders).  Storage & Backup isn't in the Mac settings because you cannot back up your Mac to iCloud.  Only iOS devices can back up to iCloud.  On a Mac, you can get information about your iCloud account storage by looking at the green usage bar at the bottom and by clicking the "Manage..." button on the bottom right.

  • Spry Validation-text field shows the "required" text even in initial state

    Hi,
    I'm having trouble with spry validation.
    I insert my spry textfied and go to the properties inspector where  I choose validate on "Blur" and "submit" for the Required state. I check the required box for the "required state" but the initial state will also have the "a value is required" text. If I try to delete the "a value is required" text from the initial state, the required state won't show this error.
    What should I do?
    Any help is much appreciated.
    Thank you.

    Hi, thanks so much for the reply
    Well the javascript came with the spry file that I downloaded from the adobe site.
    Here is my statement:
      <label for="name"><span class="style87">Name:</span></label>
                      <span id="sprytextfield1">
                      <input name="name" type="text" class="textInput" id="name" />
                      <span class="textfieldRequiredMsg">A value is required.</span>                  </span></p>
                  <p> <span class="style87">
                      <label for="email">Email:</label>
                      </span><span id="sprytextfield2">
                      <input name="email" type="text" class="textInput" id="email" />
                      <span class="textfieldRequiredMsg">A value is required.</span></span></p>
    This is the statement for the submit button:
      <span class="clearIt">
                      <input name="send" type="submit" id="send" onclick="MM_validateForm('username','','R','password','','R','name','','R','email','','R' ,'comments','','R');return document.MM_returnValue" value="Send comments" />
                    </span><span class="clearIt">
                    <input type="hidden" name="MM_insert" value="form1" />
    This is the javascript
    <script type="text/javascript">
    <!--
    function MM_validateForm() { //v4.0
      if (document.getElementById){
        var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
        for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
          if (val) { nm=val.name; if ((val=val.value)!="") {
            if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
              if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
            } else if (test!='R') { num = parseFloat(val);
              if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
              if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
                min=test.substring(8,p); max=test.substring(p+1);
                if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
          } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
        } if (errors) alert('The following error(s) occurred:\n'+errors);
        document.MM_returnValue = (errors == '');
    //-->
    </script>
    This is at the bottom of the page:
    <script type="text/javascript">
    <!--
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none");
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {validateOn:["blur"]});
    //-->
    </script>
    Thank you for your help.

  • Doable? Setting Spry Effects to trigger one after the next ala timeline?

    I've got a series of four slide effects. Each one controls another div. Simple enough. Problem is at this time they're all happening at the same time. I want it where once the first div slides into place, then the second div slides into place and so on. So there has to be a delay or something so the slide effects habe staggered starts. Is this doable in Spry? I've seen some examples but they seem to come off ars rather complex.

    Nope. That's not the answer. For starters, I pasted in your code and it came back with syntax errors. so I changed it to this:
    <script type="text/javascript">
        var showContent1 = new Spry.Effect.Fade('ms1',{duration: 1000,from: 0, to: 100, toggle: true, finish:new Spry.Effect.Fade('ms2',{duration: 1000,from: 0, to: 100, toggle: true, finish:new Spry.Effect.Fade('ms3',{duration: 1000,from: 0, to: 100, toggle: true, finish:new Spry.Effect.Fade('ms4',{duration: 1000,from: 0, to: 100, toggle: true})})})});
    </script>
    Which brought up no syntax errors, so I uploaded it and the first effect happens just fine but then it tries to trigger the second effect and instead I get a window prompt in Firefox like this:
    Spry.Effect ERR: Spry.Effect.Animator.prototype.stop: finish callback: Type Error: self.options.finish is not a function
    So I guess they don't consider the finish:new I added a function? Don't get it.

  • Save initial state after leaving slide

    I have a slide with drag and drop.I want to have the page save the interactions state I had on the page when click next then previous. Right now when I go to the next page and come back, the page refreshes to the initial state.

    Very annoying, I know, but there is no way to keep the state.

  • 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

  • Spry effect Appear/Fade don't toggle

    Ok.
    I have applied a simple, basic, no more basic then this
    cannot be possible, Appear/Fade using the effects behaviors menu in
    DW.
    I have turn on the Toggle option and I said: "appear from 0
    to 100".
    Well the result is this:
    http://www.cantinho.org/admin/cantinho/showhide.php
    Note: I can make a CSS to make the element disapear at the
    beginning, but why should I need that if I have configured to show
    from 0 to 100% ?
    What I'm missing here?
    Thanks.

    I have been having a similar problem, and I thought your fix
    might help my problem, but after downloading and running it, I'm
    still getting the same thing. I'm trying to use effectAppearFade to
    make a target link appear when another link is clicked. In order
    for it to appear, I evidently need to not hide it in CSS Styles,
    but then when the page first opens, the target link is visible. I
    can almost make it work by fading it from 100 to 0 in an onload
    operation on the body of the page. The appear logic then works fine
    and even toggles okay if I turn that on, but, when the page first
    loads, the link that I'm hiding flashes briefly before it
    disappears. I've also tried using changeProp in the body's onload
    code to hide the target link, but it seems that whatever I have set
    the property to in CSS Styles overrides whatever I do in the
    onload. I've also tried controlling its visibility with the display
    property with the same result. So far, I haven't found a way to
    hide the target link before the page has loaded and then fade it to
    0 before making it visible or in any other way to start the target
    link hidden and have it appear when I click the link with the
    AppearFade effect for it. Do you know what I'm doing wrong?
    Thanks for any help you can give me.
    Here's the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Home</title>
    <style type="text/css">
    <!--
    body,td,th {
    font-family: Times New Roman, Times, serif;
    color: #000099;
    visibility: inherit;
    body {
    background-color: #CCCC99;
    a:link {
    color: #000099;
    text-decoration: none;
    a:visited {
    color: #000099;
    text-decoration: none;
    .style1 {
    font-size: xx-large;
    font-style: italic;
    font-weight: bold;
    a:hover {
    text-decoration: none;
    a:active {
    text-decoration: none;
    visibility: inherit;
    .style4 {font-style: italic; font-size: xx-large;}
    .style5 {
    font-size: 16px;
    font-weight: bold;
    visibility: visible;
    display: block;
    -->
    </style>
    <script src="SpryAssets/SpryEffects.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function MM_popupMsg(msg) { //v1.0
    alert(msg);
    function MM_effectAppearFade(targetElement, duration, from,
    to, toggle)
    Spry.Effect.DoFade(targetElement, {duration: duration, from:
    from, to: to, toggle: toggle});
    function MM_showHideLayers() { //v9.0
    var i,p,v,obj,args=MM_showHideLayers.arguments;
    for (i=0; i<(args.length-2); i+=3)
    with (document) if (getElementById &&
    ((obj=getElementById(args
    ))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style;
    v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
    function MM_changeProp(objId,x,theProp,theValue) { //v9.0
    var obj = null; with (document){ if (getElementById)
    obj = getElementById(objId); }
    if (obj){
    if (theValue == true || theValue == false)
    eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
    //-->
    </script>
    </head>
    <body
    onload="/*MM_changeProp('#ArtLinks','','visibility','hidden','DIV');*/
    MM_effectAppearFade('#ArtLinks', 0, 100, 0, false)/*;
    MM_changeProp('#ArtLinks','','visibility','visible','DIV')*/">
    <div>
    <table width="100%" height="477" border="0"
    cellpadding="0" cellspacing="0">
    <tr>
    <td width="22%" valign="top"> </td>
    <td width="56%" valign="top"><p align="center"
    class="style1"> </p>
    <p align="center" class="style1"><a
    href="TechnologyMainFrame.html" title="Technology" class="style1"
    accesskey="t">The Promise of
    <u>T</u>echnology</a></p>
    <p align="center" class="style1">and</p>
    <p align="center"><strong><span
    class="style4"><a href="javascript:;" title="Art"
    class="style4" accesskey="a"
    onclick="MM_effectAppearFade('#ArtLinks', 1000, 0, 100,
    true)">The <u>A</u>rt of Life</a></span>
    </strong></p></td>
    <td width="22%" valign="top"><p
    align="center"> </p>
    <div class="style5" id="#ArtLinks">
    <p align="center" class="style5"><em><a
    href="Poems.php"><u>P</u>oems</a></em></p>
    <p align="center" class="style5"><em><a
    href="Story.php"><u>S</u>tory</a></em></p>
    </div></td>
    </tr>
    </table>
    </div>
    </body>
    </html>

  • Initial state

    HI,
    I am using this Superpanel v1.5 and I'm wondering if there is
    a way to get the "initial state" of the panels to be collapsed?
    I cannot figure it out no matter what i try
    source code:
    http://www.wietseveenstra.nl/files/flex/SuperPanel/v1_5/srcview/index.html
    demo:
    http://www.wietseveenstra.nl/files/flex/SuperPanel/v1_5/MainView.html

    Try setting the panel height to the panel's header height.
    You can get the panel's header height using getHeaderHeight()
    method.
    Hope this helps.

  • How to programmatically set initial password when a user is created in OID

    We are using the odihragent synchronization process to automatically create users in OID when an employee record is created. We would like to set the initial password for the newly created user to their last name + the last 4 digits of their SSN.
    The odihragent process is successfully creating the user in OID and populates the last name and the last 4 digits of the SSN in OID. According to an open SR I have with Oracle, we cannot use the odihragent process to set the initial password because any time the employee record is updated, the synchronization process will reset the password to last name + SSN. They have recommended that we use a pl/sql plug-in to set the password using the WHEN_ADD plug-in procedure.
    I am new to using OID and plug-ins and the examples provided in the Developer's Guide are limited.
    I would like to know if anyone else is using plug-ins or another process to set initial passwords when a user is created? If you are using plug-ins would you be willing to share a code sample?

    I am surprised that I have not received any responses... Surely there are others who are experienced with programmatically setting passwords when new users are programmatically created. Does anyone have any pointers on how to best accomplish this?

Maybe you are looking for