UpdateContent Kills Previous Javascript

I have a page that uses both Spry updateContent and Tooltip with HTMLPanel.
There's a problem with this combination however. On a main page a mouse over tooltip is used to display a person's statistics using their username from another HTML page. Also on this main page, every 10 seconds a partial update of the page happens using updateContent. As soon as this happens, the next time someone tries to hover over a name, the tooltip displays but this time is empty. No content except for the styling of the tooltip.
I'm assuming this is because updateContent kills all previous javascript running inside the updated div. Is their any solution to this problem? I'm not sure what code to post so if you need any, request it and I will show whatever I can.
Thanks, Chris

Still looking for an answer if anyone has suggestions.
Thank You!

Similar Messages

  • Challenge... Deselect a "CheckAll" checkbox without impacting a previous javascript....

    Hello:
    I am a Newbie at JavaScript. I am currently creating a form using Adobe LiveCycle Designer 8.1.12
    On my form I have a table of 50 states each having its own checkbox assigned to it. Then I placed on the table a checkbox which I called "CheckAllStates". With the help of friends on this forum, I placed the following code to my "CheckAllStates" element so that if it was checked, all the state checkboxes would be checked and if it was unchecked then all the state checkboxes would uncheck. Below is the code that does that with a sample of the Array:
    //First create an array for the State check box names
    var stateArray = new Array("AL", "AK", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY");
    //Then apply the code to check or uncheck the state checkboxes depending on the status
    //of the checkall checkbox
    for ( var state in stateArray )
    if (this.rawValue==1)
    var oField = xfa.resolveNode("xfa.form.PROPAC_APP.PROPAC_Page2.Subform2.tblStatesUSA.Row[*].CSKK_" + stateArray[state]);
    oField.rawValue = 1;
    } else {
    var oField = xfa.resolveNode("xfa.form.PROPAC_APP.PROPAC_Page2.Subform2.tblStatesUSA.Row[*].CSKK_" + stateArray[state]);
    oField.rawValue = 0;
    It works great and I thought my problem was resolved. Then I noticed that, if all states were checked, and I uncheck any of the state checkboxes individually, my "checkallstates" remains with a check. This does make sense to me, so I thought that I would simply apply the following code to each state checkboxs onclick event to uncheck my "checkallstates"
    xfa.form.PROPAC_Page2.Subform2.tblStatesUSA.Row[4].CheckALLStates.rawValue = 0;
    Unfortunately nothing happens. To test my new script, I created a new form and applied three checkboxes and applied the same concept to my checkbox called CK1:
    CK2.rawValue = "0";
    This does work, so my question is what am I doing wrong? I am thinking that my "If" and "Else" statement in my "checkallstates" onclick event is involved with this not working.
    Any ideas??
    Thanks,
    Keith.

    I think Rocky meant the LiveCycle Designer forums. Your form is an XFA form, created in LiveCycle Designer. It uses a different set of JS APIs that Acrobat JavaScript in some cases, which it why it has its own forum.

  • How to stop webdynpro runtime killing previous application resources

    Hi
    I gone through the how to guide http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/91b6ad90-0201-0010-efa3-9626d2685b6e
    I have similar requirement where two applications existing in different projects(same).
    I have a requirement where source application need to send some parameters to the target application.This can be performed using the above tutorial approach,but the issue is when the target application closed, the source application automatically expiring.
    Any help on this issue issue.. i need a interaction between source and targed and vice versa.
    Thanks
    Prasad

    Hi
    I gone through the how to guide http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/91b6ad90-0201-0010-efa3-9626d2685b6e
    I have similar requirement where two applications existing in different projects(same).
    I have a requirement where source application need to send some parameters to the target application.This can be performed using the above tutorial approach,but the issue is when the target application closed, the source application automatically expiring.
    Any help on this issue issue.. i need a interaction between source and targed and vice versa.
    Thanks
    Prasad

  • Acrobat X Form using Javascript problem

    I have a Acrobat Form which I originally created in Acrobat 7 Pro that has a button which executes many lines of javascript.  In the javascript there is a large if then else statement group that sets a variable.
    I have not worked on this form in many years and recently opened the form using Acrobat X Pro and edited all of the javascript code.  The problem is that when I save the document and click on the button it is still executing the previous javascript code for some reason.  I have looked everywhere I can think of to make sure there is no remnant of the old code left and cannot find any.  It seems like there is a cached copy of the old code somewhere that is being used.  I have looked in the properties of the button and in the all javascript area of the forms menu and cannot find any reference to the old code.
    Any Idea why this is happening?
    Nick B

    The Javascript code populates a field on the form and the If Then statement sets this value based on  the amount in another field.  I have changed all of the values in the If Then statement but the button is still using the old values.
    I have tried this on three different computers and it will not pick up the new values. 

  • Problem with local mirror syncing

    Hi mens! And sorry, my English is bad.
    I rewrite script from here for syncing mirror for my local network.
    That's what happened http://ix.io/1aK or http://paste.pocoo.org/raw/263591/ or permanent http://ix.io/user/atommixz
    It support http (maybe ftp?) mirroring other repos. Using lftp for it.
    #!/bin/bash
    # The script to sync a local mirror of the Arch Linux repositories and ISOs
    # Copyright (C) 2007 Woody Gilk <[email protected]>
    # Modifications by Dale Blount <[email protected]>
    # and Roman Kyrylych <[email protected]>
    # and Vadim Gamov <[email protected]>
    # and Aleksey Frolov <[email protected]>
    # Licensed under the GNU GPL (version 2)
    USECOLOR=yes
    . /etc/rc.d/functions
    # Filesystem locations for the sync operations
    SYNC_HOME="/home/mirror"
    SYNC_LOGS="$SYNC_HOME/logs"
    SYNC_FILES="$SYNC_HOME/files"
    SYNC_LOCK="$SYNC_HOME/mirrorsync.lck"
    SYNC_REPO=(core extra community multilib iso archlinuxfr catalyst)
    #SYNC_REPO=(archlinuxfr catalyst)
    typeset -A REPO_URL
    REPO_URL=(
    [archlinuxfr]='http://repo.archlinux.fr/x86_64'
    [catalyst]='http://catalyst.apocalypsus.net/repo/catalyst/x86_64'
    #SYNC_SERVER=distro.ibiblio.org::distros/archlinux
    SYNC_SERVER=mirror.yandex.ru::archlinux
    RATE_LIMIT=50 # in kb/s
    TIME_OUT=5 # in sec
    # Set the format of the log file name
    # This example will output something like this: sync_20070201-8.log
    #LOG_FILE="pkgsync_$(date +%Y%m%d-%H).log"
    LOG_FILE="pkgsync_$(date +%Y%m%d).log"
    #Watchdog part (time in seconds of uninterruptable work of script)
    # Needed for low-speed and/or unstable links to prevent
    # rsync hunging up.
    # New instance of script checks for timeout, if it occurs
    # it'll kill previous instance, in elsecase it'll exit without
    # any work.
    WD_TIMEOUT=10800
    # Do not edit the following lines, they protect the sync from running more than
    # one instance at a time
    if [ ! -d $SYNC_HOME ]; then
    printhl "$SYNC_HOME does not exist, please create it, then run this script again."
    exit 1
    fi
    if [ -f $SYNC_LOCK ];then
    OPID=`head -n1 $SYNC_LOCK`;
    TIMEOUT=`head -n2 $SYNC_LOCK|tail -n1`;
    NOW=`date +%s`;
    if [ "$NOW" -ge "$TIMEOUT" ];then
    kill -9 $OPID;
    fi
    MYNAME=`basename $0`;
    TESTPID=`ps -p $OPID|grep $OPID|grep $MYNAME`;
    if [ "$TESTPID" != "" ];then
    printhl "exit";
    exit 1;
    else
    rm $SYNC_LOCK;
    fi
    fi
    echo $$ > "$SYNC_LOCK"
    echo `expr \`date +%s\` + $WD_TIMEOUT` >> "$SYNC_LOCK"
    # End of non-editable lines
    # Create the log file and insert a timestamp
    touch "$SYNC_LOGS/$LOG_FILE"
    printhl "Starting sync on $(date --rfc-3339=seconds)" | tee -a "$SYNC_LOGS/$LOG_FILE"
    for repo in ${SYNC_REPO[@]}; do
    repo=$(echo $repo | tr [:upper:] [:lower:])
    printhl "Syncing $repo" | tee -a "$SYNC_LOGS/$LOG_FILE"
    NEXT=false
    for i in ${!REPO_URL[*]}; do
    if [ $i = $repo ]; then
    mkdir -p "$SYNC_FILES/$repo"
    cd "$SYNC_FILES/$repo"
    lftp -c "\
    set xfer:log no; \
    set net:limit-rate $[RATE_LIMIT * 1000]; \
    mirror \
    --delete \
    --only-newer \
    --verbose=3 \
    ${REPO_URL[$repo]}" | tee -a "$SYNC_LOGS/$LOG_FILE"
    date --rfc-3339=seconds > "$SYNC_FILES/$repo.lastsync"
    NEXT=true
    #sleep $TIME_OUT
    fi
    done
    if $NEXT; then continue; fi
    rsync -rtvHh \
    --bwlimit=$RATE_LIMIT \
    --no-motd \
    --delete-after \
    --delete-excluded \
    --prune-empty-dirs \
    --delay-updates \
    --copy-links \
    --perms \
    --include="*/" \
    --include="latest/*x86_64.iso" \
    --include="latest/*sum*.txt" \
    --include="archboot/latest/*.iso" \
    --include="os/x86_64/*" \
    --exclude="*" \
    $SYNC_SERVER/$repo "$SYNC_FILES" | tee -a "$SYNC_LOGS/$LOG_FILE"
    # Create $repo.lastsync file with timestamp like "2007-05-02 03:41:08+03:00"
    # which may be useful for users to know when the repository was last updated
    date --rfc-3339=seconds > "$SYNC_FILES/$repo.lastsync"
    # Sleep 5 seconds after each repository to avoid too many concurrent connections
    # to rsync server if the TCP connection does not close in a timely manner
    sleep $TIME_OUT
    done
    # Insert another timestamp and close the log file
    printhl "Finished sync on $(date --rfc-3339=seconds)" | tee -a "$SYNC_LOGS/$LOG_FILE"
    printsep >> "$SYNC_LOGS/$LOG_FILE"
    # Remove the lock file and exit
    rm -f "$SYNC_LOCK"
    unset REPO_URL
    exit 0
    But I'm have problem. If I'm run
    sudo pacman -Syu
    on my server, it's fine work.
    [atommixz@fileserver ~]$ date; sudo pacman -Syu; echo "------"; date; sudo pacman -Syu
    Сбт Сен 18 19:55:47 MSD 2010
    :: Синхронизируются базы данных пакетов...
    core 35,7K 14,2M/s 00:00:00 [#############################################################] 100%
    extra 465,9K 189,3M/s 00:00:00 [#############################################################] 100%
    community 383,1K 198,6M/s 00:00:00 [#############################################################] 100%
    archlinuxfr не устарел
    :: Запускается полное обновление системы...
    нечего выполнять
    [atommixz@fileserver ~]$ date; sudo pacman -Syu
    Сбт Сен 18 19:55:48 MSD 2010
    :: Синхронизируются базы данных пакетов...
    core не устарел
    extra не устарел
    community не устарел
    archlinuxfr не устарел
    :: Запускается полное обновление системы...
    нечего выполнять
    But if I'm try it on my desktop, it work wrong. Always reget base. But it is updated properly.
    [atommixz@relentless ~]$ date; sudo pacman -Syu; echo "------"; date; sudo pacman -Syu
    Сбт Сен 18 19:58:42 MSD 2010
    :: Синхронизируются базы данных пакетов...
    core 35,7K 34,0M/s 00:00:00 [#############################################################] 100%
    extra 465,9K 58,7M/s 00:00:00 [#############################################################] 100%
    community 383,1K 57,9M/s 00:00:00 [#############################################################] 100%
    multilib 19,3K 34,7M/s 00:00:00 [#############################################################] 100%
    archlinuxfr 18,6K 42,6M/s 00:00:00 [#############################################################] 100%
    catalyst 2,2K 67,7M/s 00:00:00 [#############################################################] 100%
    :: Запускается полное обновление системы...
    нечего выполнять
    Сбт Сен 18 19:58:43 MSD 2010
    :: Синхронизируются базы данных пакетов...
    core 35,7K 34,0M/s 00:00:00 [#############################################################] 100%
    extra 465,9K 58,7M/s 00:00:00 [#############################################################] 100%
    community 383,1K 64,8M/s 00:00:00 [#############################################################] 100%
    multilib 19,3K 48,9M/s 00:00:00 [#############################################################] 100%
    archlinuxfr 18,6K 38,9M/s 00:00:00 [#############################################################] 100%
    catalyst 2,2K 55,5M/s 00:00:00 [#############################################################] 100%
    :: Запускается полное обновление системы...
    нечего выполнять
    What am I doing wrong?

    I'm not sure, but your script may be too old.  That is, it may no longer work.
    I believe that creating a local mirror is discouraged due to the high bandwidth needed to do that.
    Perhaps you could try this instead.

  • The SMC could not be started in network environment ....??

    Hello!
    During the installation when I set that the computer is not networked, everything (SMC) seems to work absolutely fine.
    But when I set the option that the computer is networked, The SMC (Solaris management Console) doesn;t startup. it says again and again that the server couldn't be found. Although I tried to stop and again start the SMC server process, but it didn;t work.,
    Please help me out !!!!

    A few quick questions,
    - Is it SMC 2.0 or SMC 2.1? What's "uname -a" o/p?
    - Have you killed previous smc/java/smcboot/cimboot processes and checked?
    - Do you see AdminServer.properties file? Just do a "find . | xargs grep -i AdminServer.properties"
    in /usr/sadm/ folder? If yes, what're its contents.
    PS : This forum is for SunMC (Sun Management Center) not for SMC (Solaris Management Console).

  • MUSE FORM PUBLISHED IN DREAMWEAVER

    My problem is this:
    I have made a web site Muse which has a form when I edit the page in Dreamweaver to insert you to form a jQuery UI datepicker does not work.
    However when I go into the source code and you remove the following scrip, if it works.
    <script type="text/javascript">
if (document.location.protocol != 'https:') document.write('\x3Cscript src="http://musecdn.businesscatalyst.com/scripts/4.0/jquery-1.8.3.min.js" type="text/javascript">\x3C/script>');
</script>
    But it gives me the following alerts the previous
    JavaScript
    Maybe missing certain files on the server or be incorrect. Clean browser cache and try again. If the problem persists, contact the website administrator.
    JavaScript
    MuseJSAssert: Error calling selector function:TypeError: undefined is not an object (evaluating 'jQuery.browser.msie')
    I can help someone. thank you very much

    Many thanks for your interest, I understand perfectly what you mandodo me. But the erro gives you a script that inserts Muse, does not work the other script. The scritp is:
      if (document.location.protocol != 'https:') document.write('\x3Cscript src="http://musecdn.businesscatalyst.com/scripts/4.0/jquery-1.8.3.min.js" type="text/javascript">\x3C/script>');
    I sent the file, for your review.
    if(typeof Muse == "undefined") window.Muse = {}; window.Muse.assets = {"required":["jquery-1.8.3.min.js", "museutils.js", "jquery.watch.js", "jquery.musemenu.js", "webpro.js", "musewpslideshow.js", "jquery.museoverlay.js", "touchswipe.js", "museredirect.js", "inicio-sin.css"], "outOfDate":[]};
    Muse.Redirect.redirect('desktop', '', 'phone/inicio-sin.html', '');
    document.documentElement.className += ' js';
           !images/logo_cabe.png|id=u1564_img|height=161|alt=|width=400|class=block|src=images/logo_c abe.png!
    Inicio
    Tratamientos
    Clínica
    Localización y Contacto
    Cita Previa
    Nombre
    Teléfono
    Correo electrónico
    Día de Cita
    Mañana/Tarde
    Elija opción
    Mañana
    Tarde
    Asunto / Motivo de la consulta:
    La clínica es un espacio amplio, moderno y funcional dividido en varias zonas para una correcta distribución y comodidad para nuestros pacientes y los profesionales
    Nuestro compromiso es ofrecer a nuestros pacientes, nuevos servicios utilizando los más avanzados recursos. Esto nos obliga a evolucionar constantemente tanto en formación como en la utilización de nuevas técnicas y aparatología a disposición del paciente buscando su bienestar y las mejores soluciones.
    Síguenos en
            !images/facebooklogo.png|id=u4921_img|height=40|alt=|width=40|class=block|src=images/faceb ooklogo.png!
    Calle Rosario Márquez, nº 43
    13412 Chillón - Ciudad Real
    926 719 348
    Inicio
    Tratamientos
    Cínica
    Localización y Contacto
           </div>
          </nav>
         </div>
         !images/subir.jpg|id=u4772_img|height=56|alt=|width=32|class=block|src=images/subir.jpg!
    if (document.location.protocol != 'https:') document.write('\x3Cscript src="http://musecdn.businesscatalyst.com/scripts/4.0/jquery-1.8.3.min.js" type="text/javascript">\x3C/script>');
    window.jQuery || document.write('\x3Cscript src="scripts/jquery-1.8.3.min.js" type="text/javascript">\x3C/script>');
       $(document).ready(function() { try {
    (function(){var a={},b=function(a){if(a.match(/rgb/))return a=a.replace(/\s/g,"").match(/()/gi)[0].split(","),(parseInt(a[0])<<16)(parseInt(a[1])<<8)parseInt(a[2]);if(a.match(/\#/))return parseInt(a.substr(1),16);return 0};(function(){$('link[type="text/css"]').each(function(){var b=($(this).attr("href")||"").match(/\/?css\/(\.css)\?(\d)/);b&&b[1]&&b[2]&&(a[b[1]]=b[2])})})();(function(){$("body").append('
    for(var c=$(".version"),d=0;d<Muse.assets.required.length;){var f=Muse.assets.required[d],g=f.match(/()\.(\w)$/),k=g&&g[1]?g[1]:null,g=g&&g[2]?g[2]:null;switch(g.toLowerCase()){case "css":k=k.replace(/\W/gi,"_").replace(/()/gi,"_$1");c.addClass(k);var g=b(c.css("color")),h=b(c.css("background-color"));g!=0||h!=0?(Muse.assets.required.splic e(d,1),"undefined"!=typeof a[f]&&(g!=a[f]>>>24||h!=(a[f]&16777215))&&Muse.assets.outOfDate.push(f)):d++;c.removeClas s(k);break;case "js":k.match(/jquery-[\d\.]+/gi)&&
    typeof $!="undefined"?Muse.assets.required.splice(d,1):d+;break;default:throw Error("Unsupported file type: "g);}}c.remove();if(Muse.assets.outOfDate.length||Muse.assets.required.length)c="Puede que determinados archivos falten en el servidor o sean incorrectos. Limpie la cache del navegador e inténtelo de nuevo. Si el problema persiste, póngase en contacto con el administrador del sitio web.",(d=location&&location.search&&location.search.match&&location.search.match(/muse_de bug/gi))&&Muse.assets.outOfDate.length&&(c="\nOut of date: "Muse.assets.outOfDate.join(",")),d&&Muse.assets.required.length&&(c="\nMissing: "Muse.assets.required.join(",")),alert(c)})()})();
    /* body */
    Muse.Utils.transformMarkupToFixBrowserProblemsPreInit();/* body */
    Muse.Utils.prepHyperlinks(true);/* body */
    Muse.Utils.resizeHeight()/* resize height */
    Muse.Utils.initWidget('.MenuBar', function(elem) { return $(elem).museMenu(); });/* unifiedNavBar */
    Muse.Utils.initWidget('#slideshowu1404', function(elem) { $(elem).data('widget', new WebPro.Widget.ContentSlideShow(elem, {autoPlay:true,displayInterval:5000,slideLinkStopsSlideShow:false,transitionStyle:'fading ',lightboxEnabled_runtime:false,shuffle:false,transitionDuration:500,enableSwipe:true,elas tic:'off',resumeAutoplay:true,resumeAutoplayInterval:5000,playOnce:false})); });/* #slideshowu1404 */
    Muse.Utils.fullPage('#page');/* 100% height page */
    Muse.Utils.showWidgetsWhenReady();/* body */
    Muse.Utils.transformMarkupToFixBrowserProblems();/* body */
    } catch(e) { if (e && 'function' == typeof e.notify) e.notify(); else Muse.Assert.fail('Error calling selector function:' + e); }});
    </script>
       </body>
    </html>
    Juan Carlos Navarro Rodríguez
    [email protected]
    Tlf. 957 32 51 97

  • How to make an image transparent?

    Hi everybody,
    I need to build a complex chart in my applet, for this I want at first to create some painted area and then to put a map over it. The map is an image, which consists basically of black lines for state borders, main rivers and lakes on the white background. What I need is to put just these black lines, not the white background which will kill previously painted area.
    Can anyone give me an idea?
    Thanks,
    Alexandre

    Here's a class that implements this. I need a "transparent" object that has a big red arrow that I can point at stuff, so it gets its parents context and paints that then paints the red arrow stuff. The only problem with this is that it is not a glass pane. The "transparent" object must be contained in one object so you can only "paint over" one object.
    public class KiaTutorialArrow extends Panel
         public static final int WEST = 0, EAST = 1, NORTH = 2, SOUTH = 3;
         private int direction = 0;
         private Polygon arrow;
         //public Color foreground;;
         ////////constructors/////////////////////////////////////
         public KiaTutorialArrow()
              super();
              setSize(40,25);
         ////////////////get and set functions////////////////////
         public int getDirection()
              return direction;
         public void setDirection(int index)
              this.direction = index;
              arrow = null;
              repaint();
         public String getName()
              return super.getName();
         public void setName(String name)
              super.setName(name);
              repaint();
         public Color getBackground()
              return super.getBackground();
         public void setBackground(Color c)
              super.setBackground(c);
              repaint();
         public void paint(Graphics g)
              // TRANSPARENCY IS THE DEFAULT     
              Container c = getParent();
              Graphics graphics = g.create(- getLocation().x, - getLocation().y, c.size().width, c.size().height);
              c.paint(graphics);
              g.setColor(Color.red);
              switch (direction)
                   case WEST: drawWest(g); break;
                   case EAST: drawEast(g); break;
                   case NORTH: drawNorth(g); break;
                   case SOUTH: drawSouth(g); break;
                   default: return;
         private void drawWest(Graphics g)
              if (arrow == null)
                   arrow = new Polygon();
                   arrow.addPoint(2,12);
                   arrow.addPoint(12,5);
                   arrow.addPoint(12,8);
                   arrow.addPoint(27,8);
                   arrow.addPoint(27,17);
                   arrow.addPoint(12,17);
                   arrow.addPoint(12,20);
              g.drawPolygon(arrow);
              g.fillPolygon(arrow);
         private void drawEast(Graphics g)
              if (arrow == null)
                   arrow = new Polygon();
                   arrow.addPoint(7,8);
                   arrow.addPoint(22,8);
                   arrow.addPoint(22,5);
                   arrow.addPoint(32,12);
                   arrow.addPoint(22,20);
                   arrow.addPoint(22,17);
                   arrow.addPoint(7,17);
              g.drawPolygon(arrow);
              g.fillPolygon(arrow);
         private void drawNorth(Graphics g)
              if (arrow == null)
                   arrow = new Polygon();
                   arrow.addPoint(8,0);
                   arrow.addPoint(15,10);
                   arrow.addPoint(12,10);
                   arrow.addPoint(12,25);
                   arrow.addPoint(3,25);
                   arrow.addPoint(3,10);
                   arrow.addPoint(0,10);
              g.drawPolygon(arrow);
              g.fillPolygon(arrow);
         private void drawSouth(Graphics g)
              if (arrow == null)
                   arrow = new Polygon();
                   arrow.addPoint(8,25);
                   arrow.addPoint(0,15);
                   arrow.addPoint(3,15);
                   arrow.addPoint(3,0);
                   arrow.addPoint(12,0);
                   arrow.addPoint(12,15);
                   arrow.addPoint(15,15);
              g.drawPolygon(arrow);
              g.fillPolygon(arrow);
    }

  • JSTL test if checkbox is checked

    Hello all,
    I hope this question isn't too amateurish to answer, but it is something that has been troubling me.
    I have a table with two columns. In the first column i've got a form checkbox with id="myCheckbox" and in the second column I have a bit of text that I only want displayed if the checkbox is checked. I mostly had this working through a combination of a small javascript function that was set to the onclick parameter of the checkbox to toggle between hiding and displaying the text while having the text initialize to not be displayed (with style="display:none")...
    ...but the problem was that if there was an error being returned in the form, the page would reload with the text hidden, but the checkbox checked. Now I could get around this by re-initializing the checkbox to being unchecked... but that's not the solution i'm looking for. Ideally, if an error were returned and the page reloaded I would like the checkbox to be checked and the text to be displayed.
    I was hoping that perhaps I could use some JSTL magic to form a statement around the text... something to the effect of <c:if test="${myCheckbox.checked}"> display text </c:if> . But that isn't working for me. Am I close in my thinking? I think my thinking is mostly good, it's the implementation that is not good. Is there any way to perform such a test?
    Let me know if anyone can help... thanks,
    Skylar

    Hmm, that is helpful, but it doesn't get me quite there.
    I was unfamiliar with the "not empty param" test, so thank you. As I suspected after reading your post, however, the parameter is not set until the form is submitted. I think I may have to either use a combo of your suggestion along with my previous javascript function... or add additional functionality to my script to maintain state between page reloads.
    Does this make sense? Again, thanks evnafets.Let me know if you (or anyone else!) have any other ideas.

  • Kill processes (using Javascript) on a 64-bits machine (Windows Vista, 7, 8, 8.1)

    Hi everyone. I have a simple VBScript sample that kills a process by name. It works fine on every OS, X86 and 64 bits :
    ---------------------------kill process sample----------------------------------------
    Set wsh = CreateObject("Wscript.Shell")
    wsh.Run "calc.exe",1
    Set Processes = GetObject("winmgmts:").InstancesOf("Win32_Process")
    For each Process in Processes
    Select Case LCase(Process.Name)
    Case "calc.exe" 
    Process.Terminate(1)
    I tried the "for" loop, the "forEach" loop and "switch" in javascript but none of them work like in VBScript.
    Could anyone help me converting this script sample to javascript, since VBScript became obsolete and God knows whether it will be available for HTA applications and Windows Script Host files in the near future.
    Thanks a lot in advance.

    Jvr, you said :
    "What you have done is one of the reasons why support for ActiveX is being dropped.  By allowing unsafe controls you have removed the most important security restriction.
    I highly recommend that you spend some time learning Windows but not from web sites or from people who are just hackers.
    If you are going to alter IE you might as well just use an HTA.  It doesn't reduce security and is much easier to use.
    You are trying to do what a lot of new and untrained people try.  You are trying to reinvent Windows but mostly because you do not have fundamental technical training.  Get the training and you will not be led down these pointless paths.
    NTVDM is not CMD.EXE.  NTVDM is used to emulate a 16 bit DOS environment. It is not required for NT or for CMD.EXE.  It is disabled by default on all modern versions of Windows.  16 bit applications can be a security issue and
    do make managing Windows harder."
    One of the best features of IE might be ActiveX technology. I could be wrong, but some controls are still highly used by websites, and a lot of softwares help rely on HHCTRL ActiveX. I don´t see it *currently* being dropped.
    Could be in the future, but not only IE uses Activex, a lot of programs make use of them, not to mention popular ones like Word, Excel.
    My friend, I use Windows for more than a decade, don´t tell me what I have to learn or not. You´ve got to be kidding because I know a lot but of course I am humble to admit I ´don´t know everything and can at times have doubts, other people can help
    just like I could help when someone has a doubt on something I know. Also I dont know why you are talking about hackers. As far as I know they *must* know the OS in order to exploit stuff and run their malicious code, not only know how to exploit general vulnerabilities,
    so I bet the real hackers have a lot to teach.
    I am not untrained, sorry but you must be high since you are not reading my posts correctly. I said I altered security setting for the *INTRANET ZONE*, not Internet, and also set the "Websites in less privileged zones can navigate to thiz zone" to deny.
    And if you are an expert you must know the intranet zone is disabled by default, which is my case, but if you add an IP address or website, then it will be enabled *only* for them. Furthermore an attacker would need to know what is the IP address I added and
    would need to bypass the cross site scripting filter and also the setting above that I disabled.
    Again, you´ve gotta be high. I never said CMD=NTVDM. NTVDM just emulates a 16 bits program which is Command.com, I said in the other post, didn´t you read?
    And you can´t tell if MSHTA, ActiveX and WSH will be totally removed from Windows in the future, it is only a possibility. They are useful. 16 bits apps are not but are still supported on 32-bits Windows. Check out on a 32-bits system, and tell me if
    you found some 16-bits apps including C:\windows\system32\command.com.
    Hope now you understood what I have written.
    cheers.

  • Firefox 3.6. Internet connection vodafone mobile broadband. Pubmed website does not search. Even after making all previously described advice (javascript, cache, firewall, cookies). Pubmed works with ie. Pubmed in mozilla works with a wifi connection

    I have a vodafone mobile internet connection (3G). In mozilla enviroment, i cannot search in Pubmed website (www.pubmed.com). I click the SEARCH button but nothing happens. I have made all the previously mentioned corrections (javascript, cookies, cache, firewall) but the problem still exists. When i get connected via a wifi internet connection, Pubmed in mozilla browser works properly.
    It should be mentioned that Pubmed works fine either in mobile 3G connection or in a wifi internet connection. I would be grateful if someone could respond to my problem.

    Your problem sounds similar to this one, except that they're using software raid rather than just pure LVM. If you're using an initrd, you may not have the appropriate modules installed. If you're not using an initrd, then the kernel probably needs LVM support compiled in (not as a module) and could be solved by fixing that. I have never used the ck-patchset, but this should give you an additional data point.
    Also comment=systemd.automount will be deprecated soon as I understand it; if you have a need for automounting, x-systemd.automount should be used instead.

  • If I "save link as..." from a page runnning JavaScript, I can get to a point where I have to kill Firefox

    I'm trying to download the current JDK from http://www.java.com/en/download/manual.jsp. If I right-click on a file link and select "Save link as...", the file system browser opens. If I wait long enough with this window open, a second dialog box opens telling me that a Javascript module is taking too long.
    At this point, I can't dismiss the JavaScript window, or the file system browser, or in any other way return to the tab where I was downloading from. My only recourse is to kill Firefox.

    My Ff stalls quite often and I have to clse it Using the task manager..processes to make my computer work again.
    Sometimes I get a message asking me if I want to continue running the script because there is something wrong with Javascript.
    I usually get Javascript problems with Google or wikipedia, but also other pages.

  • Dreamweaver CS4 runs ok but fails to close correctly. Cannot run again until previous instance is killed.

    I have a clean install of a recently purchased copy (10.0, build 4117) of Dreamweaver CS4 (twice now). I start DW and do absolutely nothing except exit. The program seems to close ok and all windows are closed. However, I cannot runb DW again, if I do , it just hangs during startup at some point before any windows are opened. A look at the task manager shows the previous instance of CS4 is still running. If I kill dreamweaver.exe then I can run CS4 again.
    If I use DW then everything seems to work ok and all of the extentions I have purchase install and work fine too. I even imported a large NetObjects website and is was 100% correct (I was surprised).
    I have removed AVG, I do not have an Acer, I have renamed the config folder and I am about to throw the towel in.
    I have checked the registry and all is ok with the hives.
    The system is: AMD Athlon X2 running XP-Pro SP3, 2GB Ram, 2 X 300GB HDD with plenty of free space, no internal firewall, AVG removed (after scan), ATI Graphics. I have never had Dreamwaever on this PC before and all extensions are now removed.
    For any techies reading this I discovered that, after clsing DW, the task is still running with 17 threads. Slowly, at about one per minute, the number of threads drops to 12 but drops no further even if you leave is 24 hours.
    The installation was fault free (both times!). The program loads ok and works ok. So, why does a fresh copy of DW  with no website created or any configuration changes of any form fail to shutdown correclty?
    Any ideas?

    You've already tried the suggestions I normally make if there is a problem with running DW...  I really can't help you with your problem and as no-one else has submitted a reply generally there's no-one with an answer.
    I can only suggest that you contactAdobe Support and outline what you just did in your post here...  hopefully they'll be able to sort this o9ut for you.
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    Book: Ultimate CSS Reference
    http://www.sitepoint.com/launch/005dfd4/3/133
    http://twitter.com/nadiap

  • Load javascript after updateContent

    Hi,
    I am loading an html page into another html page using
    Spry.Utils.updateContent(). In the source file, load some
    javascript and styles on page load. So:
    Spry.Utils.addLoadListener(function() {
    hideRows();
    Spry.$$("#tblReportNoInnerBorder
    tr:nth-child(2n+1)").addClassName("rowColored");
    Spry.$$("td#expandCommission").addClassName("expandButton");
    Unfortunately, these styles are not loaded when the
    destination file loads. I'm guessing because the source file is
    never really loaded as a page (only the destination page is).
    So, I moved this call to the destination file like so:
    <script type="text/javascript">
    Spry.Utils.addLoadListener(function() {
    updateLoadedToDiv();
    Spry.Utils.addEventListener("decSection", "onPostLoad",
    hideRows, false);
    hideRows();
    Spry.$$("#tblReportNoInnerBorder
    tr:nth-child(2n+1)").addClassName("rowColored");
    Spry.$$("td#expandCommission").addClassName("expandButton");
    function updateLoadedToDiv(event) {
    Spry.Utils.updateContent("decSection", "totalSummary.html");
    </script>
    This still doesn't work though. Can someone please help me
    out. I'm going crazy because it's not working!

    Why not use the finish function function of update content?
    Spry.Utils.updateContent(ele, url, finishFunc, opts)
    function updateLoadedToDiv(event) {
    Spry.Utils.updateContent("decSection",
    "totalSummary.html",function(){
    hideRows();
    Spry.$$("#tblReportNoInnerBorder
    tr:nth-child(2n+1)").addClassName("rowColored");
    Spry.$$("td#expandCommission").addClassName("expandButton");
    this will probably solve your problems.
    The loadlistener doesn't get called because the document it
    gets loaded in is already loaded

  • Help! Fix my javascript to save a bmp with suffix in the same folder as the previous save.

    Here's my current javascript:
    #target photoshop
    // sets document preferences to inches
    app.preferences.rulerUnits = Units.INCHES
    // these are our values for the END RESULT width and height (in inches) of our image
    var fWidth = 11.73;
    var fHeight = 5.97;
    var CurrentDLPFile=app.activeDocument
    var CurrentDLPFileName= CurrentDLPFile.name
    var CurrentDLPFilePath="~/Desktop/fetch"
    var f = File.saveDialog('Save Where?',''); 
    // in case we double clicked the file
    app.bringToFront();
    // resizes the canvas to 11.73 x 5.97 inches
    CurrentDLPFile.resizeCanvas(UnitValue(fWidth,"in"),UnitValue(fHeight,"in"));
    // flattens all layers
    CurrentDLPFile.flatten();
    // saves as photoshop file
    if (f!=null) CurrentDLPFile.saveAs(f,undefined);
    // splits channels
    CurrentDLPFile.splitChannels();
    // converts active K seperation to bitmap form
    var bitsaveoptions = new BitmapConversionOptions()
    bitsaveoptions.method = BitmapConversionType.HALFTONESCREEN
    bitsaveoptions.angle = 45
    bitsaveoptions.frequency = 55
    bitsaveoptions.resolution = 300
    bitsaveoptions.shape = BitmapHalfToneType.ROUND
    app.activeDocument.changeMode(ChangeMode.BITMAP,bitsaveoptions);
    // THIS IS WHERE I'M HAVING ISSUES- I want to save the file (which at this point is a bmp), with a suffix of 1 in the same folder; and then close the file.
    var doc = app.activeDocument;
    var docName = doc.name;
    docName = docName.match(/(.*)(\.[^\.]+)/) ? docName = docName.match(/(.*)(\.[^\.]+)/):docName = [docName, docName];
    var suffix = '_1';
    var saveName = new File(decodeURI(doc.path)+'/'+docName[1]+suffix+'.bmp');
    function saveFile(app.activeDocument, saveName);

    I figured it out, here's for anyone else who is struggling with a similar problem:
    var CurrentDLPFile=app.activeDocument
    // saves active doc as photoshop file
    if (f!=null) CurrentDLPFile.saveAs(f,undefined);
    //renames active document to whatever was saved
    var CurrentDLPFile = app.activeDocument.name
    //assigns the location of the saved psd
    var psdPath = activeDocument.path
    saveBMP = new BMPSaveOptions();
    saveBMP.alphaChannels = false;
    saveBMP.depth = BMPDepthType.ONE;
    saveBMP.flipRowOrder = false;
    saveBMP.rleCompression = false;
    saveBMP.osType = OperatingSystem.WINDOWS;
    var doc = app.activeDocument; 
    var Name = doc.name.replace(/\.[^\.]+$/, '');  
    var Suffix = "1"; 
    var saveFile = File(psdPath + "/" + Name + Suffix + ".bmp");
    activeDocument.saveAs(saveFile, saveBMP, true, Extension.LOWERCASE); 
    activeDocument.close( SaveOptions.DONOTSAVECHANGES );

Maybe you are looking for

  • Multiple line item not appearing in vendor line item in FB60

    Hi I am posting FB60 accounting entry. I am deducting WHT on the invoice. For ex: Expense amount - Rs. 100000, WHT - 10000 Hence accounting entry is posted: Expenses A/c.. Dr 100000    To TDS Payable 10000    To Vendor A.c 90000 Now when i see vendor

  • Dashboards ? Ask me how... but first ask ourself Why you need a Dashboard..

    <b><i>"A dashboard is a visual display of the most important information needed to achieve one or more objectives which fits entirely on a single computer screen so it can be monitored at a glance."</i></b> - Stephen Few <p> That is a good way to des

  • How to include or exclude standard function button easily

    Hi everyone, When I am doing some coding concerning ALV GRID,I found that there are many standard button on the toolbar, and I want maybe 2 or 3 of them to be used,others just not displayed on the toolbar. And if I want the others disappeared I shoul

  • Popup 'AFP Connection status'

    A couple of weeks ago I set-up my MacBook as a kind of file server. I created some sharepoints for my iMac and the two Windows PC's (sorry) of my children allowing all systems to share files but also to have private shares on the server. Everything w

  • Synch displays 'not enough space' msg but there are more than 1Gb free

    I have reset, my ipod nano (16Gb space) twice and still the audio bar shows there is 1.13 Gbs free and this is correct) but when synching, the error message says there is no space and then the audio bar shows no space available. I have untick and tic