Jawab How to Attach Jquery to webpart

  • 06 Agustus 2012 15:19
     
     

    Hi,

      How to attach jquery code to page  using content editor webpart .  I am using Sharepointer designer 2010 & don't have access to  masterpage .

    so pls let me know as soon as possible how to use jquery in sharepoint designer. Want to show alert message using jquery.

    Thanks in Advance

    :)

Semua Balasan

  • 06 Agustus 2012 20:47
     
     Jawab

    Hi,

    Without SPD 2010, Modify your page and add web part, click on ‘Media and Content’. Add ‘Content Editor’ web part.

    In the "Editing Tools" – "Format Text" tab, click on "HTML" – "Edit HTML Source". Write your JQuery code in this popup dialog. 

    Here French Interface :

    NicoBzh





  • 07 Agustus 2012 6:18
     
     Jawab Memiliki Kode

    RESOLVED:----------------->

    1. First i have add one content editor webpart to page

    2. then  download thet js file from

    "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"  that site on my desktop

    3. then add this .js file to document library

    4. Provide document library file path link to webpart

    <script type="text/javascript" src="https://ab..xy.CPFDO/DFSDd/stconf/RemoveAddPersonFromGroupCalender/jquery.min.js"></script>
    <SCRIPT type=text/javascript> 
     
    $(document).ready(function()
    {
     alert("jQuery ready");
    }
    )
     
    </SCRIPT>