Get hyper link from a SharePoint list column
I want to get the hyperlinks from a column of a SharePoint 2010 List.
Right now the code gives me the hyperlink and the description concatenated
together. `
$(xData.responseXML).SPFilterNode("z:row").each(function () {
content = new Object(); //get new object
content.title = $(this).attr("ows_Title");
content.url= $(this).attr("ows_Url");`
The content.url gives me "http://www.example. ca,%20http://www.example.
ca". I have tried split and then the URL doesn't work.
Any help will be greatly appreciated.
Thanks
No comments:
Post a Comment