Highlighting the link using javascript:

Hi
I am using html:link in submitting the page.when i pressed the html:link the link should be highlighted
as well as the submission of page should occur.The highlight of the link should go off only when the user chooses(click) the next link.
can anyone help me how to acheive this using javascript
thanks in advance

Sorry, you are at a Java/JSP forum, not at a Javascript forum.
Besides, your actual problem is normally to be solved using CSS, not using Javascript and certainly not Java/JSP.

Similar Messages

  • Create link using javascript or other relevant automated process

    i have multiple PDF which i have combined using Acrobat pro... the table of content for this pdf does not have link as i had generated it in Word using RD fields. Now, my main concern is it possible to create links using Javascript or any other process.. i am aware of link tool however my document is very huge and the TOC comprises of around 25 pages.. it will be very cumbersome to manually add for each topic and will be difficult to maintain as we keep updating the document content..i would really appreciate if any one could help me in this as i really stuck up in middle of project...

    thanks a ton for your prompt response..As i had mentioned earlier, i have around 13 sub documents. i have generated a table of contents for these document using RD fields in a seperate document and saved it as TOC.doc. As these are fields are referring to topic outside the current document, the links are not availabled in word.. i am not aware of any possible method in word to retrieve links for these topics just like how a standard TOC in word works. as i saw it PRO, there is an option to create link, i was wondering if there is any way i could automatically link these topics as in PDF, the topics are in the same document where as in WORD these are different documents.If you could suggest some work around, i would be glad

  • How to get page number from the PDF using Javascript

    Hi,
    We are having list of Single page PDF. The pdf are named in the order,
    ISBN_Author_01.PDF  (with real page number as i)
    ISBN_Author_02.PDF  (with real page number as ii)
    ISBN_Author_03.PDF  (with real page number as iii)
    ISBN_Author_04.PDF  (with real page number as 1)
    ISBN_Author_05.PDF  (with real page number as 2)
    ISBN_Author_06.PDF  (with real page number as 3)
    ISBN_Author_nn.PDF  (with real page number as 500)
    Here each pdf has a page number and in sequential order.
    The task is to check whether all the pdfs are in sequential order (i.e i, ii, iii, 1, 2, 3). If any page is missing, the script should throw an error report.
    To do this task, I am writing a Javascript to get the real page number from the PDF.
    Can anybody help me how to get the page number from the PDF using Javascript.
    Thanks,
    Gopal

    The "real" page number within a PDF is the count of the physical page starting at 0, zero.
    pageNum numPages
    The number printed on each page is the page label.
    setPageLabels  getPageLabel
    You will have to open each PDF and your script would need to know the page label for that file. I would expect you would need to build a 2 dimensional  array of the file names and the page label for the page within that array.

  • Expiration time has passed for the link used to download an ebook?

    expiration time has passed for the link used to download an ebook? I checked the time, date and time zone. Plus I am trying to do this on three different devices that are registered and which I used in the past with the reader app- iPhone, iPad, laptop. there is no firewall or antivirus . please help. I don't know what else to try

    OK I finally was able to delete it...had to do a restart to finlaize deletion, but the app was gone after. And have re-installed it with my current apple id.
    Thanks.

  • Random text with links using Javascript?

    I have a very simple script I downloaded that makes text random using javascript. I would like to add a hypertext link on parts of the text, but can't seem to get it to work.
    Would anyone be so kind as to show me how this can be done. I would like to add links to the "Random text string 1.", Random text string 2. etc., within the javascript below.
    <SCRIPT LANGUAGE="Javascript"><!--
    function text() {
    text = new text();
    number = 0;
    // textArray
    text[number++] = "Random text string 1."
    text[number++] = "Random text string 2."
    text[number++] = "Random text string 3."
    text[number++] = "Random text string 4."
    text[number++] = "Random text string 5."
    // keep adding items here...
    increment = Math.floor(Math.random() * number);
    document.write(text[increment]);
    //--></SCRIPT>
    Thank you!

    Hi, Mic,
    I actually don't know if this will work, but what if you added <a href> coding around your text line? You might need \ escape characters so that your script sends it out without trying to execute it as code.
    Z

  • Highlighting a checkbox using Javascript

    I have four checkboxes on my form. I would like to highlight and change the size of a checkbox when it is selected using Javascript. Any help/input is greatly appreciated.

    You can use something like this as the MouseUp event of the field:
    if (event.target.value=="Off") event.target.strokeColor = color.black; else event.target.strokeColor = color.yellow;

  • How to disable the ribbon using javascript

    when open a PDF document using acrobat X, there is a Tool ribbon in the top right side (there is also a comment ribbon and share ribbon), how to disable or remove the Tool ribbon using javascript?
    I try to use app.listToolbarButtons() and app.hideToolbarButton(...) but not working.
    Any ideas?

    Not possible.

  • WPC - highlighting the link of the current page in the link list

    Hi,
    is there any way to highlight a link in my linklist if it's the link to the page i am currently visiting?
    That would make it possible for me to customize the link list form and change it into some kind of "tab"-list form where the current tab is highlighted.
    A solution via xsl would be fantastic.
    Thanks for your support.
    Sebastian

    You can submit ideas here - http://hendrix.mozilla.org/
    The [https://addons.mozilla.org/firefox/addon/3880/ Add Bookmark Here ²] extension does what you want.

  • When accessing certain links I get the follwoing on a white page: It Works! This does not happen at the link using Explorer

    An example of this is when I clicked on the link for the weather .gov radar site on my bookmark it did not go to the radar site but returned the white pager with the owrs: It Works!
    This has occurred on other sites where I have tried to access a link. I used Explorer and was able to access the site.
    Any thoughts? I have run an antivirus scan to no avail.
    Thank you

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br /><br />
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    *http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Can I open pdf on the web if the link is javascript:viewpipdf(123.pdf)?

    Example: http://www.tntb.gov.tw/core/eng/endownload.php?page=2
    Question: The above website using javascript for download pdf files, how can i config my adobe reader X / Plugin to open it directly?
    Browser : Mozilla Firefox
    Add-on: download statusbar, IE Tab2
    Plugin: Adobe Acrobat 10.0.1.434
    Thanks a lot!!

    I just tried that and its still not working.
    Thanks for the suggestion though :-)

  • Clearing the textfield using javascript

    Good day, How do I clear a textfield when their is an onchange event that happen to my select list using javascript?
    Edited by: Joe Smith on Mar 6, 2011 11:15 PM

    Hi jari, How about when I clone a row the first row will only be null, the rest will not change.. How will I do that?
    this is the code in cloning a row:
    var seq;
    function pad(n)
    var s = '0000' + n;
    return s.substr(s.length-4);
    function updateFields(f)
      var fields = document.getElementsByName(f);
      var j;
      if (fields.length > 0)
        for (j = 0; j < fields.length; j++)
          fields[j].id = f + "_" + pad(j+1);
    function updateInputs()
    updateFields("f01");
    updateFields("f02");
    updateFields("f03");
    updateFields("f04");
    }Edited by: Joe Smith on Mar 7, 2011 5:38 PM

  • After clicking on a link and returning the link used to go grey so i could tell where I had been, now it stays the same. I just updated firefox to 4.0 something, seems like everytime I update firefox I have a lot of small stupid problems.

    When I go to a page with a lot of links firefox used to grey out links as I used them so I could tell which whick links I had used, after upgrading to 4. something this no longer happens the links do NOT change. I'm sure i will hav emor eproblems as everytime I upgrade firefox it changes some of my settings

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Firefox > Preferences > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    See also:
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *https://support.mozilla.org/kb/Images+or+animations+do+not+show

  • Opening an external link using javascript.  Keeping new window in front

    I am displaying a photo from an external link when called upon from my swf.  When the user clicks a button, up pops a corresponding photo in a new browser window.  After the photo window has opened, if the user clicks another button the photo browser will update but its no longer in front.  I know I need to use the focus() command but cannot figure how to incorporate it into my AS3 code.
    var req=new URLRequest();
    function scrollPanePopulate(event:Event){     
         //create the temp variables
         var calledPhoto=pntxml.row[pointindex].PhotoUrl;
         req=pntxml.row[pointindex].PhotoUrl;
         var jscommand:String = "var newwin=window.open('"+req+"','win','height=400,width=600,left=650,top=50,toolbar=no,scrollbars=yes,location=no');";
         var url:URLRequest = new URLRequest("javascript:" + jscommand +"void(0);"); navigateToURL(url, "_self");
    The above code works great but I want to keep the photo window in front when it is refreshed.  Any suggestions?
    thanks in advance...
    -josh

    var req=new URLRequest();
    function scrollPanePopulate(event:Event){    
         //create the temp variables
         var calledPhoto=pntxml.row[pointindex].PhotoUrl;
         req=pntxml.row[pointindex].PhotoUrl;
         var jscommand:String = "var newwin=window.open('"+req+"','win','height=400,width=600,left=650,top=50,toolbar=no,scrollbars=yes,location=no');";
         var url:URLRequest = new URLRequest("javascript:" + jscommand +"void(0);newwin.focus();");
    navigateToURL(url, "_self"); }
    //  p.s.  you should be using externalinterface class.

  • BSP with the link using MVC

    I need to call an another controller from a view using a htmlb:link
    Here is my code for example:
    <htmlb:link   id  = "<%= l_htable-id %>"
                  text = "<%= l_htable-data %>">
                  onClick   = "click">
    Here is my code in method DO_HANDLE_EVENT:
    if htmlb_event is bound and htmlb_event->server_event = 'click'.
          navigation->goto_page( 'temp.do' ).
    endif.
    But it doesn't works! It seems that this event never be catched. I tryed to set a breakpoint in this method and it never called.
    Could you please help me?
    (Sorry for my possible bad English)

    You can try the following.
    I dont know about htmlb:link
    but there is another option u can try.
    u can BSP: Call
    and pass your controller name in URL attribute
    and comp_id.

  • How to validate the phone using Javascript with regularexpression

    Hi ,
    I wanted to validate the phone no with java script regular expression in Sun IDM Xpress code.
    I have written the code like
    <script>
    var bolean = testStr.match(\d{3}-\d{3}-\d{4});
    </script>
    But it not validating and giving the "undefined: illegal character (; line 1)"
    Can any body help me how to validate phone no in the java script regular expression in Sun IDM.
    Thanks in advance.
    Regards,
    Ranjan

    create a javascript rule that include the regular expression validation and call that rule from the filed validation section passing the field value.
    S.

Maybe you are looking for

  • What SSD should i choose for an macbook pro 17inch early 2011?

    i have been hearing great things from the samsung series, and i was going to choose this one http://www.tigerdirect.com/applications/SearchTools/item-details.asp?EdpNo=84666 39&CatId=5300 Also i have another question, will this also help with heating

  • How to post asset using BAPI_ACC_DOCUMENT_POST w/o creating custom OBJ_TYPE

    Hi, I want to post asset together with expense into one document. The first approach is to use BAPI_ACC_DOCUMENT_POST with custom obj_type, like ZBKPF. But when we post using the custom obj_type, we cannot reverse the document using FB08. Is that any

  • PE7: Problem with auto file naming of scanned photos

    I began scanning photos using PE7. PE stored the files in my designated folder. It named the first scan "Image1.jpg." Thereafter, files were named "Image1-nn.jpg." I would finish for the day, and PE would pick up where in left off in file naming for

  • How to do business development?

    Hi, If you've been following my other threads you know that I'm trying to either A) find a new job in Southern California or B) get transferred to the Irvine office of my current company. I want to propose that if they transfer me and if I can't stay

  • How to get Deleted File details from Content DataBase?

    Hi, I have uploaded one pdf document in to SharePoint Document Library. After some days i have removed it. File has removed from Site. Does record available in Content Data Base for the deleted file? Which table should i refer? Thanks & Regards Pooma