How to implement this Java Script?

Hello,
I have this script to remove the link from titles of web parts.  I am new to SharePoint 2013 development. I am not sure where to put it. Not sure what file to put it and how to implement it.  How can ensure this code gets run on pages through out
my SharePoint 2013 site.
jQuery(document).ready(function () {
       $('a').filter("[href='###']").each(function () {
        $(this).replaceWith($(this).html());
Reference
https://expectedexception.wordpress.com/2012/01/30/how-to-remove-the-list-view-web-part-title-bar-link/
Paul

Get the page Url from the website and go to Sharepoint Designer and browse the page and add the script within a scritp tag <script>jQuery(document).ready(function
       $('a').filter("[href='###']").each(function () {
        $(this).replaceWith($(this).html());
 });</script>
how to open a site in SP Designer:
https://support.office.com/en-ie/article/Open-a-SharePoint-site-94d33d70-3f07-4a8e-b5b5-1137a9c36e74
another option is to find the global file that contain the scripts and add it as a method there. You can check these files by viewing source of the page.
note also that the Jquery reference is needed for this code to execute.
Fouad Roumieh

Similar Messages

  • How to Use the JAVA SCRIPT code in .htm page of the component

    Hi .
    In my requirement i have to use Java Script Function in .htm code ..how to use the java script code and functions in .htm???
    thank you
    B.Mani

    Check this document  [Arun's Blog|http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebClientUI-TalkingwithJava+Script]
    Regards
    Kavindra

  • How to access a JAVA Script variable in JSP Code

    How to access a JAVA Script variable in JSP Code. I have been unable todo this.
    Plz Suggest a way.
    Thanks
    Soumya

    try to do this code
    String s=request.getParameter("javascriptvariablename");

  • How to call a java script in while eventprocessing?

    hi friends,
    How to call a java script from an event.
    when i click a button, i want to display a message in IE.
    For ex: BTN_CAN,
    When i click on this in IE i want show a message like "clicked on cancelled".
    how can i do this.....
    in javascript WINDOW.ALERT i am trying....
    Regards,
    Shankar.

    you can do some thing like this...
    < % @  pa g e la ng uag  e="a b ap" %>
    < % @ e xte n sion name="htmlb" prefix="h tm l b"  %  >
    <  h t  m l b:co  nt e nt d es ign="design2 00  3"  >
      <  ht m lb:page title=" "    >
        <  h tm lb :for m  >
           < h t  mlb:textVi ew text   = "Hello World!"
                          des  ign = "EMPHASIZED" />
          < ht  m lb  :bu  tton text          = "Press Me"
                         on  Clie  ntC lick = "al ert(' H ell  w or l d')"  / >
        <  / h t mlb  :for m >
      < / ht mlb :pa g e >
    <   / htm lb:co nt e nt >
    Edited by: Vijay Babu Dudla on Oct 6, 2008 7:20 AM

  • How to remove a java script pop up

    Hi,
    I imported a robohelp document from another company and i am
    catering it to my company's needs. The problem is they have popups
    which refer to .bmp and it is in java script. If i highlight the
    word which has the pop up and remove the popup and then highlight
    the normal word again and refer it to my topic in the project
    manger; it still refers to their image and not mine. It is strange
    but true. I don't know how to remove the java script cos each time
    i hover over the highlighted text there are 2 red squares on the
    left and right hand side of the word highlighted which i want to
    change from their image to mine.
    Any help would be much appreciated .
    Thanks,
    Ramya

    please take a look at this
    //--></script></robohelp>
    on the <b style="font-weight: normal;">Environmental
    Consequence</b> window
    captures and displays information that you reported to a
    governmental
    agency, police, rescue center, or internal company sources.
    </p>
    <div class=droptext id=POPUP286607275 x-ss-type=dropdown
    style="display: none;">
    <p class=Graphic style="margin-left: 0in;"><img
    src="agency_notification_tab.bmp"
    x-maintain-ratio=TRUE class=img_whs2 style="width: 1108px;
    height: 120px; border-style: none; border-style: none;"
    width=1108 height=120 border=0></p>
    </div>
    <p class=Body>The following is a description of some of
    the fields that
    display on the <b style="font-weight:
    normal;">Agency Notification</b> tab:</p>
    <ul class=whs3 style="list-style: disc;" type=disc>
    <li class=p-BulletedList1><p
    class=BulletedList1><b style="font-weight: bold;">Reported
    By</b> - Person who reported the incident to an agency
    or organization.</p></li>
    <li class=p-BulletedList1><p
    class=BulletedList1><b style="font-weight: bold;">Agencies
    Notified</b> - Agencies or organizations notified
    about the incident.</p></li>
    <li class=p-BulletedList1><p
    class=BulletedList1><b style="font-weight:
    bold;">Contact</b>
    - Contact person at the notified agency or
    organization.</p></li>
    <li class=p-BulletedList1><p
    class=BulletedList1><b style="font-weight: bold;">Notify
    Date</b> - Date the agency was
    notified.</p></li>
    <li class=p-BulletedList1><p
    class=BulletedList1><span style="font-weight:
    bold;">Comment/Report
    Number</span> - This field can be used to record any
    comments, notes,
    agency report/case numbers associated with the agency
    notification. </p></li>
    </ul>
    <p class=TableText><a href="javascript:void(0);"
    onClick="var e; if (parseInt(navigator.appVersion)>=4){e=event;}
    if (parseInt(navigator.appVersion) >=2 &amp;&amp;
    typeof(PopupMenu_Invoke) == 'function')
    PopupMenu_Invoke(e,'','Action
    Buttons','../../03_Getting_Started_files/Action_Buttons.htm','Adding
    a Row','../../03_Getting_Started_files/Adding_Row.htm','Adding Text
    Entries','../../03_Getting_Started_files/Adding_Text_Entries.htm','Deleting
    a
    Row','../../03_Getting_Started_files/Deleting_Rows.htm','Environmental
    Consequence
    Record','EC_Environmental_Consequence_Record.htm','Searching by
    Personnel
    ID','../../03_Getting_Started_files/Searching_by_Personnel_ID.htm','Selecting
    the
    Time','../../03_Getting_Started_files/Selecting_Time.htm');return
    false"
    title="Related Topics" id=a2 style="position:
    relative;"><img src="../../ss_btn_related_topics1.gif"
    alt="Related Topics" style="width: 81px; height: 17px;
    border-style: none; border-style: none;"
    width=81 height=17
    border=0></a><robohelp><script
    type="text/javascript"
    language=JavaScript1.2><!--
    InitEffects('a2');
    //--></script></robohelp>
    </p>
    <script language=javascript1.2
    type="text/javascript"><!--
    kadovTextPopupInit('a1','POPUP286607275');
    //--></script>
    if you could paste this code on your word doc and try to
    search for .bmp it exactly shows where it is used i tried removing
    that line but it acted strange as even when i added a pop up to a
    word it does not show anything in the view mode.

  • How & where to use Java script to create new button in object detail page

    Hi All,
    I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
    Thanks in advance.
    Regards,
    Manish

    Any related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
    If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
    Admin --> Application Customization --> Contact -->Contact Web Applet
    Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
    Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
    Cheers!
    Royston

  • How to call a java script method to open a saveAS dialog box in MAU .

    Hi All,
    I am Enhancing the MAU application.
    I want a link in my order detail page , say open a link
    When I click on that link a save as dislog box should open.
    With a normal jsp and java script it can be done easily , but not sure about the coding to be included in MAU enhancement.
    Can any one  help me regarding this java script coding to be inclded in MAU.
    Thanks and Regards
    Neha Mahanty

    Hi Neha,
    have a look into the enhancement documents of MAM / MAU. There you can see that the documents (JSP and controller) have to be enhanced in a way, that you add a Z_..... module to your project for each changed file. (In Simple Words)
    Because this is the case, you can enhance your JSP with the stuff you like as long as you do it in the Z....JSP page and then it should be straight forward - as you said.
    Hope that helps!
    Regards,
    Oliver

  • How to call a java script?

    Hi,
    I m new to Indesign and also to MAC OS...
    I ve tried the sdk samples of InDesign CS3 on MAC OS. It works well.
    I m making changes to one of the samples (BasicPanel). I ve added few check boxes and buttons in it. I donno where to give the code for button(in the panel) event/action?
    I also need to know "how to call a java script from InDesign CS3 SDK ?"...
    I have the Scripts ready... Can someone provide the code used to call JS...
    Someone pls help me.....
    Thank You...

            Here s the code to call a Javascript:
            IDFile scriptFile;
            FileUtils::GetAppInstallationFolder(&scriptFile);                    //application folder path
            FileUtils::AppendPath(&scriptFile, PMString("Scripts", -1, PMString::kNoTranslate));               
            FileUtils::AppendPath(&scriptFile, PMString("Scripts Panel", -1, PMString::kNoTranslate));
            //inside the scripts panel, append path of the folder in which ur script is present.
            //Suppose, ScriptsPanel->NewFolder->Link.jsx
            FileUtils::AppendPath(&scriptFile, PMString("NewFolder", -1, PMString::kNoTranslate)); 
            FileUtils::AppendPath(&scriptFile, PMString("Link.jsx", -1, PMString::kNoTranslate));
            InterfacePtr<IScriptRunner>scriptRunner(Utils<IScriptUtils>()->QueryScriptRunner(scriptFi le));
            bool filestatus=scriptRunner->CanHandleFile(scriptFile);
            if(filestatus==1)
                scriptRunner->RunFile(scriptFile,kTrue,kFalse);
    Regards,
    tnhems

  • How to implement this in Oracle Apps 11i

    Hello Friends
    I am working as a consultant for a manufacturing company.
    They have a format for charging Excise and Sales tax on their products (example below). I dont know how to implement this using oracle apps. Please help me ASAP.
    eg.
    Product A:
    MRP = Rs. 100
    Assessable Value (i.e. the value at which I have contract with the Government to pay Excise Duty) = 60% of MRP = Rs. 60 in this case.
    Excise Duty = 16% of AV =0.16*60 = Rs. 9.6
    Now, let’s suppose I am selling my product to a dealer at 30% discount.
    Therefore, Sale Price = 70% of MRP = Rs. 70
    Sales Tax = 4% of Sale Price = 0.04*70 = 2.8
    Therefore, total revenue from the deal = 70-9.6-2.8 = Rs. 57.6

    you can use Advance Pricing or creating discount or attiribute while calculating.
    this is not much complex, possible even with Advance Pricing too. Thanks
    Shiv

  • How to implement this code in labview?

    How do implement this pseudo code in labview? Please keep in mind "a" and "c" in the code below ARE VARIABLES
    for i =0 to i=maxvalue
           if i <= a 
               output = output2
           else if i > a AND i<=c
               output = output2
           else if i < c 
               output = output3
           else i = d
               output = output4
    I understance i can use a case structures and modify the label, but i do not know how to make the label dependent on a variable value. 
    Thanks 

    Try an array of boudaries and use threshold array. See this old example:
    Now just iterate over an array of values using a FOR loop.
    LabVIEW Champion . Do more with less code and in less time .

  • How to implement this attribute ?

    Hi,
    I've this problem.
    In our application to control healthcare expense I've implemented a cube with 6 dimensions. (here for who knows Italian : http://www.oracle.com/global/it/customers/profiles/profile_77.html )
    The biggest dimension is the "patient" one, with 1.500.000 units at 5th level, grouped in geographic aggregates, until the entire city at highest level.
    Now customers wants to have the possibility to select patiens with chronic disease from these. There are about 500 kinds of chronic diseases.
    Every patient can have no one, one, or (and this is the problem) more then one of these chronic disease.
    How to try to implement this? as a new dimensions or as an attribute ?
    I've thought that best way is to introduce a new (chronic diseases) dimension, to have a way to select one or more of these diseases at all levels of patient dimension.
    I'm asking how to solve the problem that a single patien can also have more than one disease.
    Is there any way to implement this ?

    thanks to everyone for the answers
    I've some questions.
    to olapworld:
    have you any sample code to show me how to implement the dimensionalized valueset and the customizations needed ??
    to scott:
    I think I'm not understanding your suggestion:
    my target is to add the "ilnesses" selection to other ones. The most important cube of my applications analyze
    healthcare expenses from six dimensions. Customer wants analyze cube "adding" a way to select only "ilnesses" patients and elvaluate their expense.
    I'm in doubt becouse a patient can also have more then one ilness, so I can't simply add a "ilnesses" dimensions to the cube and mapping it to an "ilness_id" in the fact table.
    How can the two dimensioned cube to help me in this ?
    to Rafalm1:
    in any case, implementing Count(Distinct patient) would be useful for me, to have a way to count the number of patients who had a healthcae assistence. Can you suggest me how to implement this ?

  • How to implement this aggregate logic at target column in odi inteface mapp

    sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)
    how to implement this aggregate logic at target column in odi inteface mappings

    Hi
    if you don't want to aggregate try to define a user function
    analytic_sum($(value))
    implémented by
    sum($(value))
    after that
    replace your
    sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)
    by
    analytic_sum(NOTICES) over ( partition by property order by RELAVANTDATE range between interval '30' day preceding and current row)

  • How to Enable Custom Java Scripts for forms in Planning 11.1.2.2

    I am working on Planning 11.1.2.2 right now.
    Planning admin guide says, there is no explicit requirement to enable java Script for planning forms.
    I set simple alert to see text "Hello World" in function validateForm() function in custom/validateData.js file - to see and test that alert when I save data for my selected application/form.
    Closed javascript file and workspace, and planning application web page. Since I have not to do anything new to enable this java script alert, I opened that form and saved data to see if I can see my alert.. I got no alert, except "data are saved".
    Has anything changed since last version? Am I missing something? Or, do I need to recycle services to get this alert?
    thanks in advance.

    Thanks guys, for your quick replies..!
    Not sure what I missed, but I still have a hard time finding my "Hello World" alert.
    What I did, is here.
    a. Cleared all cookies and temp files from IE.
    b. Updated validateData.js file from ear / war files using 7-zip program at given path from your link.
    c. Stopped EPM services
    d. Dropped tmp folder.
    e. Started EPM services and let system deploy ear file (with my java script code).
    All services are up. I can see EAR file deployed and java script file ValidateData.js has all my changes in new tmp folder now.
    I am able to open my application and form.
    But, my "Hello World" alert is still not appearing. Form is saved and saw message as usual.
    One exception I noticed in my path. I have ....user_projects\domains\EPMSystem\servers\EPMServer0\.... in place of ....user_projects\domains\EPMSystem\servers\Planning_0\.... in my path. Planning_0 is replaced by EPMServer0 in this version. Rest is all same.
    Any clue? thanks in advance,

  • HT1338 how can i update java script

    how can we update java script on our mac book?

    Apple supplies their own version of Java.
    Try Software Update.

  • How I can play java script game

    Hello,how I can use java script games, such a chess

    Go here: http://htmlchess.sourceforge.net/demo/example.html or http://valil.com/chess/chess_include.html on your iPad.
    Those JavaScript chess games work fine on the iPad. There are others if you Google for "Javascript chess game", but as PogoPossum said, you'll find better ones in the AppStore.

Maybe you are looking for

  • Any way to see ICONS in Open and Close Dialog boxes?

    Is there any way to see ICONS in Open and Close Dialog boxes, instead of just lists of items names? I know you can preview one at a time, but I'd love to see all my artwork as picture icons, just as you can in a finder window. Windows does this, but

  • Voice Memos will not play through Home Sharing on other devices.

    I have synced my voice memos to my Apple library on my Mac Mini and can listen to them on that device with no problem. However, when I use my iPad or MacBook or Air to play the memos using my Home Sharing the voice memos will not play on the device.

  • CAN'T RENAME PICTURE IN N97

    Hi friends, CAN'T RENAME PICTURE IN N97. I have recently bought a N97 (I have been using a N73 Music) and need help for this problem - After taking a still image / video (& before closing the camera cover - there is a option to rename it - max 31 to

  • Can't archive nexus 5010 configs (LMS 3.2)

    Using LMS 3.2 I can't archive configs from our Nexus 5010 ( 4.2(1)N1(1) ) devices . I have installed the   necessary device package Nexus.RME431.v2-4.zip. Following error occures: *** Device Details for                          gf02na50050p          

  • LSMW error message during "Start Idoc generation"

    Hi , I am getting error message "'/tmp/YS.lsmw.conv' File Has Not Been Accepted for Processing" during the step "Start Idoc generation" in transaction LSMW. Please help to solve this issue. Thanks & regards, Yogita