Keep the highlighted line using jQuery

Hello!
I am using the following code to highlight a line in my report, calling it via an onclick event-

function point culminating (pThis) {}
$('td').removeClass ('current');
$(pThis) .parent () .parent () .children () .addClass ('current');
}

I have an icon in the same line that opens a popup page where a user can change this particular record. Once the changes have been made and a click on the button "Apply changes", the window popup closes and the page is refreshed to show the changes, but my highlight the line disappears. How can I go to keep this line was highlighted after the page is reloaded?
Thank you!
Tammy

Tammy,

The reason is that the background color is applied, not the tr element, but its td elements. You can use:

$('#'+pThis).parents('tr').eq(0).children('td').addClass('current');

Kind regards
Dan

http://danielmcghan.us
http://sourceforge.NET/projects/tapigen
http://sourceforge.NET/projects/plrecur

You can reward this answer by marking as being useful or correct ;-)

Tags: Database

Similar Questions

  • How to keep the Safari line at the top of my screen to disappear?

    How to keep the Safari line at the top of my screen to disappear?

    See the toolbar of Safari mode full screen?

    Launch Safari.

    Click on the Green navigation button to enter full screen mode.

    Move the mouse to the top of the screen.

    When the menu bar and the toolbar drop-down, click on 'View' in the menu bar of Safari.

    In the drop-down menu choose «Always see the toolbar in full screen»

  • Jdev 11G ADF BC: rollback and keep the current line problem

    Hello

    I have 2 pages of tabs in the application. The second is a page change that has a master detail data set can be changed and 2 buttons - submit and rollback.

    Submit button is a validated method from the viewImpl.java that will save your changes and keep the currently selected line.
    Cancel button is also validated method of the viewImp and the restoration on the changes and keep the line currently selected.

    There is a validator that is set up for a component on this page. When user input is not valid and that the user clicks on the "Restore" button, the error message appears and stays there until a valid value is entered.

    How can I restore without validating any component. In a Word, how to disable the validator when you click on restore.

    Thank you very much

    Annie

    I would suggest trying to use Steve code as is in the view object in beforeRollback, afterRollback.
    It works very well with the button restore default
    Maybe the problem is that you made the restoration of the Interior of the view object.
    You can also find a script to test for 11g in [http://adfbugs.blogspot.com/2009/09/range-paging-and-restore-current-row.html]

  • In Adobe Flash cc, is there a way to keep the 2 lines (pen tool or the line tool) which cross each other anchor at the intersection?

    I often use the tool/line pen tool and when I have the curve the line with the Selection tool it often crashes on nearby vector lines. Is any way to stop this? In Adobe Illustrator crossed lines drop anchor (at least for me).

    Is it possible to change it? or is there another tool pen / I do not know will not be the anchor on a different line whenever he touches?

    Hello

    You can use these tools in drawing mode of the object (available just below the color sample of fill/outline in the tools Panel when a drawing tool is selected) where several objects create the intersection points. But please note if draw oneself which intersect the lines then it will create an anchor point.

    Thank you!

    Mohan

  • How install Flash Player via the command line using sudo to install without being invited for the dialog "Preferences updated Flash Player"? Is there a really quiet option, no prompt?

    Since the administration guide, I execute the following commands on a remote host to install flash player. However, the command stalls waiting for "Update Flash Player Preferences" dialog box to decide. I would like to run this command on a remote host and have to install without any warning. Are the other arguments to the "'Adobe Flash Player install Manager" another that '-install ', something that is really quiet? "


    Silent installation of Flash Player (using Installer .app bundle)

    To silently install the Flash Player 11.3 or later on Mac, follow these steps:

    1 extract the bundle to install Adobe Flash Player (install Adobe Flash Player.app) of the. DMG file.

    2 open a terminal window and change to the directory where the .app file is saved.

    For example, if the .app file is saved to the desktop of the current user, type:

    CD ~/Desktop

    3. run the installation program contained in the .app file using the following command:

    sudo. / Install Adobe Flash Player.app/Contents/MacOS/Adobe Flash Player install Manager.

    install

    4. type the password to continue the installation.


    Thank you.

    Hello

    You experience this behavior because you use the installer online, download and install Flash Player silently in background, but requires also the user to provide the option to update.  Setup Online is not intended for the distribution of the company.  Distribute Flash Player within your organization, you will need Flash Player (usually free) licenses for distribution.  Apply for a license, go to Adobe Flash Player Distribution. Adobe and complete and submit the form.  After application, you will receive an email with a link to download installers for the distribution of the company.  This includes installers .app both .pkg you can use.  None of these prompts to update the options during installation in silent mode.

    I apologize for not noticing this before, however, I assume that you did not use the installer online since you were distributing Flash Player within your organization.

    --

    Maria

  • keeping the light lines inside the area reduced opacity

    I use Keynote 6.2.2 and I have some text and arrows labelling a detailed photographic image. I want to put a box on an area of the image and fill it with gray at 50% opacity, in order to create a space on which these lines and the text can be read more clearly. The problem I have is that, even if I can create the box and reduce the opacity of the fill color to 50% easily, when I put it behind the text or the arrows it seems to reduce the opacity of them, too, even if they are defined to be in the front of the box. Is there a way in which I can create a background area 50% or more on my image, but retain the text and lines appear on top of it to its maximum intensity?

    To be precise, the latest version of Keynote is 6.6.1

    Assuming you have done this correctly, the brightness levels of the text will not change in Keynote, you can check with digitalcolor in public services.   IV found using a grey environment to the most useful color less like a text background, I tend to use a matching color to the background or black.

  • Keeping the new line as current after executeQuery.

    Hello

    JDev 11.1.2.4.0

    'Because of spam, this content is blocked "= > http://pastebin.com/jtwWWseQ ".

    Kind regards

    Pamela

    It is a scenario common, yet very tricky to implement in a way that doesn't create performance issues.

    Option 1: run the query and reset the current row thereafter:

    Public Sub executeAndPreserveRow()

    {

    Line currentRow = getCurrentRow();

    If (currentRow is nothing)

    {

    executeQuery();

    }

    on the other

    {

    Key currentRowKey = currentRow.getKey ();

    int rangePosOfCurrentRow = getRangeIndexOf (currentRow);

    int rangeStartBeforeQuery = getRangeStart();

    executeQuery();

    If (rangeStartBeforeQuery <> this.getEstimatedRowCount (())

    {

    setRangeStart (rangeStartBeforeQuery);

    }

    Line lines [] = findByKey (currentRowKey, 1);

    If (rows! = null & rows.length == 1 & rangePosOfCurrentRow > = 0)

    {

    scrollRangeTo (lines [0], rangePosOfCurrentRow);

    setCurrentRowAtRangeIndex (getRangeIndexOf(rows[0]));

    }

    }

    }

    Now, if your view object is mapped to a potentially important game data or not,

    You can use either this.getEstimatedRowCount () or this.getRowCount ().

    The first fact the count at the database level by pulling a SELECT COUNT, while the letter No County in the server's memory,

    That's why he must extract all records in memory first, which is very costly in terms of scalability.

    Bottom line: you can use getRowCount() then the original version contains a small no records (1-50) and getEstimatedRowCount() when

    the dataset is larger.

    Option 2: make insert, make commit, Rollback


    You can follow this blog:

    Andrejus Baranovskis Blog: ADF Restore Operation and stay on Current Row


    On top of the blog instructions, depending on the version of the ADF, you may need to add the attribute ClearCacheOnRollback on your Application Module:

    <>

    Name = "AppModule.

    .........

    ClearCacheOnRollback = "false" >

  • Compare 2 PDF of the file through the command line using the Acrobat SDK

    Hello

    I want to compare 2 by command line of the PDF using the Acrobat SDK, is it possible?

    My needis to create Automation for comparison in .net, c# technology to compare files of 100.

    Could you be it someone at - it one please let me if the Acrobat SDK kit supports integration with .NET and is it possible to call the term comapere.

    OK, Acrobat is not suitable. It is not technically suitable for the server; also no license. It doesn't have a command line, only OLE user interface.

    There are Acrobat PDF library, allowing development in C/C++. But I think that there is no function to compare. You will need to implement one yourself, which is a probably a lot of work. What kind of comparison do you want? If you just want to know if the files have changed at all you can use all the checksums without any API. Or are you looking for any Visual change? Or text change...?

  • problem updating the contract line using OKC_CONTRACT_PVT.update_contract_line

    Hi all

    I am facing a problem trying to update the end of contract line dateusing the api OKC_CONTRACT_PVT.update_contract_line. When executing the procedure that calls the api it returns the State S without error and also update the table of base that is OKC_K_LINE_B with new end date successfully.

    The problem is that whenever I'm if commit the changes to the front end, application - contract line record gets endangered. What is happening to all instances of the element. Here are the settings I am passing through the api,

    p_chrv_rec.ID: = < id for row in the okc_k_lines_b table >;
    p_chrv_rec.end_date: = < new_end_date >;
    p_chrv_rec. VALIDATE_YN: = 'N'; -I don't want the api to validate attributes

    Please note that the api is correctly updating the record base table but not able to display in the application. I tried to compare the same record before and after the update to confirm if no value of the indicator is is changed due to the record does not appear in applications. but there is no such changes except the new date and the annualiazed_factor. Can is it you pls let me know no work around as if any option profile must be changed to achieve the same.

    Navigation to the im application to check the update new end date of contract line is:

    Oracle Install Based Agent user-> Instance element-> contracts

    Thanks in advance.

    Kind regards
    Hespel.

    Published by: user10545574 on July 8, 2010 06:56

    Hello

    Shouldn't you be using the public api (OKC_CONTRACT_PUB) rather than the private sector? By directly using the package private, you are probably bypassing some features that could cause problems like the one you are talking about.

    Kind regards.

  • Frame 12 chart: hold SHIFT used to keep the line straight, now what?

    It was when you draw a line in Framemaker that now the SHIFT key while dragging the line would keep the straight line. This no longer works in Frame 12. What is the right way to get a straight line?

    Thanks in advance.

    It seems that talk us about different things. I thought that you were concerened about the change of the line after what he drew.

    To create a new vertical/horizontal line, select the line tool (cursor becomes +), then hold down the SHIFT key. Now, click where you want to start (while holding down the SHIFT key), and then drag the line to where you want to end (i.e. your last approach). At this stage it will still be the selection and display the handles at both ends.

    For editing existing line, ctrl + click on the line. The handles will appear. Hold down the SHIFT key and then click the e handle you want to change. You can move horizontally or vertically along the imaginary axis passing through the selected breakpoint when you use the shift key modifier.

  • How to highlight the selected line in an interactive report in apex5?

    Hello

    I want to emphasize the selected line in the report by changing the background color of the line. Basically, I want to do this. I really want to do is, select a row in the report and according to the selected line, I want to retrieve other data to another interactive report on the same page. So, how can I do this?

    Hi geslin,.

    Garza says:

    But here shows a link to another page or something like that. But I don't need that. I just want to show when the user selects a specific row by clicking on this line, and it should show that it has been selected by changing the color of the line and after having extracted a few hidden field and according to those column data display data on another report on the same page.

    Check your Application-> Page 2 30870. I've set up a dynamic action to reach the line highlighted when selected.

    Here are the steps to achieve the highlighted line:

    • Changed the definition of class employee culminating point to CSS-> section of the line on the page:
    .highlight-employee
       {
        background-color: blue !important;
        color: white !important;
       }
    
    • Commented the code written in JavaScript-> Execute JS when the section of the page to load the page.
    • Edited the ROWID of your interactive report column and set the following properties for 'column link:

    Text link: #ROWID #.

    Link attributes: id = "" #ROWID # "class ="monlien""

    Target: URL

    URL: javascript:void (0);

    • Dynamic action created with the following properties:

    Name: highlight_selected_row

    Event: click on

    Selection type: jQuery Selector

    jQuery Selector: a.mylink

    Action: Run the JavaScript Code

    Fire on loading the Page: No.

    Code:

    var row_id = this.triggeringElement.id;
    $('#P2_NEW').val(row_id);
    $('#'+row_id).parent().closest('tr').find('td').addClass('highlight-employee');
    

    Scope of the event: Dynamics

    Kind regards

    Kiran

  • Formatting of the Spry Menu to keep the current page has highlighted?

    Hello

    I have the manual missing O'Reilly for CS5, but I can't find instructions on how to keep the highlighted menu bar so that the user always sees the specific page they are on the menu. If someone chooses the "About" page, I would that the text/tab About stay highlighted (in the style of hover), so that the user always knows the page they are on (without adding a breadcrumb or separate page header).

    Can someone tell me the instructions. Is there a selector under specific within the spry css or separate it HTML I need to add to the html page or the menu js spry?

    Thank you

    Wendy

    Just follow the instructions here http://labs.adobe.com/technologies/spry/articles/updater_help/

    If you want a fast solution

    1. make a new (empty) file in the SpryAssets SpryDOMUtils.js file
    2. Click here http://labs.adobe.com/technologies/spry/includes/SpryDOMUtils.js
    3. copy the code that you see in step 2 (on the page, right click and select all of the pop-up)
    4. Open your newly created SpryDOMUtils.js file and paste the content in here (right click and choose Paste)

    And you have a copy of work. Don't forget to download the file on the remote server, otherwise your online version does not work.

    Happy vaporizing.

    Ben

    PS NEVER GIVE UP! There is always a solution.

  • Change of control, keep the scale of fonts

    Hey,.

    I have a 'mx:Text' with a text control and the width is equal to 350 and height 350. If I double the measure (700 x 700), how can I keep the same space used by the text? You can see that I double the width and height, but if I double the fontSize of the text control will use more lines in comparison with its old width and height.  So, how can I maintain this scale proportionally?

    Thank you

    Embed fonts and the scaleX and scaleY value = 2

  • Highlight line ObjectListField

    How can I change the highlighted line to have just a red border around it?

    This means that the entire line fill area should not be highlighted. Only a red box around the current line.

    Thank you

    Override the drawFocus method

  • with the command line remote reboot

    I know not how to remote shutdown of a pc on our network using the command-line using this...

    Shutdown - r f t 0 - m ComputerName

    But how to do it with my mac to pc?

    Again, you can not. The commands only work with the same OS.

    Yes Mac to Mac, Windows, Windows, etc.

    You will need to find some kind of package of administration remote cross-platform.

Maybe you are looking for

  • Changes to the Safari search preferences

    Th suggested Apple customer relations people earlier, I changed my preference of Safari to DuckDuckGo.com search and was very happy with it.  However, I now have some kind of malware on my iMac that I can't get rid of, and I think that it will affect

  • How do we uninstall Sweeper mac?

    Sweeper Mac and Megabackup showed the last time I updated adobe flash.  It is constantly running, and I can't seem to uninstall completely.  Any suggestions?

  • Crash when you press BACKSPACE.

    Whenever I press the BACKSPACE key firefox just goes down, it seems not serious if I type in the address bar or on a Web page. He sits for a few days, I haven't installed firefox or windows 8 (No 8.1) updates, at least not to my knowledge.

  • ThinkPad new P50 video drivers 10.18.13.5445/20.19.15.4326 are corrupt!

    ) Hello, I just noticed that Lenovo downloaded from new graphics drivers (10.18.13.5445/20.19.15.4326) for the P50 and I hope they have fixed the problems with drivers Intel HD which force me apop tha use only with the NVIDIA GPU. Unfortunately, when

  • 699280 001

    Can anyone tell me please what system will this part 699280-001? Thank you Charlzz