Highlight hyperlink inside JSTL?

Hi,
I am having problems highlighting a hyperlink (onclick) which is placed inside the JSTL tags.
Could someone help me to achieve this inside the JSTL tags.
here is my code:
<c:choose>
         <c:when test="${!e.restricted}">
               <a href="#" class="folderLink" onclick="this.parentNode.parentNode.style.color='blue'; viewDocument('<c:out value="${e.documentId}"/>'<c:out value="${e.documentType}"/></a>
         </c:when>
         <c:otherwise>
              <c:out value="${e.documentType}"/>
         </c:otherwise>
  </c:choose>
.css
.folderLink:visited{color:blue;text-decoration:underline};
{code}
I need to highlight the link after clicking on the link.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Well, since it appears noone else has any ideas, here are some suggestions:
I think the hyperlink tag needs to have either a name or id attribute so you can reference it in javascript.
Example: id="myHyperLink"
Assume the link is in a form tag named myFormTag.
Then in your javascirpt, you reference the hyperlink via document.myFormTag.myHyperLink
From there, you somehow change the color of it via style.
If you still have problems, open the JSP page in a browser and click the menu item to view the source code.
That way, you can see what code the JSTL generated on the client-side.

Similar Messages

  • Editing swfobject.js code so hyperlinks inside the flash widget open in a new window

    0down votefavorite
    I have a flash calendar widget (code shown directly below) and I do not have access to anything other than the compiled .swf file (no access to .fla).
    The widget contains some hyperlinks to other websites, these links are dynamic and changes based on a number of things.
    There is also a corresponding swfobject.js file that is used to add functionality to the flash widget. The swfobject.js code is shown further down this post.
    Currently, the way the code is now, when I click any of the hyperlinks that are available to me in the widget, the destination website that hyperlink takes me to opens in THE SAME PAGE as the flash widget which is a big problem.
    I need to edit the code below so that any hyperlinks that are clicked inside of the flash widget open in a brand new browser window and do not take the user away from the original widget other than opening a new page with new content.
    Because the hyperlinks that are available are always changing, the swfobject code below uses some functions and parameters.
    I am hoping you can show me exactly what code I must insert, and exactly where I must insert it, in order to alter the behavior that happens so that when a user clicks one of the hyperlinks inside the flash widget, so that the content at the other end of the hyperlink opens in a new window, instead of opening in the same window.
    See code below.
    Thank you in advance for any help you can provide
    Flash Widget Code
    <!-- Embedded Calendar --> <div id="activecontent"> <script type="text/javascript" src="swfobject.js"></script> <div id="awccalendar"></div> <script type="text/javascript"> var so = new SWFObject("awc.swf", "awccalendar2", "700", "180", "8", "#ffffff"); so.addVariable('calendarid', '0'); so.addVariable('appurl', ''); // Flash Widget Initial Date should be ddmmyyyy so.addVariable('ldate', '20052014'); so.write('awccalendar'); </script> </div>  <!-- Embedded Calendar -->
    SWFOBJECT.JS CODE
    /** * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * */ if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(

    In that case, I will have no choice but to decompile the .swf to get the .fla because the original .fla is un-obtainable. Unless there is a way to edit the contents of the .swf file without decompiling it.
    I can see the code inside via various decompile tools and it seems that I would need to add the equivalent of <src target=_blank> to some of the lines I have shown below.
    obj_xml.load(appurl + "loadconfig.aspx?calendarid=" + calendarid);  -- need to edit this so it opens in a new window using something similar to target = _blank
    dest_page = appurl + "default.aspx"; -- need to edit this so it opens in a new window using something similar to target = _blank
    I know a lot of decompile tools can get you the code and the .fla but once you edit and re-compile and attempt to replace the original with the new & updated file, the decompiler did not necessarily generate the properly formatted flash pro project file, so compiling it back into an operational .swf often ends in failure.
    Do you know or can you recommend a tool that has a very good track record of re-compiling the decompiled modified.fla into a workable and usable .swf?

  • Is it possible to have multiple hyperlinks inside an interactive button?

    For example I have 5 buttons on a page.
    Each button when clicked reveals a three column text chart.
    In each of the columns there is a different hyperlink.
    It appears that when I convert that chart to a button, so it can be hidden and revealed it loses the text hyperlinks inside the columns.
    Is there a way around this?
    Am I doing something incorrect?
    I'm currently using InDesign CC.
    Thanks.

    You can go to the InfoObject for which you want to create Hierarchy
    Infoobject Change
    Hierarchy Tab -
    Manage Hierarchy -
    Creater Hierarchy in the Popup Window
    You can follow the link which Noor has updated
    Thanks
    Hari

  • How to create hyperlink inside Folio to Viewer library?

    Wanting to add a link inside my folio that when tapped, takes the user into the Apps Viewer Library.
    Example would be a subscription button on an article page inside the folio, when tapped opens up the Viewer library so that the users can see the subscription tile in the upper left-hand corner.
    Food Network magazine has this example - image one: user taps the "Subscribe Today" button. Image two: Users gets redirected back into Viewer library.
    How do I set this hyperlink up?
    Thanks in advance.
    Tom

    One way to do this is to create a button that points to the app's Optional URL Scheme. For example, the DPS Tips URL Scheme is "com.bringhurst.dpstips." When I create a button with a Go To URL action that specifies "com.bringhust.dpstips://" tapping the button opens the app's library. You can see an example of this in DPS Tips > Advanced Folios > Advanced Linking.

  • How do I open hyperlinks inside embedded pdf in a new window?

    I have a pdf that contains hyperlinks to other website. This pdf itself is available as a link on a website. When this pdf is loaded in IE window, and user clicks on any of the links inside this PDF, the link opens in the same window. I want all the links to open in a new window.

    I'm trying to accomplish this same thing and am having a hell of a time finding the right Class, right Methods, and/or right Properties for a solution.  Some classes seem to return obscure errors when I try to create them use the invoke node "launchURL" (the WMPLib.ICore for example).  If I use the Player base class (which MSDS says is the root class and the class that is used when you create an embedded player) I don't get anything.
    What I would like is to progmatically launch Windows Media Player to play a particular video clip in full screen on the secondary monitor.  It seems like this should work:
    But doesn't... any ideas for this?  The C# examples are difficult to understand for me.  Also, the WMP class library is a MESS! (IMHO).  Thanks for your input.

  • Placing a hyperlink inside a label

    What is the best method to place a hyperlink, such as an ADF GoLink, inside an HtmlOutputLabel?
    I have to be able to use the method .setValue() of the HtmlOutputLabel to do so as well because that label changes throughout the time on the page.

    You shouldn't try to put the JButton in the JTextField. A JTextField isn't meant to hold other components.
    Create a JPanel and add the JTextField and the JButton to it.

  • Opening Hyperlinks inside Excel WebAccess webpart in the Same Window

    I was trying to access Excel Web parts hyperlink like below, but this solution is not working for me.
    $(document).ready(function() {
    $(".ewr-sheetcontainer a").each(function(){
    $(this).attr("onclick","openLink(this)");
    function openLink(Atagproperties)
    Atagproperties.target = "_self";
    Problem is .ewr-sheetcontainer has role="Presentation" atttribute,
    which says it will delete the contents from accessible tree. 
    Is this the reason it is not working for me? or Am I missing anything?
    Appreciate your help on this. Thanks, Maddy

    Hi,
    According to your description, my understanding is that you want to set the hyperlink in Excel Access Web Part opening in the same window.
    As the excel access web part is dynamic loading after the page load, so when the page has loaded, the excel web part element has not been loaded completely.
    I suggest you can use setInterval method to run function circularly until the excel access web part has loaded in the page.
    Here is a code snippet for your reference:
    <script src="http://code.jquery.com/jquery-1.10.2.js" type="text/javascript"></script>
    <script type="text/javascript">
    var $a;
    var interval;
    $(document).ready(function(){
    interval = setInterval(ready, 1000);
    function ready()
    $a = $('div.cv-nwl a');
    if($a.html()!=null)
    $a.attr('target','_self');
    clearInterval(interval);
    </script>
    Thanks
    Best Regards,
    Jerry Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • UNABLE TO OPEN AN HYPERLINK INSIDE OF A WEB PDF FILE OPENED INSIDE OF IE 11

    Hello, We have gone to the website
    http://www.salonrenovationmaisonneuve.com/en/exposants
    and download the file to open Inside of IE. Once the file is open, none of the links either e-mail or web site works. However, if we open the same file Inside of Google Chrome, the links work. So, we want to know if we are missing something in IE or a plugin.
    The PDF file opens with no problem but the links are not enabled. The file works in an Apple Machine and Google Chrome. However, if we download the file physically inside of the computer and then open the file with Adobe Reader, the links all work! Any ideas
    how to solve this issue? Thanks Miguel Moreno
    Miguel A. Moreno Alfa Logos inc. Tel. 514-253-2548

    Any ideas how to solve this issue?
    Try using Protected Mode Off.  Then you will be at the same level of security that those other programs are running at.  You could also try elevating the iexplore.exe task.  That would turn off Protected Mode in that task automatically but then
    you would be running also with Administrator level authority which might be excessive.
    Robert Aldwinckle

  • Hyperlink inside a scrollpane?

    Hey guys,.
                   Ok Ive been looking into this for two days and really need the help! I need the button to link to an external website
    I have my scrollpane on the stage, I have created the mc and exported it and linked it to the scrollpane, I have created a button on layer 1 inside the mc linked to the scrollpane and I have created a 2nd layer for as3. Below is the AS3 that I have used. When I export the mc to view the scrollpane everything works apart from the buttons itself. I can see everything but the buttons wont link to the webpage.
    AS3
    import flash.net.URLRequest;
    btn1.addEventListener(MouseEvent.CLICK, goDesignSite);
    function goDesignSite(Event:MouseEvent):void
    var DesignURL:URLRequest = new URLRequest("http://www.krdesign.ie/html");
    navigateToURL.(DesignSiteURL);
    Any help would be greatly appreciated!!!
    Gary

    import flash.net.URLRequest;
    btn1.addEventListener(MouseEvent.CLICK, goDesignSite);
    function goDesignSite(Event:MouseEvent):void
    var DesignURL:URLRequest = new URLRequest("http://www.krdesign.ie");
    navigateToURL.(DesignURL);

  • How to highlight hyperlink destinations?

    I created a button in inDesign and once a user clicks it, it goes to a paragraph where I have inserted a Text Anchor. Since there are several other text blocks (paragraphs) on the page I layed out, is there anyway to highlight the paragraph where the Text Anchor is? I want users to know exactlty where to start reading.
    If this is possible, besides highlighting, is there any way to have a graphic element like a small red dor or arrow to appear next to the Text Anchored text block?
    Thank you for any help!
    Best,
    John

    Your best bet would be to view the text in the Story Editor. Choose Edit > Edit in Story Editor. Another window will open which just shows the text of the current story. The text anchor shows as a little target (circled below in the Story Editor window). There is a much more subtle indicator if you choose Type > Show Hidden Characters (the : [colon] in the same location in the normal dispay of the text.

  • Automatic hyperlinks inside a text block

    hi,
    I'm doing page with multiple pop-ups that each contain an information paragraph with adress, phone numbers and email adresses...
    Is it possible to have all email adresses automatically converted to hyperlinks??
    thanks, j

    Another option is to use a reg expression to detect static email references and filter them out (ie find a match) among target selector; then replace it with a live email vesion.
    http://www.joe-stevens.com/2010/02/18/convert-all-static-text-email-addresses-to-mailto-li nks-using-jquery/
    So as per example in the above link reference, your solution would be something like this (place in compositionReady event handler
    //////// copy to compositionReady /////////
    var regEx = /(\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)/;
        $("div").filter(function() {
            return $(this).html().match(regEx);
        }).each(function() {
            $(this).html($(this).html().replace(regEx, "<a href=\"$1mailto:$1\">$1</a>"));
    //////////end copy//////////////////
    Note - the only change I made to the orginal authors script is the element selector reference. The default tag selector in Edge Animate is div so that is what I used.
    If you have other tag slectors to filter from you will need to chain it into the matched selects.
    hth
    Darrell

  • JSTL inside of single quotes

    Very strange occurrence here. I'm pretty sure it must be something to do with server set up, but here goes.
    I have the following code.
    <li><a href="" onClick="javascript:window.location='${pageContext.request.contextPath}/logOut.do';return false;">Logout</a></li></ul>This works just fine on my development environment (RAD 6.0) and in production. I'm going on a long Vacation and I was making sure another developer was able to support it while I'm gone. We got everything to work on his computer except he wasn't able to log out and wasn't able to do a few other things. I was under the impression we had identical environments, and I've check my project into source control and he checked it out, so all the same jars and libraries should exist.
    Turns out the problem is anytime there is EL inside a single quote (not counting single quotes inside JSTL tags), it isn't being recognized as EL. The source code is spitting out the ${...}
    the places that have el like <td>${data}</td> work just fine.
    My only guess would be something with the server settings.. but I don't know of anything that could cause this.
    Anyone have any ideas?

    well, we narrowed it down to a problem on his local 6.0 server. If he creates an ear file it deploys just fine to our test and QA environment.. so I would image the same would be true for Production. I can live with him not being able to double check that the logout functionality works on the off chance that he has to do any work on the app in the next 11 days.
    Just means I need to make sure he is at the top of the list on upgrading to Rad 7.0 and using a 6.1 server instead of 6.0, and I guess need to make sure he has the latest fix packs and such installed.

  • Hyperlinks won't work when copied from h to v layout

    hi there, just created a dps folio with lots of hyperlinks (InDesign CS6 everything updated to the latest version).
    First in the h version I put a rectangle above the piece of content I wish to be clickable, choose 'hyperlinks' and put the link in it then inside the folio overlays I make sure 'open in folio' is selected. Second I copied the rectangle to the v version of the layout, resize it so it's covering the right content. Inside the hyperlinks panel I'll find the links, sometimes when the rectangle is selected the link shows up darkened, but most of the time when I select the copied rectangle nothing changes inside the hyperlinks-links panel. In that case I selected the rectangle and clicked again on the hyperlink so I think it's 'bind' again.
    Testing the folio on the iPad everything works fine in the horizontal version, but when i try the vertical pages not 1 link is working.
    When re-ensure the hyperlinks are present in the v version, I noticed that clicking on the rectangles some of them do not highlight any hyperlink but others do and none of both work on the iPad. Strange is also when I click a rectangle who does not highlight any hyperlink and I then select (apply??) the hyperlink inside the hyperlinks panel to 'bind' both together the document would not let me save the document as if there's nothing changed on it..
    Is this a bug or what am I doing wrong?
    any hints and tips welcome ;-)
    I've just deleted the hyperlinks overlays and tried with buttons overlay and 'go to url'. That seems to works on both direction.

    Thanks for the prompt reply.
    I do not manage the group policy and I'll have it checked. One question though, if it is the policy then would it not affect Excel 2003 as well. When I use Excel 2003, I see buttons in toolbar, using which I convert excel file to pdf and first thing it does is scans for various things ( Hyperlinks is one of them ).
    When I tried with excel 2007,  I can convert excel file to PDF by selecting print option and selecting Adobe there. It converts the file but the hyper links won't work.
    One thing I noticed that using the pdf conversion buttons in toolbar in excel will convert hyperlinks too.
    My problem here is that I do not see Adobe Acrobat converstion buttons in Excel 2007.

  • Subject:  How to code double-click to launch hyperlink in AppleScripts

    Subject:  How to code a mouse double-click to launch a hyperlink in a web site  from inside AppleScripts
    Hello,
    I am trying to code my repetitive tasks.  I log into a destination web site and to gather information on a specific stock ticker, forexample APPl.
    My existing code works successfully up to the point o fwhen I locate a "view" hyperlink I wish to run i.e.... double click on the hyperlink with the mouse.
    I have been surfing the web, books, etc trying to figure out how to send  click click as it were as keystrokes to launch the hyperlink.
    I am unable to locate the information I need.  I cannotbe the first person to launch a script that searches for the "generic" target and once the desired target is highlighted, I wish to launch the hyperlink that it has successfully located.  The finder dialogue appears and successfully finds several matches for the <target>.   I enter keystroke enter once, to get to the specific hyperlink I want to launch but can not figure out how to pass"click" "click"  or "dblclick" to the website hyperlink in AppleScript to automate this relative task, that will ultimatley launch the hyperlink sending me to the next web site in a PDF format that displays info I want to access.
    If you would please help me to pass the desired mousebutton double click that will launch the hyperlink while inside theAppleScript.
    Many thanks in advance for a sucessful resolution.
    Example code if I am not clear in my explanation above.
    tell application"Safari"
             activate
             make new document
             setURL of document offirst window to "https://store.apple.com/us"
             delay 2
             tellapplication "System Events"
                      tellapplication process"Safari"
                               delay 2
                               keystroke "f" using {command down}
                               delay 2
                               keystroke"MacBook Air"
                               keystroke (ASCIIcharacter 13)
                               --Nowthat I have found the 3 matches of "MacBookAir"
                               --I Want to select and launch the second match of"MacBook Air"
                               -- How can I  send dblclick to the hyperlink (secondmatch of "MacBook Air") which is highlighted to launch the hyperlink?
                           --How do I send click click to be passed to thehyperlink here in the AppleScript
                      endtell
             endtell
    end tell

    Why not try the sample script I posted and see why I need the doublle click to launch the hyperlink.
    I have tried your sample script and consider myself extremely lucky to have found a way to click (just once) the highlighted hyperlink after many trials and errors :
    tell application "Safari"
        activate
        make new document
        set URL of document of first window to "https://store.apple.com/us"
        delay 2
        tell application "System Events" to tell process "Safari"
            keystroke "f" using {command down}
            delay 2
            keystroke "MacBook Air"
            keystroke (ASCII character 13)
            delay 2
            click at position of window 1 -- the yellow highlight rectangle, not the Safari window
        end tell
    end tell
    I totally agree with Camelot when he says that “it's incredibly difficult to drive web pages via UI actions”. The above solution might work only with a few web pages.

  • Why is it not possible to highlite text inside every PDF?

    Hey guys,
    Does anybody know why I cannot highlight text inside a few PDFs?
    I know already the following:
    If you scan a document and save it as a PDF, it is normally an ordinary picture and therefore you cannot highlight anything. However, I can highlight text inside some scanned PDFs. I assume that somebody (who and how?) used some sort of OCR software. If that is the case, Adobe Reader recognizes the “picture” as text and you can mark easily. So far so good.
    The questions are: Who has to enable OCR scanning? Does Adobe Reader itself has a feature for OCR scanning? If I got a document, which is not yet “OCR scanned”, is there a possibility for me to enable OCR and therefore highlight the text afterwards?
    Thanks in advance for your help (and excuse any language mistakes)!
    Julian

    Adobe Reader can't perform OCR. Adobe Acrobat has this feature.

Maybe you are looking for

  • Aggregation function for field in ALV Webdynpro ABAP

    Dear all, Can I create aggregation function on one field of ALV WDA which that is currency type field and then display the result based on currency key field? i've tried using code as shown below   lo_wd_field = lo_model->if_salv_wd_field_settings~ge

  • I Get an error every time I try to update Windows 8.1 or update Defender (EXE On top "Class not Registered")

    I think my lap top has a lot more problems, then the sun has Hot spots! :) (not that I am down playing any one's situation, nor want to sound cynical or Condescending). Though many of my issues have been resolved through a LOT of time, tech support a

  • An error occurred applying the changes to the Distributor?

    I'm trying to create a new Oracle publisher but I always get the following error. I already dropped the old publisher using exec sp_dropdistpublisher @publisher='old'. (However, the dropping get errors now (http://social.msdn.microsoft.com/Forums/en-

  • Export itunes playlist on SD card

    Hi, I want to export a playlist from itunes on to an SD card. Is there a way to do this (other than drag&drop or Copy/Paste) so that I can keep the order in which the tracks are organised on my itunes playlist?

  • Character mode incompatibility.

    Hi everybody, i had a problem while running a report. Rep-1219 occured during report execution. After looking in the help all we could manage to note was it is because of some character mode of creating the report. It also mentioned about the size of