Composition Ready for Visibility Shows Both Symbols Upon Load Until Browser is Resized?

I have 2 menus as symbols in a example below:
The menu on the left is mobileNav and right is deskNav.  I have this for 'Composition Ready':
$(window).resize(function() {
if ($(window).width() <= 799) {
   //alert('Less than 799');
   sym.$("deskNav").css("visibility","hidden");
   sym.$("mobileNav").css("visibility","visible");
else {
   //alert('More than 799');
   sym.$("deskNav").css("visibility","visible");
   sym.$("mobileNav").css("visibility","hidden");
But they both show up regardless of how big my browser window is upon preview.  Until I flex the browser, either the mobileNav or deskNav will become hidden. 
Is there any way to make sure if the browser is a certain size that it doesn't appear at all upon loading?

Hi there,
You're almost there…the problem is your show/hide code is only called when you resize the browser window, i.e., ( $(window).resize(function()… )
So also add just the conditional itself to the compositionReady handler, like so:
// this code runs when composition is ready
if ($(window).width() <= 799) {
  sym.$("deskNav").css("visibility","hidden");
  sym.$("mobileNav").css("visibility","visible");
} else {
  sym.$("deskNav").css("visibility","visible");
  sym.$("mobileNav").css("visibility","hidden");
// this code runs when you resize the window
$(window).resize(function() {
if ($(window).width() <= 799) {
  sym.$("deskNav").css("visibility","hidden");
  sym.$("mobileNav").css("visibility","visible");
} else {
  sym.$("deskNav").css("visibility","visible");
  sym.$("mobileNav").css("visibility","hidden");
hth,
Joe

Similar Messages

  • Google browser in "go to" option shows blank page upon loading.

    Hello there, I am a newbie in the blackberry world. I just got mine, Bold 9700 for my engagement present. I am using it for about a week form. I am Malaysian and I am using the DiGi carrier. At first everything going smoothly, web browsing is excellent. I downloaded some great application mainly form google mobile, such as google maps, google for mobile and gmail.
    since last 2 days, I encounter some problem with the web browser. when i tried to search something using the blackberry browser in the "go to" option. I often encounter the blank page, especially using the google browser option. when i turn to yahoo, the browser works well. The blank screen also happen when i tried to type some web address such as wikipedia.org and so on. The blank page still happen. Regarding the "blank page", the loading screen appear when finish loading, the screen leave only blank space. left was only the scroll down bar on the left.
    I tried to solve why it was happening, the google browser in the "go to" option can be functioning when I change the "set encoding". I tried each of the encoding and I found one is functioning (partially). Initially the encoding was in auto and shows the ISO-8859-1. the partially working encoding is ISO-2202-CN. the google was working but the web adress bar encounter the "blank screen" problem.
    I called the service center of my carrier, DiGi. They did guide me to solve the problem. The pull out the battery methods, the changing of the TCP/IP in advance option, the enabling the APN setting. And the last option the guide me was the "security wipe". I did make the back up of my data. After all the instruction followed, I still encounter the problem. More worst, I tried to download the google application again after the "security wipe" the goolgle said my phone number was invalid.
    I still cant figure out what happen with my phone. At first I got the phone, I was really excited and impress with blackberry. After this things happen, I am quite disappointed. Is there anyone out there that could help me?  I love my blackberry..
    regards,
    latifnoh
    Solved!
    Go to Solution.

    Hi there, I solved my problem. It it is not about the connection of the browser, its about the setting of the blackberry, the OS maybe. I called several time (my carrier DiGi) and the solution wasnt there either. so the I thing  it must be my BB is the problem, then I send it back for the warranty service and they "re-format the OS".
    I just got mine back yesterday, and everythings turn back to normal. Everything inside seems a new, like a new BB haha..thank God.
    hope it help!! HAPPY!!

  • Show both RAW and JPEG in browser view

    I exported an original and full-sized edited JPEG from Lightroom. I then imported both files into Aperture 3 with the RAW as master. I would like to know how I can view both the RAW and JPEG in the browser view. I know I can switch which is the master.

    Ideally you will want to set this at the import stage, in the import dialogue box the Raw+JPEG Pairs menu gives you the option to bring them in as separate masters.
    That said...
    Pulldown menu/Photos/Duplicate Version
    now with a duplicate right click the duplicate and select set JPEG/RAW as Master
    you now have both.
    Tony

  • My desktop icon for firefox when double clicked wont load the browser?

    My firefox browser wont load when clicking the desktop icon...i have uninstalled and reinstalled ( i have done this 3 times) and it will work for a day then it doesnt work again. Im at my witts end and im about to go back to IE.

    i think i figured it out, at least for now. I installed Adobe reader about a week ago so i could retrieve my w-2's, and i dont think Fire fox liked it. I uninstalled Adobe reader and fire fox and then reinstalled fire fox and all seems to be well again. We will see...Thanks

  • When I bootup the icon for Elements shows up in orange.  It changes to green only when I've gone to Finder and clicked on Elelments under the Devices list.  This is a recent development.  The icon used to be green upon bootup.  Does anyone know why ?

    When I bootup the icon for Elements shows up in orange.  It changes to green only when I've gone to Finder and clicked on Elelments under the Devices list.  This is a recent development.  The icon used to be green upon bootup.  Does anyone know why ?

    I'm sorry to hear that.
    I'm not affiliated w/ the developer, just a happy user that gave up fighting the apple podcast app a while ago.  I used to have a bunch of smart playlists in itunes for my podcasts, and come home every day and pathologically synced my phone as soon as I walked in the door, and again before I walked out the door in the morning.
    Since my wife was doing this too, we were fighting over who's turn it was to sync their phone.
    Since I've switched to Downcast, I no longer worry about syncing my phone to itunes at all.  I can go weeks between syncs.
    Setup a "playlist" in downcast (ex., "Commute") and add podcasts to that playlist.  Add another playlist ("walk" or "workout") and add different podcasts to that one. 
    Set podcast priorities on a per-feed basis (ex., high priority for some daily news feeds, medium priority for some favorite podcasts, lower priority for other stuff).  Downcast will play the things in the priority you specify, and within that priority, it will play in date order (oldest to newest).
    Allegedly, it will also sync your play status to other devices, although that is not a feature I currently use and can't vouch for.  It uses apple's iCloud APIs, so to some extent may be limited by what Apple's APIs can do.

  • HT201272 Season pass notice does not always download.  It does not appear in the purchased items. I am responding to an email stating 'this week's TV show is ready for download'.

    Season pass notice does not always download.  It does not appear in the purchased items. I am responding to an email stating 'this week's TV show is ready for download'.  Any suggestions?

    Been having the same problems all week. And am got a generic, not-at-all-helpful response from my initial inquiry with support, then absolutely no response to my follow-up requests. There seem to be a fair number of people posting this problem, so not sure why we're being ignored.
    Was able to eventually download the episodes manually via the 'purchased' link, but it's about 10 more steps than normal.
    Also noticed that itunes isn't recognizing my purchases at all, not just season passes. If I go to a page of a show where I buy episodes individually, it doesn't show which episodes I have previously bought like it used to.

  • While downloading software update for Itunes, getting message saying detecting Ipad in recovery mode and telling us to restore Ipad to original settings, which we don't want to do.  Also cannot turn on Ipad; shows Itunes symbol with connector.  Help!

    While downloading software update for Itunes, got message saying detecting Ipad in recovery mode and telling us to restore Ipad to original settings, which we don't want to do.  Also cannot turn on Ipad; shows Itunes symbol with connector.  Help!

    No promises but a System Reset is worth trying:
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.
    A System Reset does not remove any apps, music, movies, etc. nor does it cause any settings to revert back to default.
    Also, you might wish to download the iPad-2 User Guide.  Pay special attention to page 162.  Note that this Guide also applies to the iPad-1 with IOS 4.3 except for those functions that are not supported by the hardware.
    http://support.apple.com/manuals/#ipad
    Finally, the User Guide can be downloaded at no charge via iBooks and a less comprehensive version of the Guide is included as a Safari bookmark.

  • I have CC lightroom 5.7 . LR catalog 5  when I'm downloading updates it shows LR 5 as an "install" option... why would LR 5 be ready for install if I already have LR 5.7?

    ok... LOL>.. so this is confusing... it tells me to ask a question... I did... then find out that "question" is the topic subject...
    so here it is again:
    I have CC lightroom 5.7 / LR catalog 5  when I'm downloading updates on CC it shows LR 5 as an "install" option... why would LR 5 be ready for install if I already have LR 5.7?

    Can you zip up a few of your GoPro images, upload them to dropbox.com and post a share link, here, so others can experiment with them, or do you mean this issue is global to all camera models?

  • I published my app and it shows us (waiting for review) and how much time it will take to (Ready for sale) ?

    i published my app and it shows us (waiting for review) and how much time it will take to (Ready for sale) ?

    5-10 days or longer.

  • Upon notification that a pre-ordered book was ready for download by clicking on a link, the book failed to download. The link sent me back to the store. How can I activate the download?

    I pre-ordered a book. I was notified it was ready for download. When I clicked on the link to download it failed to download. Instead, it took me to the store.
    How do I get my pre-ordered book without paying twice?

    Hello Jonagolds
    Your purchase should show up as something that you could download again. Check out the article below on how to do that across all devices and in iTunes. If that is not the case and you do not see it, then report the issue to the iTunes Store for further assistance.
    Download past purchases
    http://support.apple.com/kb/HT2519
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    http://support.apple.com/kb/HT1933
    Regards,
    -Norm G.

  • Bought Garageband for iPad1 and it worked like a dream. Then I upgraded my system to 4.3 and now Garageband doesn't work. How come? When I try to start it just flickers and then goes back to show the symbol for the app.

    Bought Garageband for iPad1 and it worked like a dream. Then I upgraded my system to 4.3.5 and now Garageband doesn't work. How come? When I try to start it just flickers and then goes back to show the symbol for the app.

    I understood what you were saying. You did type 4.3.5 in your post. Several other things to try.
    Close all open apps like I described above. Just tap the home button first so that you will be able to access all of your apps. Close every single one and then restart again.
    You can also delete the app and download it again. As long as you use the same Apple ID and password there is no charge to download it again. Tap and hold down on the GarageBand app icon until it wiggles. Then tap the X to delete it. Download it again.
    Reset the iPad. Hold down on the sleep and home buttons at the same time until the Apple logo appears on the screen. It takes about 10-15 seconds. Ignore the red slider shut off bar. When the Apple logo appears you can let go of the buttons and the iPad will reboot.
    The final thing to try is to download another app - any free app. Sometimes that seems to reset something on the iPad. You can always delete the free app if you don't want it.

  • "This drive is not ready for use; it's door may be open ..."

    Hi.
    I recently updated to itunes 7, and then had an issue with a corrupt file on the i-pod (which resulted in chkdsk hanging itself at 27%, always). So I restored the i-pod and that took care of that - chkdsk now says it's fine.
    However - it is also empty. My machine and i-tunes recognize it fine upon start-up; however, a short while into a full synch to get my library back on the i-pod, I invariably get the following error message:
    "The drive is not ready for use; it's door may be open. Please check drive \Device\Harddisk\DR 3 and make sure that a disk is inserted and that the drive door is closed." The message comes with the options "cancel, ignore and continue", yet the latter two don't make a difference, and even if I choose cancel, itunes keeps trying until it eventually crashes.
    This always happens after itunes has synchronized about 1.13 GB (out of 18.55 available).
    As far as I can tell, both my system and the iPod are up to date (itunes and windows update say so, anyway). E: is unequivocally and exclusively allocated to the i-pod; changing the settings from "optimize for quick removal" to "optimize for performance" has made no discernible difference.
    Any ideas would be very much appreciated.
    Thanks.
    DELL Inspiron 4150   Windows XP  

    Hullo ...
    let me follow up on this again. I've followed your advice, de-installed spybot, no change. I looked through the windows support help base, nothing. While trying out different things, I started getting a "delayed write failed" message, and I did some things they suggested (including adjusting the registry - me, adjusting the registry!)and it went away, and now all I get is the "open door" message again.
    That is: everything works absolutely fine, I plug in the i-pod (latest version i-tunes and i-pod is up to date), it's recognized instantly by the explorer as well as i-tunes. I've run all scans you can possibly run on it, and it is fine (no corrupt files, nothing). I've restored it twice through i-tunes, twice through the explorer. I've changed the drive letter.
    It starts the synch fine (it's still almost empty after the last restore), but at some point, I get the error message. Interestingly enough, *up to* that point, it'll synch fine - I can disconnect it and play on it whatever's been synched thus far. I can also modify my i-tunes settings and preferences, all of which i-tunes will recognize and adhere to. It is just unwilling to put more than 1GB of stuff onto my 20GB i-pod.
    Something I've noticed is that it is sometimes indicating apparently faulty charges in the beginning (though that is quickly corrected once the synch starts), as in, it'll recognize a certain amount of audio files, but also claim a random amount of "other" files, which should not be there (apart from the 30MB or so of genuine i-pod software).
    Anyhow. I haven't seen any solutions to this on the forums or in the apple help files, but people appear to be having this problem still. Any ideas or input would be very much appreciated ...
    Thanks.

  • Field property indicator is not ready for input in sap

    HI All,
    i am trying to post transaction in GJT1.
    i am getting below error "field property indicator is not ready for input"
    i tried taking different asset,
    now it is showing below error msg. please assist me on both the issues.
    "system status CRTD is active"

    I got the answer.
    using GJVV i was able to resolve my issue.

  • Bex variable ready for input not displayed in webi

    Hi,
    I created bex query with some variables.
    Variables are defined as "optional" but "ready for input". On productive system the prompts are all displayed, but when i transported the webi report to dev, some prompts are not displayed.
    we are on BW 7.31 and BO 4.0. I also tried with BO 4.1. but the problem is the same.
    I have no idea what's wrong here! Attached you can find some screenshots on my current settings.
    thanks,
    Katharina

    Hi,
    yes the reports are based on BICS and I moved them from prod to dev.
    I already checked, the query panel does not show these variables!
    I copied query and saved under new name, and i also created a new webi report upon this query, but some variables ready for input are still not displayed.
    Regards,
    Katharina

  • JSON content - click to show another symbol on the stage

    Hi,
    Thanks to Zaxist I have a working code like the one below:
    $.getJSON("content.json",
              function(data){
                        for(var i=0; i<data.length; i++){
                        var s = sym.createChildSymbol("template","content");
                        s.$("title").html(data[i].title);
                        s.$("description").html(data[i].description);
                        s.$("seira").html(data[i].seira);
                        s.$("imageholder").css({"background-image":"url('"+data[i]. image+"')"});
                        s.$("imageholder").data('Large', data[i].largeimage);
                        s.$("imageholder").click("click", function(e){
                                                                sym.getComposition().getStage().$("finte").css({"background-image":"url("+$(this).data('L arge')+")"});
    Now, I am trying on the click function to show specific symbol on the stage, for example when click on the first item the symbol red will appear, if cliked the second item the (previous symbols that was appeared will be hided) and the new symbol blue will appear. An so on with all the other ellements that JSON files has.
    I tried this on the code, but nothing:
    $.getJSON("content.json",
              function(data){
                        for(var i=0; i<data.length; i++){
                        var s = sym.createChildSymbol("template","content");
                        s.$("title").html(data[i].title);
                        s.$("description").html(data[i].description);
                        s.$("seira").html(data[i].seira);
                        s.$("imageholder").css({"background-image":"url('"+data[i]. image+"')"});
                        s.$("imageholder").data('Large', data[i].largeimage);
                        s.$("imageholder").click("click", function(e){
                                                                sym.getComposition().getStage().$("finte").css({"background-image":"url("+$(this).data('L arge')+")"});
                                                                if (data[i]=3) {
                                                                                                                                                                                                                                                                sym.getComposition().getStage().$("red").show();
                                                                else {
                                                                sym.getComposition().getStage().$("red").hide();
                                                                if (data[i]=5) {
                                                                                                                                                                                                                                                                                                                             sym.getComposition().getStage().$("blue").show();
                                                                else {
                                                                sym.getComposition().getStage().$("blue").hide();
    Could you help me?
    Thanks in advanced!

    Zaxist please I need your help again.
    I have this:
    $.getJSON("images1.json",
              function(data){
                        for(var i=0; i<data.length; i++){
                        var s = sym.getSymbol("base").createChildSymbol("template", "content");
                        s.element.attr('id', 'basara'+i)
                                            s.getSymbolElement().css({"background-size":"contain",
                                               "float": "left",
    "margin": "100 125px 125px 100",
    "clearboth":"{ clear: both; }"
                        s.$("description").html(data[i].description);
                        s.$("code").html(data[i].code);
                        s.$("imageholder").css({"background-image":"url('"+data[i]. image+"')",
                                                                                                                                                                     "background-size":"cover"
                        s.$("imageholder").data('myIndex', i);
                                                                          s.$("imageholder").data('Large', data[i].image);
                         s.$("imageholder").click("click", function(e){
                                                                     if ($(this).data("myIndex") == 0){
    sym.getComposition().getStage().getSymbol('holders').$("holder1").css({"background-image": "url("+$(this).data('Large')+")"});
                            else if ($(this).data("myIndex") == 1) {
    sym.getComposition().getStage().getSymbol('holders').$("holder1").css({"background-image": "url("+$(this).data('Large')+")"});
                            else if ($(this).data("myIndex") == 2) {
    sym.getComposition().getStage().getSymbol('holders').$("holder1").css({"background-image": "url("+$(this).data('Large')+")"});
    $.getJSON("images2.json",
              function(data){
                        for(var i=0; i<data.length; i++){
                       var s = sym.getSymbol("podia").createChildSymbol("template", "contentpodia");
                                           s.getSymbolElement().css({"background-size":"contain",
                                               "float": "left"});
                        s.$("description").html(data[i].description);
                        s.$("code").html(data[i].code);
                        s.$("imageholder").css({"background-image":"url('"+data[i]. image+"')",
                                                                                                                                                                     "background-size":"cover"
                        s.$("imageholder").data('myIndex', i);
                                                                          s.$("imageholder").data('Large', data[i].image);
                         s.$("imageholder").click("click", function(e){
                                                                     if ($(this).data("myIndex") == 0){
    sym.getComposition().getStage().getSymbol('holders').$("holder2").css({"background-image": "url("+$(this).data('Large')+")"});
                            else if ($(this).data("myIndex") == 1) {
    sym.getComposition().getStage().getSymbol('holders').$("holder2").css({"background-image": "url("+$(this).data('Large')+")"});
                            else if ($(this).data("myIndex") == 2) {
    sym.getComposition().getStage().getSymbol('holders').$("holder2").css({"background-image": "url("+$(this).data('Large')+")"});
    I want to import symbol podia inside to base to handle it by content2.
    I am writing this:
    var basewithpodia = sym.getSymbol("base").createChildSymbol("podia", "content2");
    it places the symbol inside, without the data of the JSON file.
    How can I make it to work?

Maybe you are looking for

  • User and Password for JMS-Adapter

    Hi all, when configuring JMS-Adapter e.g. for IBM MQSeries i do not find field where to specify the user and password for the MQ. We configure e.g. a receiver communication channel. In 2.0 JMS-Adapter we can put user and password like this JMS.QueueC

  • CD icon will not show in the iTunes source list

    My brother just got the 5G iPod and whenever he puts a cd into the drive, iTunes will not show that there is a cd in the drive. What's wrong?

  • Logic 10.0.2 Bypass Bug For Multi Output Instruments

    It appears the 10.0.2 update causes Logic to crash when bypassing multi-output Instruments. -SD

  • Installation of Adobe Pro XI on desktop and laptop

    We have Adobe Pro XI on our desktop (purchased in full 4/25/13) and we want to put a copy on our laptop. How do we do that?

  • Oracle Solaris Express 11 license

    Hi, Can I use Solaris Express 11 in production environment without buying the support subscription from Oracle? Can I use older versions of Solaris (9 and 10) in production environment without buying the support subscription from Oracle? Thanks, Tom