HTML Panel: How do you highlight the current link?

I have an HTML panel that's working perfectly, but there is
no way for the user to know which link is currently displaying
content. Is there a way to add a CSS class to a link when the user
clicks it, and remove that class when the user clicks a different
link? My HTML panel is here:
new.eci2.com in the box labeled
"Solutions"

I don't know if this will help but, I was able to use the
following example to trigger CSS changes when an element is
selected.
http://labs.adobe.com/technologies/spry/samples/data_region/SprySelectSample.html
In your example firefox shows me the active link as the
default 'visited' purple color. Just so you know. :)
I hope this helps.
Byron

Similar Messages

  • How to you reference the current page number and total pages in a script?

    I'm trying write a small script to make field invisible when the current page equals the total number of pages, but with no luck.
    Can anyone advise how to do this?
    I've tried various ways to reference my fields, this being the most basic:
    if(pageNumber == totalPages) {
    continuedBase.presence = "invisible";
    // pageNumber has a run time property as "Current Page Number"
    // totalPages has a run time property as "Number of Pages"
    // continuedBase is a text field within the same subform as pageNumber and totalPages
    Thanks for any help offered.
    Russell

    If you are asking how to get the current page and total pages you acn use these commands:
    current page ----- xfa.layout.page(this)
    total pages ------ xfa.layout.pageCount()
    so your code woudl look like this:
    app.alert("The curent page is: " + xfa.layout.page(this));
    app.aler("The total number of pages is: " + xfa.layout.pageCount());
    if(xfa.layout.page(this) == xfa.layout.pageCount()) {
    continuedBase.presence = "invisible";

  • JavaScript:  How do you pass the currently active doc to a dialog in a menu item?

    I'm using Adobe Acrobat 11.0 Standard on Windows 7, and I'm having trouble with the menu item that I'm creating.  The menu item calls a dialog that prompts the user to select a page in the currently active document.  The problem is, I can't figure out how to pass the currently active document to the dialog.  I scoured the rest of the documentation, did searches on Google and here in the Adobe forums, but haven't turned anything up.  The AcroJS API gives the following solution (found under app/methods/execDialog):
    This function attaches the Doc object to the dialog box, then passes the dialog box to the app.execDialog method. The dialog4 object and this function can be at the document level.
       function dotheDialog(dialog,doc)
            dialog.doc = doc;
            var retn = app.execDialog( dialog )
    Finally, the following script can be executed from a mouse-up action, for example.
        dotheDialog( dialog4, this );
    I did this exact thing, but in the dialog, the value of this.numPages still comes out as undefined, indicating that the current document still hasn't been passed.  My own code looks like this:
      function dotheDialog(dialog, thisDoc){
        dialog.doc = thisDoc;
        var retn = app.execDialog(dialog);
      app.addMenuItem({
        cName: "Test Dialogue Box",
        cParent: "Edit",
        cExec: "dotheDialog(templateDialogue, this);"
    where templateDialogue is the name of my own dialog, rather than dialog4.  I'm not sure what the retn variable that they declare in the documentation is for, but I've tried it with and without that part, and it doesn't seem to make a difference.  Does anyone know how to do this?

    Sorry, here it is.  It's also just a small modification of something directly from the API, which is why it still has the date bit in it.
    var templateDialogue = {
      initialize: function (dialog) {
        // Create a static text containing the current date.
        var todayDate = dialog.store()["date"];
        todayDate = "Date: " + util.printd("mmmm dd, yyyy", new Date());
        dialog.load({ "date": todayDate });
      commit:function (dialog) {    // called when OK pressed
        var results = dialog.store();
        var inBounds = (parseInt(results["tPag"]) < this.numPages);
        if(!inBounds){
          app.alert({
            cMsg: "Please enter a valid number for the page from which to make the template." +
            "\n" + parseInt(results['tPag']) + " = parseInt(results['tPag']) !< this.numPages = " +  // I put this in to see the value of this.numPages,
            this.numPages,                                                                           // and it continues to be undefined.
            cTitle: "Page out of Bounds",
            nIcon: 0, nType: 0
        }else{
          var nButton = app.alert({
            cMsg: "Your template is named " + results["tNam"] + " and is made from page " + results["tPag"],
            cTitle: "javascript",
            nIcon: 3, cType: 0
      description:    {
        name: "Personal Data",    // Dialog box title
        align_children: "align_left",
        width: 350,
        height: 200,
        elements:
            type: "cluster",
            name: "Add a page to this documents templates.",
            align_children: "align_left",
            elements:
                type: "view",
                align_children: "align_row",
                elements:
                    type: "static_text",
                    name: "Template Name: "
                    item_id: "tNam",
                    type: "edit_text",
                    alignment: "align_fill",
                    width: 300,
                    height: 20
                type: "view",
                align_children: "align_row",
                elements:
                    type: "static_text",
                    name: "Generating Page: "
                    item_id: "tPag",
                    type: "edit_text",
                    alignment: "align_fill",
                    width: 300,
                    height: 20
                type: "static_text",
                name: "Date: ",
                char_width: 25,
                item_id: "date"
            alignment: "align_right",
            type: "ok_cancel",
            ok_name: "Ok",
            cancel_name: "Cancel"
    Side Question:  Out of curiosity, how would you abort if the user clicks cancel?  I get the feeling that they don't cover it because it's something you're supposed to already know how to do, but...I don't.  Would you just put whatever action you want to take into an if ( button == "Ok" ) type statement so that cancel does nothing?

  • How do you record the current index?

    Hi everyone,
    Im sorry if this problem seems basic, but I have a for loop that controls motor movement, and I have a separate while loop that is responsible for all data acquisition. I am wondering if there is a way to record the current index number from the for loop in my DAQ loop? I tried wiring the index down to the array in the while loop, but it seems to prevent the while loop from starting up.
    I can throw up some pictures if necessary, but im hoping this can be done easily.
    Thanks!

    Please do not "throw up pictures".  Instead, post code.  Attach a VI, or create a Snippet (which looks like a picture, but can be dragged onto a LabVIEW Block Diagram and, by NI Magic, becomes executable, editable, clickable LabVIEW code.
    Bob Schor

  • How do you clear the current song info from the top display window?

    When you first start iTunes and select Music, the display window at the top just has an Apple logo in it. Once you start playing a song, the song info shows up there. I can stop the song using Command-period (or the space bar), but the info stays there. Is there a keyboard shortcut or something simple to return the window to just the Apple logo? I cleared it inadvertently when I selected Radio, but I don't know if that will always work and I'm guessing there's a formal way to do it. (Selecting Radio while a tune is playing won't clear the info, of course.)

    Fairhavens wrote:
    ... a good manual for iTunes
    here are some:
    iTunes 101
    How to Use iTunes: Getting Started
    iTunes Keyboard Shortcuts
    JGG

  • How do you reference the current version of DIAdem through an automation reference?

    I need a way to find out which version of DIAdem is active. REading the registry doesn't help, because DIadem simply registers subkeys and doesn't keep track of multiple versions. Can I do this via the DIAdem API? Thanks.

    Hi DecaGregg,
    Yes, you can query which version of DIAdem you have on the other end of an OLE Automation Server connection. Use the ToCommand server's "IntegerVarGet" method and one of 3 internal DIAdem variable names to get the information you want. Try double-clicking on the VBScript attached below from Windows Explorer to see what it looks like from a text-based program.
    If you are controlling DIAdem from LabVIEW, there is a built-in VI in the LabVIEW-DIAdem Connectivity VIs that does this version querying for you.
    Have fun,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    DIAdemVersion.VBS ‏1 KB

  • How do you remove the MyStart link which keeps overriding my homepage?

    I dunno how I got the link that keeps overriding my homepage.
    Anyone able to share?
    Thanks much.

    I did a google search of "what is mystart".  Check that search link too.  There are lots of hits on this topic.
    It may have something to do with IncrediMail.  So check this discussion.
    Check your browser's extensions/add-ons for a add on you don't recognize (possibly one named MyStart).  If you find such an add on delete it and restart your browser.
    Another possibility, Fastest YouTube Downloader,  See comments on the age I linked to.

  • Highlight the current word using the keyboard

    How do you highlight the current word using the keyboard
    eg lets say the cursor is after the letter d in AddComments would like to highlight the AddComments using the keyboard
                mediatorMap.mapView(AddComments, LoginFormMediator);

    Hi
    I dont think its possible. In Java you have something like Select Enclosing Element, which mimicks selecting a word (Alt-Shift-Up). However, FB does not have this feature, AFAIK.
    There is an Eclipse enhancement request for this behaviour, which should address this in some future release. Given the fact that its still not implemented in core Eclipse, and the lame speed at which FB develops, I wouldn't expect anything before 2012.
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=23080

  • How to Highlight the CURRENT RECORD in a Table with Report Form

    Hi,
    I have created a Table with Report Form....let suppose the table is - EMP
    Report page - 1
    Form page - 2
    Now, when I do Create / Update on Page 2,....the control is back on Page1.
    Suppose in the Report Page (Page1)..we have 10 records....NOW how should I highlight the CURRENT RECORD in Page 1 with some color to identify the record which I have updated/created just now...
    Thanks,
    Deepak

    Hi Deepak,
    You could do that with a custom report template. I've done that here: [http://apex.oracle.com/pls/otn/f?p=267:175]
    Go to Shared Components, Templates and create a new Report template as a copy of your existing one. Then edit your template. In the above example, the Column Template 1 setting was:
    &lt;td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data"&gt;#COLUMN_VALUE#&lt;/td&gt;I copied this into the Column Template 2 setting and updated the Column Template 1 setting to:
    &lt;td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data" style="background-color:red; color:yellow;"&gt;#COLUMN_VALUE#&lt;/td&gt;I then set the Column Template 1 Condition to: Use Based on PL/SQL Expression
    and the Column Template 1 Expression to: '#EMPNO#' = '&P178_EMPNO.'
    (In my example, P178_EMPNO is the single item on the linked to page.
    Save those changes and go to your report and change its template to the new one. As long as a selection has been made and P178_EMPNO has a value, the condition will make sure that the report uses the first template for the row with the matching EMPNO value. All other rows get the template from Column Template 2.
    Andy

  • How do you highlight a sentence that spans two pages without having to make two notes?

    If a sentence starts on one page and continues to the next, how do you highlight the entire sentence without having to start a second note for the second page? I know it's possible because one of my notes is highlighed that way.  This seems like it should be a simple thing to do. But I can't figure it out and I can't seem to find any solutions either.

    Not sure if it'd make any sense, given the device and software,
    but what happens if you could resize the page so that sentence
    is in one page, then resize the page back to original size; which
    should make both halves of a sentence still retain that aspect?
    Just an idea...
    Dangerous enough?

  • Highlight the current row in the called form

    hi,
    how can i highlight the current selected row in the called form.. do i have to use current_record or current rowid as parameter and pass to a called form ??
    thanks

    i passed the current record as parameter to called form. so i have the current record number, say 2.. so can i not do the GO_RECORD('2'); after going to that particular block of the called form??

  • How do you read the camera position in the 3d picture control?

    Hello,
    There is a method to setup the camera position, but how do you read the current camera position?  e.g. the user uses the mouse, ctrl, and shift, to change the camera position.  How do you read this new camera position?  There don't seem to be any properties to do this.
    I've read this thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=214629&requireLogin=False
    but the question was never answered....
    From the comments in that thread, even if you had the proper documentation for the "Model Matrix" property, you couldn't get the information necessary to calculation the camera position.

    Lorielle,
    Thanks for the VI.
    Could you point me towards a more detailed description of the "Modelview Matrix" property?  I've attached a screenshot from the online help.  It is not very helpful.
    Attachments:
    Modelview Matrix.jpg ‏71 KB
    Modelview Matrix1.jpg ‏71 KB

  • How do you change the pink highlight for the present day in calendar when in week view

    How do you change the pink highlight for the present day in calendar when in week view - OSX Maverick

    the current day was light blue in ical in 10.6 but with plenty of contrast, but I recently made the bigger leap all the way to calendar in 10.9. the choice of color is terrible for reasons such as Spile1962 puts below, but also not having any way to tweak it is terrible. I'm on a bran d new imac and can barely see a difference and frankly, while I appreciate the subtlety, I still forget to look for the darker bar across the top of the current week and day. we should be able to adjust weekend and current day bg colors.
    I went into the app's package contents in hopes that they were using a tiff/png file that I could tweak on my own but couldn't find anything for them. all the icons are there, as are the bg sets for all the little pop-ups and things, but I couldn't even find a reference to a hex color in the plist file.
    send apple feedback. I just did myself, except that Calendar hasn't made the list (yet?), only iCal up to version 4.x, and Messages is still only iChat for feedback, and some others are old as well. apparently after steve died, apple's attention to these details just died with him. it's been that long since those other apps should have been relevant on their site.

  • How do you highlight multiple documents rapidly, rather than having to click on the document and on "command" one at a time?

    How do you highlight multiple documents rapidly, rather than having to click on the document and on "command" one at a time? Right now, when I'm trying to highlight documents to export, I have to click on each document individually. Is there a way to highlight one document while scrolling down the list until all desired documents are highlighted? I would like to rapidly be able to do this to save time when I am exporting or saving multiple files from my documents to an external drive, CD-Rom or cloud storage.

    Click on the first item
    Hold the Shift key
    Click on the Last Item.
    All the items in between will be selected.

  • How do you add the name of a song to a downloaded track not reccognized in the iTunes library.  I copy songs from my own CDs and want to properly identify them instead of the current "Track 02".  Thanks

    How do you add the name of a song to a downloaded track not reccognized in the iTunes library.  I copy songs from my own CDs and want to properly identify them instead of the current "Track 02".  Thanks

    Right-click the track in your library, Get Info, go to the Info tab, and type in the correct information.  When you are done, click "OK."

Maybe you are looking for

  • How can I use my PSE  9 after PSE 11 uninstall killed it?

    Hi, no thanks to Adobe's "This version is no longer supported" policy I end up here - I am VERY upset but I hope it does not show. I got the PSE 11 as a trial to see if it would have improvements I'd need but I decided not to buy it. Most annoying fo

  • How to extract the Physical Query(database Query)

    Hi , How to extract the Physical Query(database Query) from obiee which was fired in obiee Regards Ranga

  • How to enable php, mysql, and apache?

    Hi guys, I am sorry if I am not in the right forum, but I am really worried about my problem... According to this article("http://developer.apple.com/mac/articles/internet/phpeasyway.html") I already have php , apache, and SQlite installed on my mac.

  • Select last line item from VBAP

    Dear SAP experts, This might sound very silly question but I am new to SAP world. is there a simple select statement to select only higest line item. Say for example in VBAP, I have 9 line items. then my select statement should find the last line ite

  • RFC monitor with CCMS

    Hello, I'm implementing RFC monitor with CCMS and I have a problem. I was able to implement the method with an auto-reaction method of send mail. It is working fine but it doesn't repeat the alert!  Let's say, imagine that the RFC isn't working since