How many Effects do I need?

OK. So maybe someone can help with THIS one...
We have several lists of data categories (teachers, students
and media) and each category has two states--pending and active,
which we use Spry Tabs to move effectively between. We use a detail
region to approve/delete the individual items.
So, we end up with this mess:
var g_oTeacherDetailShrink_effect = new
Spry.Effect.Grow('adminDetail_div', {toggle:true,
finish:showDetailShrink_finish, growCenter:true, from:'100%',
to:'0%', duration: '100'});
var g_oTeacherDetailExpand_effect = new
Spry.Effect.Grow('adminDetail_div', {toggle:false, setup:
showDetailExpand_begin, finish:showDetailExpand_finish,
growCenter:true, from:'0%', to:'100%', duration: '300'});
var g_oTeacherPendingDetailShrink_effect = new
Spry.Effect.Grow('adminDetail_div', {toggle:true,
finish:showDetailShrink_finish, growCenter:true, from:'100%',
to:'0%', duration: '100'});
var g_oTeacherPendingDetailExpand_effect = new
Spry.Effect.Grow('adminDetail_div', {toggle:false, setup:
showDetailExpand_begin, finish:showDetailExpand_finish,
growCenter:true, from:'0%', to:'100%', duration: '300'});
var g_oStudentDetailShrink_effect = new
Spry.Effect.Grow('studentDetail_div', {toggle:true,
finish:showStudentDetailShrink_finish, growCenter:true,
from:'100%', to:'0%', duration: '100'});
var g_oStudentDetailExpand_effect = new
Spry.Effect.Grow('studentDetail_div', {toggle:false, setup:
showStudentDetailExpand_begin,
finish:showStudentDetailExpand_finish, growCenter:true, from:'0%',
to:'100%', duration: '300'});
var g_oAssetPendingDetailShrink_effect = new
Spry.Effect.Grow('assetPendingDetail_div', {toggle:true,
finish:showAssetPendingDetailShrink_finish, growCenter:true,
from:'100%', to:'0%', duration: '100'});
var g_oAssetPendingDetailExpand_effect = new
Spry.Effect.Grow('assetPendingDetail_div', {toggle:false, setup:
showAssetPendingDetailExpand_begin,
finish:showAssetDetailExpand_finish, growCenter:true, from:'0%',
to:'100%', duration: '300'});
var g_oAssetDetailShrink_effect = new
Spry.Effect.Grow('assetDetail_div', {toggle:true,
finish:showAssetDetailShrink_finish, growCenter:true, from:'100%',
to:'0%', duration: '100'});
var g_oAssetDetailExpand_effect = new
Spry.Effect.Grow('assetDetail_div', {toggle:false, setup:
showAssetDetailExpand_begin, finish:showAssetDetailExpand_finish,
growCenter:true, from:'0%', to:'100%', duration: '300'});
Which seems rather inefficient given each pair does
essentially the exact same thing in exactly the same location and
size. Only the data changes.
Suggestions to make this more efficient (let alone
maintainable!)?
Scott.
P.S. Adobe needs to lose fusetalk for something that handles
code posting better...!

I love that example! Although I still need that rats nest for
setup, actually implementing them works resonably well--the trick
to consolidating things was re-reading the doc a few times and
realizing that the "
setup:
function" and "
finish:
function" were secretly, er,
automatically passed two variables, the element and the
effect, respectively.
So, for those who also might be fuzzy on that:
var zoomWindow = new Spry.Effect.Grow('example1',{duration:700,
from:'100%', to:'20%',toggle:true, setup:startMeUp,
finish:endMeUp});
will call:
function startMeUp(
element (zoomWindow, in this case)
effect (the object "Grow", in this case)
at the start and:
function endMeUp(
element (zoomWindow, in this case),
effect (the object "Grow", in this case)
at the end. So, even though the reference to the function in
the Grow doesn't seem to be passing variables, you need to build
your function to accept them. Note that you do *not* use quotes
around your setup and/or finish functions (and don't include the
parenthesis, either!)

Similar Messages

  • How many problems do you need to have with a mac book pro to get it replaced i have had 6 problems and they say they have fixed everything and somthing new happends

    how many problems do you need to have with a mac book pro to get it replaced i have had 6 problems and they say they have fixed everything and somthing new happends
    I have had thehad the:
    ram replaced
    Battery
    Audio
    Trackpad
    os operating system
    fans
    And they still won't replace the laptop for me worst buy ever but i have had a imac for 2 months and nothing at all wrong .

    You could try calling Apple and ask for Customer Relations.
    From Readers Digest-February, 2005
    How to Complain
          You call customer service to complain about a product, and you hang up angrier than when you started. That’s customer rage, a feeling experienced by millions of people with a major complaint, says Scott Broetzmann, president an American firm that tells companies how to offer the best customer service. His secrets to getting good service:
    Have a goal
    If you want your product repaired, say so. Want an apology? Speak up.
    Keep it short
    Focus on one problem, and be succinct.
    Stick with it
    You have to invest the time it takes. Don’t get what you want? Ask for a supervisor.
    Skip ultimatums
    Don’t threaten not to do business with them again. Why should they help you if you won’t buy from them in the future?
    Plead your case
    Many companies have information such as how much money you’ve spent with them and how often you complain. If you’re a good customer, they may be more willing to help.
    Be nice
    You’re unlikely to get what you want if you’re rude.
    Good luck.

  • ISCSI MPIO, how many path do I need to create

    Hi,
    I've a server with 4 NIC connection to a DELL MD32xx which have 8 NIC.
    My question is how many path do I need to create under iSCSI connection.
    Do I need to create a path from each Server NIC to each MD32xx NIC, which will make 32 connection (and doesn't make sense).
    If not, how should I proceed, I've looked at many example and none seem to cover that kind of situation, they just directly connect the server NIC to the MD32xx NIC instead of going through switch for redundancy.
    Thank
    ML

    Hi,
    I've a server with 4 NIC connection to a DELL MD32xx which have 8 NIC.
    My question is how many path do I need to create under iSCSI connection.
    Do I need to create a path from each Server NIC to each MD32xx NIC, which will make 32 connection (and doesn't make sense).
    If not, how should I proceed, I've looked at many example and none seem to cover that kind of situation, they just directly connect the server NIC to the MD32xx NIC instead of going through switch for redundancy.
    Thank
    ML
    Please follow the guides and discussions here:
    Windows MPIO Setup for Dual Controller SAN
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/3fa0942e-7d07-4396-8f2e-31276e3d6564/windows-mpio-setup-for-dual-controller-san?forum=winserverfiles
    It's MD3260 so can be used for 32xx storage unit with iSCSI uplinks.
    StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • HT1222 How many GB do I need to download video

    How many GB do I need to download video

    It depends on the size of the movie, the capacity of your iPad and how much space you have left, so you need enough to hold whatever the size of the video is and still leave about 10% of your total storage space available.
    Most Movies are at least 2GB. I have seen some that are over 6GB.

  • How many effects can you put on each track? and best reverb and chorus fx??

    Hi,
    I was wondering how many effects you can truly put on each track.
    i tracked vocals last night and could only put two inserts in there. Is that all?
    so if i want to eq my voice and add verb or eq my voice and add chorus, i can't even think of adding anything else???
    also, what are the best reverbs and chorus effects to use that give your voice that professional sound that they have in R&B songs??

    i tracked vocals last night and could only put two inserts in there. Is that all?
    As you add a second plug-in, a third slot becomes available. Add a third plug-in, a fourth becomes available, etc...
    also, what are the best reverbs and chorus effects to use that give your voice that professional sound that they have in R&B songs??
    That "professional" sound (depending on what you're listening to) is the singer.
    Yes, there are FX that enhance it, but a plain, non-effected vocal will sound professional if the singer is good.
    If you're feeling like you have to add EQ, reverb, chorus, etc to sound "professional"... than the singing isn't good. Trust me on this one.
    Aside from a good singer, having a quality microphone and pre-amp is a good place to start, gear-wise. Follow that up with a good hardware compressor, maybe EQ, and THAT alone should sound like a million bucks if the singer is the real deal.
    Don't underestimate the importance of compression, when used correctly. This will even out the volume of the vocal, and bring it forward, making it seem more intimate.
    Chorus is rarely a flattering effect, unless it's used very subtly, or an obvious "effected" sound is desired.
    And a little bit of reverb can go a LONG way. A "smidge" of any of Logic's Space Designer vocal presets will do just fine.

  • How many GB do I need to download a rental movie from ITunes?

    How many GB do I need available to download a movie?

    The description in the iTunes Store gives the size of the movie. If you are acquiring it from elsewhere, the information should be available.

  • HT4623 How many gigabytes do I need spare on my iphone4 to upgrade to ios7 ?

    How many gigabytes do I need free on my iphone4 to upgrade to ios7 ?

    Then update using iTunes on your computer. You'll be fine & you don't have to delete anything. You only need that much free space if you update OTA. Once the update is done, you get the space back. So, use your computer.

  • How many NWDI do I need?

    Hi!
    Our company is an SAP outsourcing unit. We have about 16 landscapes with
    all kinds of SAP products.
    We are going to use NWDI to handle JAVA transport.
    Could you inform us how many NWDI do we need?
    Thanks a lot!

    Hi Jennifer,
    This might help, read
    http://help.sap.com/saphelp_erp2005/helpdata/en/42/f1a03611d83ee4e10000000a1553f7/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/54/347a2a840246b1bbd8fc9154be6658/frameset.htm
    Regards
    Juan
    Please reward with points if helpful

  • How many cals do i need?

    Let say i have 300 active directory accounts but only 100 physical users (with heartbeats), how many CALs do i need per user CAl licensing? Also, if i have 300 emails  accounts in exchange 2010 but only 100 physical users, how many exchange CALS do
    i need? And if 5 users leave the company, does the CALS be free up for the next employees?
    Based on my research, i need 100 AD CALS and 100 exchange CALs but i getting conflicting information. Can someone who knows licensing really well confirmed this?
    Thank you.

    Hi My3cents,
    Sorry for the delay reply.
    For licensing related issue, you’d better contact Microsoft licensing team. In the United States and Canada, you may call the licensing team directly
    at 1-800-426-9400 (select option 4), Monday through Friday, 6:00 A.M. to 5:30 P.M. (PST) to speak directly to a Microsoft licensing specialist. In this way, you will know the detailed information about license.
    Worldwide customers can use the Guide to Worldwide Microsoft Licensing Sites http://www.microsoft.com/licensing/worldwide.aspx to find contact information
    in their locations.
    Thank you for your understanding!
    Best Regards,
    Anna

  • How many WHEREs do we need in minimun when we have 4 FROMs in the statement

    How many WHEREs do we need in minimun when we have 4 FROMs <tables> in the statement?

    Technically none - but it produces cartesian join:
    SQL> SELECT * FROM scott.emp, scott.dept, scott.salgrade;
         EMPNO ENAME      JOB               MGR HIREDATE        SAL       COMM
        DEPTNO     DEPTNO DNAME          LOC                GRADE      LOSAL
         HISAL
          7788 SCOTT      ANALYST          7566 87/04/19       3000
            20         40 OPERATIONS     BOSTON                 3       1401
          2000
          7839 KING       PRESIDENT             81/11/17       5000
            10         40 OPERATIONS     BOSTON                 3       1401
          2000
         EMPNO ENAME      JOB               MGR HIREDATE        SAL       COMM
        DEPTNO     DEPTNO DNAME          LOC                GRADE      LOSAL
         HISAL
    280 wierszy zosta│o wybranych.

  • How many servers are generally needed to a medium size HFM project

    Hi,
    I am new to HFM.Can any one help me that How many servers are generally needed to a medium size HFM project? And details that servers are for what segments?
    Thanks in advance.

    Hi,
    You can use one serwer only for everything (provided that you use classic application).
    Number of servers depends on the number of planned applications, the number of users, number of entities, number of accounts, the amount of calculation...
    Best,
    Marcin Kuzdra

  • How many NWDI do we need?

    Hi!
    We are an SAP outsoucing company with many different
    landscapes for MI, EP, ECC, XI, SM, etc.
    We have decided to use NWDI to handle all JAVA change management.
    Some SAP systems can be in the DMZ.
    So how many NWDI do we need? Is one enough?
    I'll give points. Thanks!

    Hi Laura,
    this doc shows typical NWDI scenarios/landscapes with XI
    read just the first section and you will know
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f85ff411-0d01-0010-0096-ba14e5db6306
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How many channels should i need for my 10 pieces of thermocouple?

    1.i need test 10 pieces of thermocouples at one time,so how many channels do i need? are 8 channels enough(SCXI-1112) of i must use 32 channel(SCXI-1102)?
    2.I only need test 3 LVDT signals and 3 strain guage signal(must full bridge),do you have 4 channels' LVDT module and 4 channels' Strain/bridge module(full bridge)?
    3.if i hug all these sensors to the signal conditioning,does that mean my DAQ should have at least 16 Analog inputs,beside do you have 12-bit DAQ?

    dittoit,
    1. If you need to measure 10 thermocouples, then you will need at least that many differential channels. So the 1102 would be best.
    2. The current LVDT module we offer is the 1540 which has 8 Channels as does the 1520 which is the best strain gauge module.
    3. The measurements from the SCXI Chassis will normally be multiplexed to one channel on the DAQ card. Any of our E-Series (except the Basic DAQ) will control. Our E-Series card can be either 12-bit or 16-bit.

  • CSS with SSL module - how many certs do we need

    Hello,
    currently moving from server-based certs to CSS/SSL based.
    We have two sites, two CSS/SSL on each in ASR mode.
    There are two real servers behind each SSL rule for load balancing.
    The question becomes how many certificates do we need
    for such design ?
    For sure we need one per site, then on each site we have Active/Standby CSS's.
    Do we need separate certificate for each CSS?
    I dont think so, cause only one is active at the time.
    I tested it with same certificate on both CSS's on one site, no problem.
    The question is will it be ok for production ?
    So total number would be 2 cert for such design (one per VIP) if we have one SSL rule per site, and 4 if we have 2 SSL rule per site - is it ok ?
    Thank you,
    Alex

    the certificate is linked to a host name ie: www.mycompany.com.
    So, if you have 4 css, all handling traffic for www.mycompany.com, then they can all share the same certificate.
    Even if you have the 4 CSS split over 2 sites, using different vip, as long as they handle the same hostname, then they can share the certificate.
    Actually, the CSS itself does not care about hostname/certificate mapping.
    The CSS will use whatever certificate you configure it to use.
    However, browsers make a check url <-> certificate and if there is a mismatch, they pop up an error message.
    Regards,
    Gilles.

  • How many ports do I need to open for Java InfoView? - CR Server 2008 v1

    Hi,
    We are using Crystal Reports 2008 V1 (BuildVersion=12.1.0.114.CRS2008_V1). CMS runs on Oracle 10g. The product I need help for is InfoView.
    The report server is behind a firewall. I would like to know how many ports do I need to open and what they are so that I can access to InfoView (Java Version) from internet.
    The client's IT blocks all ports, except HTTP 80 and HTTPS 443. Is it possible to configure InfoView to run on port 443? Would one port be enough? Port 80 is being used by another application.
    I would appreciate any light to be shed on this issue.
    Thanks,
    Sinan

    InfoView will just need a single port. However CR Server 2008 has additional component who interact. I believe that CR Server 2008 doesn't allow a distributed installation so then the only port that should be opened on the firewall is to reach the web application and from the application server towards the database server hosting the CMS database.
    Hope this helps...
    Martijn van Foeken
    Focuzz BI Services
    http://www.focuzz.nl
    http://nl.linkedin.com/in/martijnvanfoeken
    http://twitter.com/mfoeken

Maybe you are looking for

  • How can I reprint the report?

    Dear Team, I have a requirement,   I have going to print the custom report (label print) once pick confirm has been done automatically.   If due to some reason (printer is not working or report not printed properly, or labels are not printed properly

  • Preordered an album off of the iTunes Store and didn't receive the singles off the album

    So the iTunes store was advertising if I preordered Katy Perry's PRISM I would automatically download "Roar" & "Dark Horse". After I preordered the album I didn't receive "Dark Horse", the iTunes Store says that I purchased the single. In my purchase

  • EndNote Option doesn't appear in menu

    Under the insert menu, I don't have anything for Endnote, even though I have the program. I do have the option to insert a mathtype equation, and I'm quite sure I downloaded mathtype and "installed" it after installing iWork. I don't want to uninstal

  • Exchange 2007 SCR and MSExchangeMailboxAssistants Service

    Morning All, I did a SCR failover and failback yesterday to test Functionality on my exchange servers. everything worked as expected, however i am seeing the following error in my current live exchange server. Error is generated every 1 to 3 minutes.

  • Erases work and can't fix it.

    My computer becomes warm on the right side of the mouse-pad which causes the screen to either scroll down or (if in a page) the text to erase. The phone operators will not help and they gave me addresses to businesses that are showing up as closed in