Selected row highlighted only for split second

Hi, i am using the following javascript to highlight the row i select and to turn the selected rows background to yellow. The background changes to yellow when the row is clicked but only for a split second.
var rindx=null;
var rint=null;
function myhandler() {
     rindx = document.forms['resultsForm'].elements['routeDisplayId'].value;
     var rint = parseInt(rindx);
     trs = document.getElementById('resultsForm:routeList:tbody_element').getElementsByTagName('tr');
     trs[rint].bgColor = "#FFFF66";
the function i then called in the dataTable below:
<t:dataTable id="routeList" value="#{RouteHandler.routeWithIdList}" var="rowElement" rowIndexVar="rowIndex" cellspacing="0" cellpadding="3"
border="0" headerClass="listhead" columnClasses="listresults" bgcolor="#FFFFFF" rowOnClick="myhandler()">
<t:column width="104">
                              <h:commandLink id="editLinkCarrier" action="#{RouteHandler.prepareAddScheduleAction}" >
                                   <h:outputText value="#{rowElement.carrierCode}"/>
                                   <f:param name="routeDisplayId" value="#{rowElement.routeDisplayId }" />
                                   </h:commandLink>
                              </t:column>
<t:column width="165">
<h:commandLink id="editLinkDeptAirport" action="#{RouteHandler.prepareAddScheduleAction}" >
                                   <h:outputText value="#{rowElement.departureAirport}"/>
                                   <f:param name="routeDisplayId" value="#{rowElement.routeDisplayId }"/>
                                   </h:commandLink>
</t:column>
<t:column width="920">
<h:commandLink id="editLinkArrAirport" action="#{RouteHandler.prepareAddScheduleAction}" >
                                   <h:outputText value="#{rowElement.arrivalAirport}" />
                                   <f:param name="routeDisplayId" value="#{rowElement.routeDisplayId }"/>
                                   </h:commandLink>
</t:column>
</t:dataTable>
If anyone can help or guide me in the right direction i'd really appreciate it. Thanks.

Hi Akash,
Thanks for your responce. Any suggections about how i can stop this from happening or what i should do?
Thanks in advance.

Similar Messages

  • HT1766 I'm trying to update my iphone 4.  I've put everything from the pho          ne into itunes for backup.  I can see that the updated OS is on the phone, but only for a second until the phone asks me again how I want to restore my stuff.  three times

    I'm updating my iphone 4.  I can see that the update has been installed on the phone, but only for a second before it asks me to restore/back up from iCloud or iTunes, which I've done THREE times.  It has to be something really simple...please HELP

    Restore as a NEW device to test. If this solves it, that means there is some corruption in your backup file, or maybe it's one of your apps causing the trouble. If the problem is still there, you should take it to the Genius Bar at an Apple Store for evaluation.

  • I recently updated to the latest version of Itunes (11.1) and when i try to play music or tv shows, the sound lasts only for a second before going completely mute, anyone know how to fix this?

    recently updated to the latest version of Itunes (11.1) and when i try to play music or tv shows, the sound lasts only for a second before going completely mute, anyone know how to fix this?

    Check this thread out -> iTunes 10.4 & Multimedia Keyboard
    It doesn't look like there is a fix yet, but some people in the thread are pointing to this workaround:
    pikot wrote:
    Following some suggestion i seem to have found a solution for the problem and my play/pause, next and previous buttons work with iTunes 10.4.1
    - You need to open a text editor (like notepad) as an administrator.
    - Open the SetPoint players.ini file (C:\Program Files\Logitech\SetPointP\players.ini)
    - Edit the line under the [Players] section to match the line bellow (bold is the wndClass which is to be changed)
    iTunes=wac,iTunes.exe,ITWindow,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,iTunes
    - Save the file
    - Restart the SetPoint and hopefully play/pause, next and previous buttons should work (at least they work for me)

  • HELP HELP. My iCal opens only for 5 seconds an then it closes....

    Since yesterday May 27, my iCal opens only for 5 seconds and then it closes automatically.... I also have hte Missing Sync for Windows Mobile that is a software that sync my pocketpc to my computer.. it was working very well until yesterday.... it's strange... it started saying me that there were a conflict between the information in my pocket pc and my iCal, but it was usual to have this conflict but i have ersed that information but it still have problems.... i tried erasing the file com.apple.iCal.plist but it still with problems....

    See the not-charging topic of:
    iPod touch: Hardware troubleshooting
    Have you tried another cable?
    Another charging source? Does iTunes see the iPod when you connect to your computer?
    Look at the dock connector on the iPod. Look for abnormalities like bent or corroded contacts, foreign material and cracked or broken plastic.

  • HT1338 movies played on a macbook pro stall for split seconds in quicktime and vlc. Anybody else?

    movies played on a macbook pro stall for split seconds in quicktime and vlc. Anybody else?

    Don't worry, there is nothing wrong with your computer. I have the same issue, and it is a bug. Sometimes a restart solves it. Sometimes and if you use subtitles, you will see the first line being displayed but the second one not, etc.
    I have reported that to Apple and there is hope for a fix.

  • Keeping selected row highlighted

    I have a datatable that has 2 panel grids in it. The first panel grid is used only to show the first image/link all the time because it is not stored in our database. The second panelGrid fetches a list of programs from our database, and lists them with an image next to the link if the user is subscribed to that program. When the page first loads up, I need the first row highlighted by default. When a user selects a program, I need to change the highlight to that the program they selected. When the user selects a program, it loads the same page, but changes an ifram that has the details of what they clicked on. How can I get the row for this program only to be selected and stay selected until they click another program. Below is my page code and my backing bean.
    <h:dataTable id="programTable" headerClass="programTableHeader" width="100%"
                                                                     value="#{Program_profile.programDataModel}" var="varprogramDataModel">
                                                                     <h:column>
                                                                          <f:facet name="header">
                                                                               <h:panelGrid id="pnlgridAboutMyPrograms" width="100%" border="0" cellpadding="0" cellspacing="0" columns="1">                                                                                
                                                                                    <h:commandLink id="lnkAboutMyPrg" action="#{Program_profile.aboutMyProgramAction}" >
                                                                                         <hx:graphicImageEx id="imgAbtMyPrg1" value="#{msg.Program_profile_About_My_Program_Image}" border="0" hspace="5"></hx:graphicImageEx>
                                                                                         <h:outputText id="txtAbtMyPrg" value="#{msg.Program_profile_About_My_Program_Name}"></h:outputText>
                                                                                    </h:commandLink>
                                                                               </h:panelGrid>
                                                                          </f:facet>     
                                                                          <h:panelGrid id="pnlgridPrograms" width="100%" border="0" cellpadding="0" cellspacing="0" columns="1"  columnClasses="">
                                                                               <h:commandLink id="programLink" action="#{Program_profile.selectedProgram}">
                                                                                    <hx:graphicImageEx id="checkMarkProgram" value="#{msg.Program_profile_Check_Mark_Image}" border="0" rendered="#{varprogramDataModel.subscribed}" hspace="5"></hx:graphicImageEx>
                                                                                    <h:outputText id="programName" value="#{varprogramDataModel.name}"></h:outputText>
                                                                               </h:commandLink>
                                                                          </h:panelGrid>
                                                                     </h:column>Backing bean:
    public String selectedProgram(){
              // A program details which is selected by the user
              ApplicationParameter.getLogger().debug(ENTRY);
              ProgramInformation selectedProgram= null;
              ProfileController profileController = new ProfileController();
              Customer customer =null;
              // Returning the value for from-outcome element of faces-config.xml file 
              String from_outcome=null;
              try{
                   //Check for customer object
                   if(!utility.isUserInSession()){
                        FacesMessage message = MessageFactory.getMessage(facesContext,"Program_profile_customer_help");
                        facesContext.addMessage("",message);
                        return ApplicationParameter.NAVIGATION_CUSTOMER_HELP;
                   selectedProgram = (ProgramInformation)programDataModel.getRowData();
                   selectedProgram=createProgramInformation(selectedProgram.getCode());
                    * Highlight the program selected
                    UICommand programCommand = getProgramLink();
                    UIComponent parent = programCommand.getParent();
                    parent.getAttributes().put("rowClasses","tnSelected");
                    ApplicationParameter.getLogger().debug("\n ***************  programCommand = "+programCommand.getClientId(facesContext));
                 ApplicationParameter.getLogger().debug("\n*************     programParent = "+parent.getClientId(facesContext));
                     * Highlight the About my programs link
    //                 UICommand aboutProgramCommand = getLnkAboutMyPrg();
    //                 UIComponent aboutParent = aboutProgramCommand.getParent();
    //                 if (!parent.getAttributes().containsKey("rowClasses")) {
    //                      aboutParent.getAttributes().put("rowClasses","tnSelected");
                   //setSelectedHighlight("tnSelected");
                   //Set in the session
                   ApplicationParameter.getLogger().debug("Iframe page ->"+selectedProgram.getInfoPage());
                   utility.getExternalContext().getSessionMap().
                             put(ApplicationParameter.SESSION_KEY_PROGRAM_INFORMATION,selectedProgram);     
                   utility.getExternalContext().getSessionMap().
                             put(ApplicationParameter.SESSION_KEY_IFRAMEPAGE,selectedProgram.getInfoPage());                                   
                   from_outcome=ApplicationParameter.NAVIGATION_PROGRAM_PROFILE;
              }catch (Exception ex){
                   ApplicationParameter.getLogger().error("\n\nException ->\n"+ex.getMessage());
                   FacesMessage message = MessageFactory.getMessage(facesContext,"Program_profile_Customer_Help_Exception");
                   facesContext.addMessage("",message);
                   return ApplicationParameter.NAVIGATION_CUSTOMER_HELP;
              ApplicationParameter.getLogger().debug(EXIT);
              return from_outcome;
         }When I click on a program link using the code above, it highligts all the rows, not just the selected one.

    can anyone please help me? I can post more code if that helps.

  • Startx: X server runs for split second, then dumps me back to shell

    I'm trying to install an X server on a newly installed Arch Linux VirtualBox guest machine, but when I type "startx", the X server only runs for a split second, and then dumps me back to the shell. Here are my ~/.xinitrc and /var/log/Xorg.0.log files posted via wgetpaste. What could be wrong?
    http://bpaste.net/show/116910 <-- ~/.xinitrc
    http://bpaste.net/show/116915 <-- /var/log/Xorg.0.log
    Brandon Taylor

    I'm not sure but i dont see any desktop or window manager in your .xinitrc .
    .xinitrc is used to execute a window manager or a desktop when the x server starts.
    So you need to install a desktop or window manager that you like.
    Desktops: https://wiki.archlinux.org/index.php/De … nvironment
    Window managers: https://wiki.archlinux.org/index.php/Window_Manager
    xinitrc: https://wiki.archlinux.org/index.php/Xinitrc

  • SALV - ALV selected row Index - Not getting in second time

    I am having a ALV grid using CL_SALV_TABLE class. and its have PF-status button "Display" and user select a line and press "Display" button system will display a PDF document from content server.
    The following is the code i am using for getting index of selected row.
    My problem is user select a line for the first time i am getting the index, but user select second time i am not getting the index
    module user_command_0300 input.
      call method cl_gui_cfw=>dispatch.
      case ok_code.
        when c_hist.
          perform f_show_history.
        when others.
      endcase.
      clear ok_code.
    endmodule.                            
    then
    form f_show_history.
      data : p_wa_rows    type int4.
      data : p_i_rows     type salv_t_row.
      gr_table->get_metadata( ).
      p_i_rows = gr_selections->get_selected_rows( )." Here Its failing in second time. P_I_ROWS showing blank second time
      clear: wa_output.
      read table p_i_rows into p_wa_rows index 1.
      if sy-subrc eq 0.
        read table i_output into wa_output index p_wa_rows.
        if sy-subrc eq 0.
          perform f_display_document.
        endif..
      endif.
      refresh : p_i_rows. clear : p_i_rows.
      gr_selections = gr_table->get_selections( ).
      gr_selections->set_selected_rows( p_i_rows ).
      gr_table->refresh( ).
      call method cl_gui_cfw=>set_new_ok_code( new_code = 'REFR' ).
    endform.                                 " F_show_history
    PS : I don't want to place the button in the ALV application toolbar

    Hi Dear,
    I have some clue regarding your problem but that is in simple Alv not in oops.
    declare a first field of your internal table i.e. you are passing to alv as cell type c.
    then in layout
    add
    gs_layout-box_fieldname     =   'SEL'.
    pass this layout to alv.
    then you are able to get exact row number.
    LOOP AT gt_gi INTO gs_gi WHERE sel = 'X'.
            gs_gi-sel = ' '.
            APPEND gs_gi TO gt_gi.
            CLEAR gs_gi.
          ENDLOOP.
    Hope this clue will help you.
    Regards,
    Vijay

  • Volume cuts out for split second and then comes back very low

    I have an old Ipod Classic that I listen to on my Bose docking station. Every now and then the sound cuts out for a split second and then continues playing only it's too low to really hear so I have to turn the volume back up.
    It did this twice today when I was listening to.
    It was doing this every now and then a few months back and then stopped.
    Has anyone had this problem and know what could be causing it to happen?

    * Bugcheck Analysis *
    BAD_POOL_HEADER (19)
    The pool is already corrupt at the time of the current request.
    This may or may not be due to the caller.
    The internal pool links must be walked to figure out a possible cause of
    the problem, and then special pool applied to the suspect tags or the driver
    verifier to a suspect driver.
    Arguments:
    Arg1: 0000000000000020, a pool block header size is corrupt.
    Arg2: fffffa802224f9e0, The pool entry we were looking for within the page.
    Arg3: fffffa802224fa50, The next pool entry.
    Arg4: 0000000004070006, (reserved)
    Debugging Details:
    TRIAGER: Could not open triage file : e:\dump_analysis\program\triage\modclass.ini, error 2
    BUGCHECK_STR: 0x19_20
    POOL_ADDRESS: GetPointerFromAddress: unable to read from fffff800036ca100
    GetUlongFromAddress: unable to read from fffff800036ca1c0
    fffffa802224f9e0 Nonpaged pool
    CUSTOMER_CRASH_COUNT: 1
    DEFAULT_BUCKET_ID: WIN7_DRIVER_FAULT
    PROCESS_NAME: chrome.exe
    ++++++++++++++++++===============================++++++++++++++++++++++==========4
    * Bugcheck Analysis *
    VIDEO_TDR_TIMEOUT_DETECTED (117)
    The display driver failed to respond in timely fashion.
    (This code can never be used for real bugcheck).
    Arguments:
    Arg1: fffffa80262bc4e0, Optional pointer to internal TDR recovery context (TDR_RECOVERY_CONTEXT).
    Arg2: fffff8800fa2be20, The pointer into responsible device driver module (e.g owner tag).
    Arg3: 0000000000000000, The secondary driver specific bucketing key.
    Arg4: 0000000000000000, Optional internal context dependent data.
    Debugging Details:
    TRIAGER: Could not open triage file : e:\dump_analysis\program\triage\modclass.ini, error 2
    FAULTING_IP:
    nvlddmkm+153e20
    fffff880`0fa2be20 ?? ???

  • Newish LED goes black (for split seconds)

    Hello,
    A few months ago I got a new LED 24" display for my early 2007 MacPro. Until a couple of days ago it was working fine with the Geffen adapter. Internet was via airport only. Then a few days ago--after getting aggravated for the 100 time with all the interference here-- I decided to connect via ethernet. (The cable runs from the airport to the MacPro). Since I did that the display has been acting weird. While online, from time to time the display would go all black for a split second. Nothing reloads when it comes back; so it doesn't seem to be a downloading issue. It seemed to be getting worse--and was happening while not online-- so I disconnected the ethernet cable, reset the network prefs, and am now back on wireless. But, the display is still doing its weird black out thing. It's getting me pretty worried (way way way too much money spent on computer problems in the last few months). Display problem? A conflict? Something with the power supply? Don't know why, but the ethernet switch seems to have triggered it. Only other issue I can think of is that I had to turn off the UPS for awhile while I was setting it all up.
    Thanks for any information.
    Jen

    I'm having the same problem. 2.8 GHz Aluminum iMac, started last week to black screen for about 1 sec about every two days, duration slowly getter higher each time, just now blackscreen lasted about 6 secs. Mouse wiggle, keyboard press, doesn't bring it back. I've kept a log and I'm never using the same program when it happens. It's disappointing thinking it might be a hardware problem. Internal temps are running as follows in °F:
    HD - 121
    CPU - 104
    Airport - 140
    GPU - 128
    GPU Heatsink - 124

  • Computer wont start up, goes to BSOD for split second, restarts and repeats cycle

    Had an HP laptop for a few months, everything was working fine until today when I was using my laptop in the car using spotify, then spotify froze and my comp froze so I restarted and to my dismay my computer would not boot. After pressing the on button, my computer would display the starting windows text and logo for an abnormal amount of time and then show the blue screen of death for a split second. Then it would repeat the cycle again and again
    I tried to system restore using the f11 button on startup, it would say loading files and then starting windows and then I end up at a grey screen with only the cursor and nothing else. Can move the cursor but theres nothing to click on
    Help!! How to fix or do a system restore to factory settings

    Hi robertwtf,
    What is your product number?
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • PS4 turns on for split second then turns off (Not BLOD)

    My PS4 was purchased via preorder on launch day here in South Africa - Friday 13th December. After working for 2 days,it now fails to turn on. I've read about the blue light of death that just pulsates continuously but what I'm getting is a beep and blue light for less than a second before it turns off completely with no light.
    If I then press or hold the power button again, I get nothing. I have to unplug it from the wall and replug it in and then if I press the power button again, it does the same as before - beep and split second blue light before going dead. Here is a video I took of it:http://t.co/VIrDS9KI1G I can't get into safe mode. If I try to hold the power button down, it just does the same as above. It doesn't stay powered long enough to reach 7 seconds. I've also tried removing the HDD and booting without the HDD in to try and force safe mode but again, it does exactly the same as above. I've tried using different plug points and adapters that I know work and I've done so with no other devices plugged into these points or adapters. In my highly amateur opinion, it feels like a power supply issue where power is cutting practically immediately.

    It's a power issue, I've noticed this because I was moving my PS4 from downstairs where I tested it, to my gaming room where it'll live FOREVER! lol... and the power was unplugged, but I touched the button as I lifted the console. It beeped as if it was going to come on, then because it had no power it just went off again. Just like you describe. So the console is acting like it does when it has SOME power, but not enough in my opinion.
    Once I got it upstairs and plugged in the power, it came on and all was ok.
    I recommend:
    Giving the PS4 ITS OWN PLUG SOCKET, don't plug it on a multi-adapter where it's power might be shared/weakened.
    Give the PS4 a moment of being plugged in so it can store enough power to turn on.
    Make sure your cables are all good,

  • PowerPoint Animations Appear for Split Second

    I have a Captivate project that was created by importing a PowerPoint presentation which contains several animations.  I imported the presentation using the high fidelity option because the PPTX file contains SmartArt objects that are animated.  Everything is working fine with the exception that when I view the published project in the browser, for a split second the newly loaded page flashes all the objects on the slide.  The objects then dissappear and the slide continues to build the animations as expected and timed perfectly with the audio.  The course does contain audio on each slide and is 26 slides in length.
    Is there a trick to preventing these images/objects from flashing at the beginning of each slide?
    I'm using the following software and configuration:
    Captivate 6 with the latest updates.
    PowerPoint 2007
    Internet Explorer 8
    Windows XP SP3
    Flash Player 10 ActiveX 10.1.85.3
    Shockwave Player 11.5 (11.5.7.609)
    I hope that I have provided enough information and details for this question.
    Any help will be greatly appreciated! 
    Thank you,
    Jay

    Sounds good Damage.
    Dyslexia is a treatable learning disability that many children and adults suffer from.
    For information on this disorder and its treatment please visit ---> http://www.interdys.org/
    In regards to your computer running slow, delteing files off the hard drive will not make much difference unless you are very low on disk space (5 GB avaible on disk or less).
    Consider runing Disk Utility to make sure everything is clean on your HD.
    http://docs.info.apple.com/article.html?artnum=302672
    Also you may want to consider adding more RAM.
    All else fails you could consider erasing the drive and starting from scratch (backup important data first of course).
    I do this once a year on my machine just because I like getting rid of extra junk floating around that I don't know about.
    Hope that helps.
    Cheers!

  • 2nd audio track skips for split second

    I've had this 3g for a day now. I import from CD at the uncompressed format .wav instead of the other available formats. I notice that on playback of an album a split second dropout about 2 seconds into the second track. I have 3 albums loaded and each one does it at the exact same spot on the second track. If I start the album play over again after the drop out occurs then it plays back fine through the whole album length, but once it advances to the next album then it happens on that 2nd track too. Any suggestions?
    Thanks,
    rondr

    Have you seen this thread?
    http://discussions.apple.com/thread.jspa?threadID=1130388&start=0&tstart=0
    We all have the same problem. 1.0.3 didn't fix it. Don't think it's purely related to file size, as you rightly point out, it occurs regardless of song length.
    Toyed with the idea of returning mine thinking it may be a hardware problem, but from observing others' experiences, Apple "can't replicate" the problem so won't replace the unit. Very annoying. Wish my 2G nano was still alive

  • Plays only for 7 seconds...

    The album i bought on itunes is great, but one of the songs only play 7 seconds, then skips to the next song, I want the full song off course since i bought it, what to do?

    And i deleted it from the itunes libary and got it bakc from my computer, still only plays for 7 seconds and I have to buy it agian from the store!!! Please help!

Maybe you are looking for