SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My jquery is in PlaceHolderAdditionalPageHead at the AllItems for the List. My list is external list. When I go to the list. Everythings ok. But when I go to the next page it doesn't work. How can I solve it?

Her is my jquery:

    <script type="text/javascript">

    $(document).ready(function () {alert(1);
        $('table[summary="CalisanBilgi"] tr').find('.ms-vb-lastCell').each(function(){
           $(this).html('<img src="http://ahapp/img/image.aspx?s=' + $(this).html() + '"/>') ;       

share|improve this question
up vote 1 down vote accepted

Did you try putting the jQuery code inside a Content Query Web Part on that page?

Usually it is better practice to put the Javascript inside a Text file somewhere in your root site's library, and then reference it from the CQWP. Editing the page head itself will not always work.

share|improve this answer
It worked. I just forgot to <script> tag for js-min link – e.ozmen May 24 '13 at 11:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.