Best Way to Set Active Class on Secondary Navigation

Hello All,
I've got a secondary navigation that looks something like this:
<a href="" id="link1">link 1</a>
<a href="">link 2</a>
<a href="">link 3</a>
<a href="">link 4</a>
I simply want to add a CSS class to each link when it's clicked on (also the first link when the page loads) to change the CSS properties of the link.  I've started with:
Spry.Utils.addClassName('link1','active');
And this works.  However when clicking through the other links, I need a better way to set the removeClass on the other ones.  As it is now, I manually add the class for the correct link, and then remove it for all the other links.  Obviously this isn't a very efficient way to go about doing this.
What would be a better way to handle this across the board, while activating link1 when the page loads?
Thanks in advance.

What I ended up doing was using the addClassName and removeClassName on each link element.  The issue I had was that all the links have to change to "active" on the same page.  There is no refresh/page load.
Now I just need to set the active state of one element on page load.
Thanks for the help.

Similar Messages

  • HT2534 I have two class sets of iPad 2s and I would like to set up an iTunes account but don't want to put in my credit card information or individual students' information. What is the best way to set up class sets of iPads?

    I am a K-6 tech teacher and just recieved two classroom sets of iPads. I'm wondering what is the best way to set up iTunes so that apps may be downloaded. I do not want to put my personal information in and I do not want students to put in their informtion either. Teachers want to be able to download free apps and when the school purchases iTunes gift cards, they would like to be able to use them. What is the best way to go about this?
    Thank You!
    Jess

    Contact your IT person. They will help you with provisioning & setting up the iPads and getting apps on them and locking them down so students can only access certain settings and apps.
    I have asked that this post get moved to iPad Enterprise as it is more approriate forum for your question (even though it is about schools))
    Don't create an AppleID yourself and use it to put stuff onto the school iPads. You can't have more than 10 iPads to one iTunes account anyway.

  • Best way to set up a Mac laptop for multiple users with AD logins

    I am setting up a MacBook Pro running 10.4.11 that will be used as a "loaner" notebook for meetings, etc. The computer will be used internally at our company, so users will be logged into our network. Active Directory is set up on this computer to allow all domain users to log in using their own user name and password; this approach helps meet our company's security standards (we want to avoid using one common login or account for all users).
    While this approach seems to fit our needs, it causes problems when it comes to running applications. For instance, each new user is prompted to enter first-time usage information when launching an application (forcing them to contemplate registration information, various settings, etc.). I've given "everyone" read-write privileges to the HD > Library and the Applications folder, but this does not solve anything and may not be a good approach anyway.
    I would welcome any advice on the best way to set up this computer for multiple users logging in via Active Directory. Thanks!

    Where are you installing the third party applications? It sounds like they are being installed in the 'User 1' account, rather than the /Applications folder (admin or not, one user normally can not see into another user's folders). Repairing permissions only works for applications that have a file in /Library/Receipts, not on folders in general, so you would need to check the permissions for the folders in question.

  • Best way to set up a new system with RAID?

    I'll be buying a new Intel Mac Pro when Leopard comes out (for my office). I can get it with as many drives as fits into the bays (4?). My question is, what's the best way to set up a disk redundancy? I'm assuming I want one of the drives for Time Machine. That leaves 3; what kind of RAID do I want to maximize safety if and when one of the drives dies? I'd also like to optimize disk access time, as a secondary consideration. So, 1) what RAID do I want and how many drives will that take, and 2) how do I set it up? Presumably the thing will arrive all set up with Leopard installed. So, will I have to hose that installation to change the file system to RAID? Any problem with that (is it worth it)? If so, what disk do I boot from to set that up, and what's the right way to do this and get a working system back?
    Mike

    Leopard wont be out befor the second half of this year, sofar i cannot tell you what options you are going to have with the new system. Seems like with time machine is going to be a perfect backup for your whole system.
    10.4.x:
    Software RAID you can do 0 -1:
    To setup a RAID of your system you have to format the drive and setup the RAID type you want from the disk utility.
    To have some security i suggest the "mirror" options but you are going to lose some perfomance, depending you want is your main job it mighn't be noticed.
    RAID 5:
    This would be the nicest option but you need to buy an additional RAID controller. This is mostly used on servers and not on client computers.

  • What is the best way to set up iTunes on our home network so all family members have access to all of our itunes library, even music we don't have on the cloud?

    I have five different people using 10 different apple devices on one itunes account in our family.  We have had trouble sharing.  What is the best way to set up itunes on our home network?  We have purchased music that sits on icloud, but we also have music we have imported from our previous cd library.  Our itunes program keeps crashing and dumping everyone's playlists.  So far we have all been using just the one desktop computer to sync to because we can't figure out how to share the same librarly and playlists on multiple computers in our home so devices can be synced at any location as well as playlists and purchases be made. 

    What is the best way to set up itunes on our home network? 
    One iTunes library per person.  One iTunes account per person.
    If people wish to share songs, they can make copies.
    When the inevitable day comes when the kids get older, you will not have to come back here and post asking how all that stuff can get separated!

  • What Is The Best Way To Set Up Kids iTouch To My iTunes?

    I have an iTouch set up with my iTunes music, movies and apps, but now I gave my kids each an iTouch.
    What is the best way to set up there account, should it be a unique account for each of them or should I put them under my account?
    They will be using my same iMac when they sync or update there iTouch, so will they need to log in under their name every time?
    Not sure what is the best way to set this up, they are both minors, i.e. no credit card.
    Thanks

    Better just your account for multiple devices. The only drawback is that the music will have to managed manually.
    Connect one of the iPods to your computer then launch iTunes. You should see the iPod under Devices on the left side of the iTunes window. Double click then you can name each iPod to keep them separate but only syncs to your iTunes account.
    Without knowing your Apple ID user name and password they would not be able to make purchases ergo no downloads you aren't aware of.
    How to use multiple iPods, iPads, or iPhones with one computer
    The kids are minors.. if they are under 13 years of age, according to Apple, they can't have their own accounts regardless.
    http://www.apple.com/legal/itunes/us/terms.html#GIFTS

  • What is the best way of setting up Family Sharing?

    I just bought my son an iPad Mini and I am trying to decide on what is the best way of setting it up for him. The one thing I do know is that I do NOT want all the content that is my iPhone 6 to pop up on his iPad Mini. I want his iPad to be used for his games and educational stuff and his own music. I don't mind setting up a family photo album and share photos with the family. So is the Family Sharing option the best way of doing this based on what I just mentioned? Do I set him up with his own Apple ID? If so will everything still be based off my account so he won't have to create his own iTunes Library?
    I always use iTunes gift cards to purchase music and content. Will I be able to continue to use them even if I want to put some new content on his iPad and not my iPhone? Do I enter in his Apple ID info. Can you restrict certain family members to just certain things for example you only want to share photos with one person whereas you might want to share your music with another family member?
    Any suggestions on the best way of setting this up would great!
    Thanks!

    Hi DVX100Shooter,
    Congratulations on getting your son a new iPad, I am sure he will enjoy it. 
    Family Sharing is one way of managing both purchases and content between members of a related group of people. Each member must have their own Apple ID. You can choose what music you wish to share with the family from your own account. See this article -
    OS X Yosemite: Share purchases with your family
    In particular the section titled Hide a purchase from other family members
    The music library on your son's iPad is separate from yours, but under Family Sharing you agree to pay for all purchases made through the iTunes store. If you wish to control what is purchased you can set up the Ask to Buy option for any family member under adult age in your location. See this article for details -
    Request and make purchases with Ask to Buy - Apple Support
    Gift cards may not be used for billing of purchases under family sharing, with the exception that a family member may use gift cards to purchase their own content. See this article for information about Family Sharing billing policies -
    Family purchases and payments - Apple Support
    The shared family photo album is available to all family members.
    Family Sharing - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Our granddaughter has a ipod. She's getting a iphone and a mini idpad.  what is the best way to set them up. Does she need a new apple id and password or would she use the same one she has for her ipod

    our granddaughter has a ipod. She's getting a iphone and a mini idpad.  what is the best way to set them up. Does she need a new apple id and password or would she use the same one she has for her ipod

    Just use the same one on all devices.

  • What is the best way to set up iTunes to deal with a massive media library?

    I have a really big media library...probably 7k-10k digital photos, close to 1,000 ripped CDs, and over 600 ripped DVDs, all stored on 1.5TB external hard disks in a 4-drive enclosure.
    Due to a recent technical glitch, I find myself installing a new drive and moving the current library. My question is, what is the best way to set up iTunes' settings to deal with a media library that is both external to the Mac on which it runs, and spans multiple physical hard disk units?
    I generally like the idea of iTunes organizing my library for me (i.e. keeping everything in Media Type>Artist>Album folders via the "Automatically Add to iTunes" folder), but I'm not sure how that's going to work spanning multiple drives.
    I just figure since I'm basically starting over with my iTunes installation, maybe there's a better way to do it.
    Thanks in advance for any advice you can offer.

    You can set them up as a software RAID using Disk Utility.
    It'll simply be one large disk for all intents and purposes.

  • What's the best way to set up new imac for logic etc?

    In brief:
    Getting new imac (27", 3.4 i7, 8-16GB ram, 1TB HD). Will be using it mainly to run Logic Studio (loads of plugins) and Final Cut Express. I also have 2 external Hard drives one 500G one 1TB.
    The last imac I bought was my first and just went ahead and threw everything at it not really knowing where things should go. This time I want to set things up correctly.
    Basically, with what I've got, what is the best way to set things up. I.e where do I put logic files, samples, BFD2, Amplitube etc. Where do I put videos for use in FCE. Storing projects and backups for use with Time Machine.
    Also noticed the new imac will only have 1 firewire port. I will need to plug in the Hard drives (daisy chained), camera and RME Fireface 800. Was thinking of getting a Thunderbolt Hard drive but they are expensive and hard to find.
    Would really appreciate any help before I get the new machine and start messing things up again.
    Thanks.

    Adding to babowa, enable the system firewall in System Preferences>Security>Firewall tab. Click Advanced and check Stealth Mode.
    Lion is a pretty steady and secure operating system, and as there really aren't MANY Mac viruses, there ARE viruses out there still. OS X is pretty good about letting you know if you do accidently download a virus, and it will help you throw it away if it detects one, such as the MACDefender virus. OS X has built in security features such as sandboxing that doesn't allow viruses in as easily as a Windows PC. As for hackers, as long as you have the firewall enabled and a secure password (for your computer and email accounts), then you should be fine.
    It's the user that lets the virus in, not the computer (unless there's some untold serious vulnerability in OS X, which is highly unlikely). Keep your apps up to date, don't download pirated software, and be street smart on the internet. Don't download things or visit websites that you don't think are real. Safari includes a Phishing feature that automatically detects known phishing sites, protecting you from that big problem. Keep your passwords secure and you should be fine.
    There are antivirus solutions out there, one notable one available in the AppStore is Intego's VirusBarrier (free and plus versions), if you feel you still need one.
    I wouldn't worry about it. Windows users who switch to Mac are always asking these questions.
    Here's some good reading as well
    http://www.apple.com/macosx/what-is/security.html
    Enjoy OS X Lion

  • What is the best way to set up multiple Apple devices ?

    Lime many of us here I have quite a few apple devices and I just wondered whet the best way to set them up with itunes / Apple
    my Apple gear:
    Mac mini 2.53 with Mountain Lion
    Mac Mini 1.6 duo Snow Leopard
    Iphone 5c (mine) running 8
    Iphone 5c (wifes) running 8
    iPad 2 (old)  64 GB  running 8
    iPad Mini 2 retina  32 GB running 7
    g3 iMac (running Tiger) Juke box (semi retired ;-) now)
    At the moment all devices (apart from new Mac mini 2 and the old G3) are set up under my Apple ID ... (1 Apple ID for all devices) ... obviously this has problems : my wife downloads an App it will appear on my phone; we have had to disable some of the messaging systems as at one point my wife was getting my messages et ... is there a better way to do this? 

    cosmiconion wrote:
    one drawback of same Apple ID for store is that what she downloads will automatically appear on all devices
    Do you mean the visibility of the purchase in the App Store (under purchases) or the installation of the app automatically on the other devices?
    In the App Store on the device (under iOS 8 at least on the iPad, I couldn't get it to work on my iPhone 5 under iOS 8), you can hide purchases...just swipe it to the left in the Purchased list. You can then unhide the hidden purchase(s) if desired by using iTunes on the PC/Mac under your iTunes account.
    Auto App updates (Automatic Downloads) can be controlled under: Settings/iTunes & App Store, scroll down to Automatic Downloads and disable those that you do not want.

  • TS3367 I own iPad mini and iPhone 4. I'd like to use FaceTime to talk to my partner whilst I'm in hospital. What's the best way of setting it up. Can I use my apple username for both devices?

    So have iPad mini and iPhone. But I'd like to leave my iPad with my partner whilst I'm in hospital so we can FaceTime each other.
    What's the best way of setting this up!

    http://support.apple.com/kb/HT4319

  • Best way to set up iPad mini for child?

    So I bought my 3yr old an iPad Mini since he already knows how to fully operate most things on my iPhone! Now when I go to set it up, I don't want my music and apps and other content popping up on his iPad. Now can I create an Apple ID for him but set it up to where I can still have control over it? The guy in the store suggested I set it up using iCloud Family Sharing. When I got home and looked more into the family sharing option, I am not sure that is what I want either. That sounds like everybody in your family would have access to everything on the main device correct or am I wrong?
    So this is what I want. I want to be the one who can purchase apps or download free apps by typing in his Apple ID info (if possible). I want him to have his own favorite songs via iTunes. The only thing I would want to share is probably a Family photo album in iCloud.
    So what is the best way of setting this device up?
    Before he mentioned the iCloud Family Sharing option, the guy in the store suggested I leave the iCloud info blank when it asked for it but set up the iPad Mini as if it was my device. I think that just confused me even more.
    If I chose the Family Sharing option, can I select exactly what gets shared or no? If yes? Can apps be shared?
    Lastly if I set him up with his own Apple ID, and he wants a new song or some music or download a movie etc. will he need his own iTunes Library?
    Thanks for your help!

    I think that, if you read through these forums and familiarize yourself with the number of problems allowing children the ability to exercise and maintain control of an iDevice, and to purchase and download content, you'll change your mind.

  • Best way to set up partitions on 250GB external drive

    Hi all,
    I've decided to go with an Iomega eGo 250-GB FireWire portable drive to back up my iBook's hard disk (30 GB) plus to store my photos and maybe hold a bootable copy of OS9.
    This is my first time using an external drive, so I don't really know how to go about setting things up.
    What would be the best way to set up the partitions on the external drive?
    1) I know I should create a 30GB partition for the iBook backup, but what about for the remaining volume? Is it best to leave it as a single large 200GB partition, or split it into two 100GB chunks? Other than the clone of my iBook, I'll mainly be storing photos (at the moment no more than around 10-12GB).
    2) I don't yet have a huge iTunes collection, but if I later want to store iTunes music that doesn't fit on my internal drive, is it fine to put it in the same partition as the photos, or would it be preferable to create a separate partition?
    3) If I want to install OS9 on the drive, how much space should I allot to it? Would this enable me to run legacy apps on my iBook?
    4) Does it matter how I name the partitions (i.e. should the name for my iBook back-up be the same as the original volume or should it be different?)
    5) As I still don't know exactly what I need, If today I decide to create only 30GB partition to backup the iBook, can I later partition the remaining space without having to start all over again?
    6) Also, the drive came out of the box with Mac OS Extended format. Is this the best format or is there another that would be better?
    Thanks for any advice
    Message was edited by: Lutetia

    1) I know I should create a 30GB partition for the iBook backup, but what about for the remaining volume? Is it best to leave it as a single large 200GB partition, or split it into two 100GB chunks? Other than the clone of my iBook, I'll mainly be storing photos (at the moment no more than around 10-12GB).
    2) I don't yet have a huge iTunes collection, but if I later want to store iTunes music that doesn't fit on my internal drive, is it fine to put it in the same partition as the photos, or would it be preferable to create a separate partition?
    The answer to both question is that it's completely up to you. Partitioning or not partitioning won't affect operation significantly.
    3) If I want to install OS9 on the drive, how much space should I allot to it? Would this enable me to run legacy apps on my iBook?
    The iBook G4 can not boot from OS 9 so you would only be able to run OS 9 in the "classic" environment.
    4) Does it matter how I name the partitions (i.e. should the name for my iBook back-up be the same as the original volume or should it be different?)
    No
    5) As I still don't know exactly what I need, If today I decide to create only 30GB partition to backup the iBook, can I later partition the remaining space without having to start all over again?
    There are a few tools which promise the ability to change the partitioning without destroying the data on the drive. But you should never do this without making a backup of the data on the drive. Data loss can easily happen and in a big way.
    6) Also, the drive came out of the box with Mac OS Extended format. Is this the best format or is there another that would be better?
    That is the best format.

  • Best way to set-up U Verse, Time Capsule and Express to Extend Network

    I'm trying to extend my WIFI signal with AP Express and TC using an AT&T U Verse router. Neither the Express nor the TC are directly connected to the U Verse router. Both the Express and the TC show they are connected to the network but when I try and edit the settings to extend the network rather than join the network they both show as not connected any longer. Before on DSL the Express and TC were connected as extending the network (slow but connected). The house is 3 levels U Verse in in the basement. Trying to get a connection on the 3rd floor. We have multiple iPads, iPhones, Mac Book Pro's, an i Mac and Direct TV receivers.   
    What's the best way to set this up to extend the range of what we have?

    You cannot extend range from non-apple routers.
    So both the TC and express will join the wireless of the uverse and then become dumb clients..
    You need at least one of the two units plugged into the uverse by ethernet.. then the other device can extend that network.
    Consider using EOP adapters if your distance is such that even with the correct setup you don't get the range you need. Or better still do it properly and wire it with ethernet.
    It is possible to use the Express as a bridge..
    So say setup on the first floor.. a wireless bridge from the express to the uverse.. then plug the ethernet into the TC.. and use the TC in bridge mode.. it will not be fast but it can work.
    Reset everything to factory and start over.. as you will not be able to get this working without a full reset of the apple routers.
    Note still not ideal but it might give you more range than extend wireless with say express plugged into the uverse.

Maybe you are looking for