Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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() + '"/>') ;       
       });         
    }); 

</script>   
share|improve this question
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.