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

I have a list and I would like to have a link on each item (dynamic) that I can click to insert some data to another list.

What I'm after is to get some data when a user clicks an item. (Kind of to track when they have read an item)

I have been trying to use SPServices but keep getting error.

i.replace is not a function
[Break On This Error]   


This is what i'm using:

<script type="text/javascript" src="/Jquery/jquery-1.6.2.min.js"></script>

<script type="text/javascript" src="/Jquery/jquery.SPServices-0.6.2.min.js"></script>

    $(document).ready(function() { 
CreateNewItem(subject, message); 

function CreateNewItem(subject, message) { 
 operation: "UpdateListItems", 
 async: false, 
 batchCmd: "New", 
 listName: "TheOtherLIST", 
 valuepairs: [["Title", subject], ["Message", message]], 
 completefunc: function(xData, Status) { 
share|improve this question
I did get it working. But i can't insert dates.What format does it need to be to insert dates? Thanks in Advance –  naijacoder Jan 12 '12 at 7:40
I believe using UTC time format is the preferred method, yyyy-mm-ddThh:mm:ssZ. –  PirateEric Jan 12 '12 at 13:28
Thanks PirateEric This is what i'm trying to apss "2012-01-13T15:08:38Z" but its not working –  naijacoder Jan 13 '12 at 4:09

Your Answer


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

Browse other questions tagged or ask your own question.