Disable anchor tags in jsp

Hi, can anyone help me out with this.
I have a tree structure in a jsp displayed using tag library. Each element in the tree is an anchor link.
On click of each link there is some process happening in the background which will take some time.Hence i need to disable all other anchor tags while one anchor link is being processed to prevent the user from clicking on it.
How can this be done?
Thank you.

I don't understand. It seems to me like you've already got the solution right there in your image tag.
if i don't do that the picture can be all sizes Then ... do that ... ??

Similar Messages

  • How to open a doc file using jsp Anchor tag

    when i am trying to open a doc file using a jsp it is opening with out proper alignment.
              how to open a doc file with proper alignment using Anchor Tag in JSp Page
              

    Hello!
    Does some one of you had open a MS word file (.doc) in Java search for a token like [aToken] replace it with another text and then feed it to a stream of save it?
    I want to build a servlet to open a well formatted and rich on media (images) ms word document search for tokens and replace them with information form a web form.
    Any Ideas?
    Thank you in advanced.

  • How to get the anchor tag values in next jsp

    Hey all,
    I have two jsp files.
    in first jsp,
    I am getting the resultset.
    I am setting the resultset to the anchor tag.
    below is the code...
    <a target="_top" rel="contents" rev="contents" class="fordynamiclabel" href="ASCMasterTwo.jsp"><%=rSet.getString(1) %></a></td>
    whenever he click on any anchor tag,
    It will goes to ACSMasterTwo.jsp page for edit the compleate record.
    how to get the anchor tag value in that page...
    Please help me on this.

    You have to pass a parameter. An id is good.
    Of course you have to get an id from somewhere in the result set right?
    <a target="_top" rel="contents" rev="contents" class="fordynamiclabel" href="ASCMasterTwo.jsp?id=<%= rSet.getString("id") %>"><%=rSet.getString(1) %></a></td>Then you call
    request.getParameter("id");
    and look up the values related to that id in the database.

  • Anchor tags are not working on internet explorer when using touch devices

    Hi,
    I have a simple anchor tag like <a href=http://www.google.com></a>
    Using a mouse there is no problem but when I use a touch device (windows 8.1/windows Phone 8.1), all that will happen when people touch it is that the link will be highlighted.
    I don't want to highlight it, I just want the link to open.
    Double clicking the link will zoom in the page. It takes several attempts tapping the link to actually open it... this is VERY frustrating.
    How can I remove this highlighting non-sense?
    I found an article that seems to indicate this was done on purpose:
    http://blogs.msdn.com/b/ie/archive/2013/07/31/ie11-touch-browsing-for-today-s-web-and-beyond.aspx
    It's a total failure if you ask me and it is very frustrating to use my site on a touch device.
    Anyone has any idea on how to make links behave normally?
    Best Regards,
    Peter

    seems that it is something in SharePoint that is causing this behavior
    So you would probably be better off posting in a Sharepoint forum.  They would be more familiar with all the products involved.  This is an example where newsgroup cross-posting would be useful but it does not exist in forums.
    Otherwise, sounds like you are going to have to find the implementation involved and then devise a workaround for it.  Is there a publicly accessible example of the coding used for what you are seeing?  You could use the Developer Tools (or View
    Source) to try to look at it yourself.
    For a guess it may involve Active Scripting.  If the link can be used even if Active Scripting is disabled you could achieve that result simply by changing the security level or zone that the site is regarded with.
    BTW with your example link above I have the opposite problem.  I can't touch it to try to select it without launching it.  Here's a workaround for that:  select a word before the link, use the selection's wheels to extend it to include
    the link, then reduce it to include only the link, then, I can use press and old on the selection without launching the link.  (In fact since I always leave press and hold disabled I used my pen with its right-click barrel button to see the selection's
    menu though if I use my pen's barrel button, I don't need to make the selection to see just a reduced menu which would be sufficient to use the link.)  In any case, I imagine that just as I can do a press and hold on the selected text of
    the link without launching it you may just as easily be able to do a press and hold to see the selection's menu to allow you to launch its link.  
    HTH
    Robert Aldwinckle

  • Error in form submit through netui:anchor tag onClick event

    Hello,
    I am working on a portal application. Below is my jsp code of a simple search screen. The search parameter is customername.
    <netui:form action="searchCustomer" style="form" tagId="myForm">
    <netui:textBox dataSource="{actionForm.customerName}"></netui:textBox>
    <netui:anchor onClick="sayHello(); return false;" styleClass="button" action="searchCustomer" formSubmit="true"> Search</netui:anchor>
    </netui:form>
    I have an onClick event as I want to implement some customer logic on click of the anchor tag.
    function sayHello(){
    // customer implementation here
    document.forms[getNetuiTagName("myForm",this)].method="POST";
    document.forms[getNetuiTagName("myForm",this)].action="/searchCustomer.do";
    document.forms[getNetuiTagName("myForm",this)].submit();
    In the searchCustomer method of the controller, the form has zero parameters. The customerName has null value.
    Can anyone tell me what am I doing wrong here.
    Any help is appreciated.
    Thanks
    Manju

    I also want to add a confirm() dialog before submitting. However, setting the onClick handler overrides the one generated when formSubmit="true". I worked around this by calling the generated function directly:
    <... onClick="if (confirm('[msg]')) { anchor_submit_form(getNetuiTagName('[formName]'), this.href) } return false;">
    Where [msg] is the message to display and [formName] is the name of the form containing the anchor.
    Hope this helps someone.

  • Netui anchor tag in netui:form

    I have some code like following:
    <netui:form action="action1" >
    <netui:anchor action="action2">Check</netui:anchor>
    </netui:form>
    Action1 and action2 willl be finally redirected to the same JSP(for example one.jsp).
    The weird thing is that: according to log output, it seems that one.jsp has been hit twice when user click "check" link.
    Is it possible that when user click "check" link, weblogic not only trigger action2 but also trigger action1? forsubmit attribute is not set to true explicitly for netui:anchor tag.
    Thanks in advance

    hi
    verify from a browser trace tool (e.g. livehttpheaders, fiddler or firebug) how many requests your browser is making. (or you can inspect the code that portal generates in the HTML). Once we have determined whether its the browser making the two requests or something on the server, we can see if there are workarounds.
    regards
    deepak

  • Problem with Anchor tag in windows Chineese XP OS

    Hi ,
    In my application I use an anchor tag to point to save item once page is submitted and reloaded.
    The URL with anchor is generated by the servelet dynmically
    URL will be something like this
    loaclhost:8080/myapp/CartonPlannerLoad?shipCode=996#2
    This works fine in Windows XP English OS.
    however when i ran the application in traditional chinese windows XP version it gives a java script error when the page is loaded.
    English translation of the error in chinese is
    "Wrong: Has not used the jurisdiction formula code"
    When i takeoff the #2(the anchor) and refresh page loads without any errors.
    How can i fix this issue while using the anchor tag.
    Is it due to the charset i have used. The jsp page i am loading consists of several includes. all the pages I have defined content type as follws
    contentType="text/html; charset=iso-8859-1"
    Could you plaese help me to fix this issue.
    Thanks in advance

    Hi ,
    In my application I use an anchor tag to point to save item once page is submitted and reloaded.
    The URL with anchor is generated by the servelet dynmically
    URL will be something like this
    loaclhost:8080/myapp/CartonPlannerLoad?shipCode=996#2
    This works fine in Windows XP English OS.
    however when i ran the application in traditional chinese windows XP version it gives a java script error when the page is loaded.
    English translation of the error in chinese is
    "Wrong: Has not used the jurisdiction formula code"
    When i takeoff the #2(the anchor) and refresh page loads without any errors.
    How can i fix this issue while using the anchor tag.
    Is it due to the charset i have used. The jsp page i am loading consists of several includes. all the pages I have defined content type as follws
    contentType="text/html; charset=iso-8859-1"
    Could you plaese help me to fix this issue.
    Thanks in advance

  • Submitting a form with an anchor tag

    How could I do this? I'm using a self submitting html form with JSP. I want an anchor tag to send some parameters to update the content of the page.

    Hi,
    You can use query string to pass the parameter values to the page.
    Ex:
    firstname and secondname are the two parameter values which you can pass it to the page.
    <ahref=http://website2.com/action?val1=' firstname' & val2='secondname'> Page2</a>
    if you click on the 'Page2' then those values are pass to the corresponding page
    Regards
    Reegan

  • How to use anchor tag in JSFF fragment inside a BTF?

    Hi,
    I have a JSFF fragment as a default activity of my BTF. In this JSFF i have to create a anchor tag that will have a Link to my JSP from where i have to redirect to some other application. The JSP is in my code base. I have put an anchor tag and have linked this to my JSP page present in my code base. When i would run my application and click on this anchor link that i can see on my region thus created, a new window(as desired would open) and
    HTTP 404 would come to me.
    I don't know how to make this link working. Please help.
    Does this have a relation with BTF flow?
    Edited by: Avi on Dec 6, 2012 8:03 AM

    Hi Shay,
    I just gave My Data . The JSP resides in parallel with my JSFF fragments. But still i don't know why this behavior is coming to me.

  • Extending netui Anchor tag

    Has anyone extended netui anchor tag and created custom tag?
    I am considering writing a custom pagination tag extending the anchor tag.
    Appreciate any suggestions ..sample code
    Thanks

    Just need to provide a caveat with extending the 8.1 NetUI JSP tags...
    Unfortunately, the Workshop 8.1 JSP tags did not provide a supported extensibility API. If the 8.1 JSP tags are extended, BEA / Workshop do not make any guarantees about the forward compatibility of these APIs in future releases. A NetUI JSP tag API will be available in the 9.2 GA release of Apache Beehive, which will be included in Workshop 9.2.
    Hope that helps...
    Eddie

  • Anchor tag error, also copy and pasting text comes up "null"

    After the recent update I am receiving anchor tag errors telling me to start with an alphabetic letter, which I was. Also no longer lets me copy and paste text onto a page, instead it says "null". Any ideas on a fix ?

    I don't see a closing </body> tag in your code.  There's an opening tag, but no closing tag, hence unbalanced.
    ^_^

  • Not able to open document using anchor tag in firefox

    Hello Friends,
    I would really need your help in solving this issue.My application is deployed in server machine.
    I'm accessing the application through fire fox. In my application, i have a link where i need to open a document on click of it.
    For this, i am using html anchor tag.
    Eg:
    Test
    where IP is the server machine address and dir is the shared directory.
    It works in IE but didn't work in fire fox. Please help me out on to fix it.
    Cheers,
    Cap

    Try out to open doc using following link, {color:#ff0000}*use 5 back slashes instead of 2*
    {color}Test Link
    once you done the code change, close the browser and open a new browser and try it.
    Edited by: Thagelapally on Jul 17, 2009 6:05 AM

  • How to add anchor tag dynamically on infopath (OOTB task form of workflow .xsn) by jquery -dynamically as i did by below script on newform.aspx where I will read Help title and URL value from list

    on newform.aspx just above the top of cancel button I want to put 1 hyperlink "Help"
    but I want to do this by script/jquery by reading my configuration list where 1 column is TITLE and other is- URL
    Configuration List has 2 columns Title and URLValue
    Title                                    UrlValue
    HelpNewPage                    
    http://url1
    HelpEditPage                      http://url2
    so script should read Title and display "Help"--->1st part on NewForm.aspx/EditForm
    Script should read UrlValue column and on click of help-(display link) the respective url should be open in new window.-->second part
    Please let me know reference code for adding anchor tag dynamically by reading from list
    Help/Reference 
    http://www.sharepointhillbilly.com/Lists/Posts/Post.aspx?ID=5
    I can see hyperlink near cancel button-
    //This block is just placing help link near cancel button- 
    $(document).ready(function() {
        GetHelpLinkFromConfigList();
    var HelpLinkhtml ='<a href="#" text="Help">Help</a>';
    var position =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
    var HelpLinkhtml ='<a href="#" text="Help" onclick="GetHelpLinkFromConfigList();">Help</a>'; 
    var position =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
    var HelpLinkimageButton ='<IMG SRC="../../Style Library/Help.bmp" style="width:35px;"/>'; 
    var position1 =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkimageButton );
    //Rest script
    function GetHelpLinkFromConfigList()
     //The Web Service method we are calling, to read list items we use 'GetListItems'
     var method = "GetListItems";
     //The display name of the list we are reading data from
     var list = "configurationList";
     //We need to identify the fields we want to return. In this instance, we want the Title,Value fields
     //from the Configuration List. You can see here that we are using the internal field names.
     var fieldsToRead = "<ViewFields>"+"<FieldRef Name='Title' />"+"<FieldRef Name='Value' />"+"</ViewFields>";
     //comment
     var query = "<Query>" +
                            "<Where>" +
                                "<Neq>" +
                                    "<FieldRef Name='Title'/><Value Type='Text'>Help</Value>"
    +
                                "</Neq>" +
                            "</Where>" +
                            "<OrderBy>" +
                                "<FieldRef Name='Title'/>" +
                            "</OrderBy>" +
                        "</Query>";
     $().SPServices(
     operation: method,
        async: false,
        listName: list,
        CAMLViewFields: fieldsToRead,
        CAMLQuery: query,
        completefunc: function (xData, Status) {
        $(xData.responseXML).SPFilterNode("z:row").each(function() {
        var displayname = ($(this).attr("ows_Title"));
        var UrlValue = ($(this).attr("ows_Value")).split(",")[0];
        AddRowToSharepointTable(displayname,UrlValue)
    function AddRowToSharepointTable(displayname,UrlValue)
        $("#NDRTable").append("<tr align='Middle'>" +
                                    "<td><a href='" +UrlValue+ "'>+displayname+</a></td>"
    +
                                   "</tr>");
    <table id="NDRTable"></table>
    sudhanshu sharma Do good and cast it into river :)

    Hi,
    From your description, you want to add a help link(read data from other list) into new form page.
    The following code for your reference:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(AddHelpLink, "sp.js");
    function AddHelpLink() {
    var context = new SP.ClientContext.get_current();
    var list= context.get_web().get_lists().getByTitle("configurationList");
    var camlQuery= new SP.CamlQuery();
    camlQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name='Title'/><Value Type='Text'>Help</Value></Eq></Where></Query></View>");
    this.listItems = list.getItems(camlQuery);
    context.load(this.listItems,'Include(Title,URL)');
    context.executeQueryAsync(function(){
    var ListEnumerator = listItems.getEnumerator();
    while(ListEnumerator.moveNext())
    var currentItem = ListEnumerator.get_current();
    var title=currentItem.get_item("Title");
    var url=currentItem.get_item("URL").get_url();
    var HelpLinkhtml ='<a href="'+url+'">'+title+'</a>';
    $("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
    },function(sender,args){
    alert(args.get_message());
    </script>
    Result:
    Best Regards
    Dennis Guo
    TechNet Community Support

  • CS5.5 Phonegap - Anchor Tags Don't Work

    So I made a test Android app using the phonegap template and it seemed to work okay. Now I'm trying to add anchor tags to link a table of contents from the top to text found lower on the page like this:
    <a href="#cq">Clinical Question</a>
    <a id="cq">Clinical Question:</a>
    But I get "ERROR LOADING PAGE" when testing in multi-view and web browser.
    External links work just fine though like:
    <a href ="http://www.adobe.com">Adobe</a><br>
    I'm assuming it has something to do with how the page/site is saved, does anyone have a solution?

    GP Animations wrote:
    So I made a test Android app using the phonegap template and it seemed to work okay. Now I'm trying to add anchor tags to link a table of contents from the top to text found lower on the page like this:
    <a href="#cq">Clinical Question</a>
    <a id="cq">Clinical Question:</a>
    But I get "ERROR LOADING PAGE" when testing in multi-view and web browser.
    That's correct. The jQuery Mobile framework uses IDs to load page blocks in multiple-page files. You cannot link to an ID within an individual page block. See this page in the jQuery Mobile documentation for a detailed explanation: http://jquerymobile.com/demos/1.0a4.1/#docs/pages/docs-pages.html. Confirmation that you can't do what you're trying to achieve is near the bottom of the page.

  • Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through j

    Certainly I realized that Apache Sling JCR Resource Resolver doesn't work for the anchor tags which is been rendered through jquery or javascript.
    e.g.
    In Felix Console , in Apache Sling JCR Resource Resolver configuration I have added following mapping.
    /content/myproject/-/
    So If any anchor tag is there like <a href="/content/myproject/en.html"> click me </a> then it will be mapped to "/en.html" automatically.
    But the problem is there in following scenario.
    I have an anchor tag as follows.
    <a href="#" id="test"> click here </a>
    And I am assigning the href to anchor through JQUERY.
    <script>
    $("#test").attr("href","/content/myproject/en.html");
    </script>
    Ideally this should have been mapped to "/en.html".
    But it is not mapping to "/en.html". It still shows "/content/myproject/en.html".
    How to resolve this.
    Thanks,
    Sai

    In a servlet you have access to the resourceResolver so if you know which attributes contain links then it's relatively easy to apply resourceResolver.map to those links.
    Your challenge is clearly how do you know which attributes are links and which aren't. Its is the same challenge that makes parsing the response and rewriting it on the way out difficult - the JSON doesn't have any semantic meaning so how do identify which attributes require rewriting. There really is no good answer ot that question in my experience - all the options have down sides.
    Create some convention - all attributes matching this pattern X get mapped before being converted to JSON (could be attributes whose name ends in link, or it could a convention applied to the value of the attribute - if the attribute is a string that starts with /content apply the resource resolver mapping. In this case you have train your developers to follow this convention which is the down side.
    Create some configurable list of attribute names that require mapping. This is brittle, requires training and is easy to break.
    Implement a client side version of the resource resolver mapping. It wouldn't be as full proof as server side mapping (because that takes into account but you could make it work for simple logic like stripping of /content/site/en. If ou are just trying to solve the simple version of this issue - stripping off the top of the repository path this might be your best option.
    Not worry about it and set up Apache 301 redirects that catch any long URLs and redirect them to short URLs (so configure apache to look for any URL matching /content/site/en and strip off /content/site/en and do a 301 redirect to the shortened URL. You end up with a lot of extra HTTP request because of all the 301s but it would work (I wouldn't recommend this option - but it is possible).

Maybe you are looking for

  • Java iview htmlb & jco question

    hello all, I am writing an Java iView to pull some data from an R/3 table & displaying that as a LINE chart. I've already got the portion of getting data from R/3 by creating a shim function that returns the table. Now i want to display that using ht

  • Problem Inbound Queue SMQR after execute BUPA_DEL

    Good Day Now, we developing a interface for a customer to import Business Partner (BP) from a non-SAP System in our SAP CRM 2007 System. To validate the functionality of the interface we would like to make any test imports. Well, if we finished an im

  • X131e Virtualization grayed out in BIOS

    Hello, I have purchased my x131e from a retailer here in the United States. I understand the laptop's intended use is for eduction, however, the end user should still have access to most BIOS features. My issue is as follows - I am unable to change a

  • A1533CDMA iPhone,in the next update, IOS7.1, colud you support LET-TDD?

    A1533CDMA iPhone,in the next update, IOS7.1, colud you support LET-TDD?thank you!

  • Laptop won't start up past the flash screen.

    I have a HP G72 laptop, and every time i try to start it the flash screen come up and than turn black and says "insert bootable disk and press any key". I have tryed to use Norton  360 to recover my pc but I get all the way to using  the advanced rec