not getting full string of attribute using IE and SharePoint
I am having trouble getting the full string of an attribute when using IE to use jQuery in a 2010 sharePoint site.
fiddle:
attribute = "action" in the following. In jsfiddle it's ok but on my works website it only brings back the following:
docsethomepage.aspx?ID=71485&List=b0068804-01a5-41a6-953f-b3d3e75b3619&FolderCTID=0x0120D5200022E7569C62963E469B62F73D4190A3B0080400D01D5D9D296D7B459DAB318E3E054F9C&RootFolder=%2Fsites%2Flocalresearch%2FPhoenix%2FProjectManagement%2FInitial%20Others%20PHX%20adfas
Why does the prefix "/sites/localresearch/Phoenix/ProjectManagement/Forms/Initial%20Others%20PHX/" get cut off do you think?
any help is greatly appreciated -dave
code:
$(document).ready(function(){
var str2 = $("#aspnetForm").attr("action");
var str2 = str2.indexOf("Initial");
alert(str2 + " str2")
});
full element with action attribute: