Using jquery.SPServices-0.7.2.js and jquery-1.9.0.js on a sharepoint 2010 server in IE 8 SPServices.SPGetCurrentUser() doesnt seem to work in my environment.
Line 2264 of SPServices-0.7.2.js --> $(thisUserDisp.responseText).find("table.ms-formtable td[id^='SPField']").each(function() {
throws the exception :
Unhandled exception at line 4411, column 2 in http://sgm1dsps07/Javascripts/utilities/jQuery/jquery-1.9.0.js
0x800a139e - Microsoft JScript runtime error: Syntax error, unrecognized expression: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
The Error mesage goes on and on. Its showing me the contents of the userdisp.aspx page
Being as SPGetLastItemId calls SPGetCurrentUser, that breaks too.
It works fine if I switch to jquery-1.7.2.js.
Comments: I was using the regular version, not the minified one. No worries, i'm goiing to use the older jquery
Line 2264 of SPServices-0.7.2.js --> $(thisUserDisp.responseText).find("table.ms-formtable td[id^='SPField']").each(function() {
throws the exception :
Unhandled exception at line 4411, column 2 in http://sgm1dsps07/Javascripts/utilities/jQuery/jquery-1.9.0.js
0x800a139e - Microsoft JScript runtime error: Syntax error, unrecognized expression: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
The Error mesage goes on and on. Its showing me the contents of the userdisp.aspx page
Being as SPGetLastItemId calls SPGetCurrentUser, that breaks too.
It works fine if I switch to jquery-1.7.2.js.
Comments: I was using the regular version, not the minified one. No worries, i'm goiing to use the older jquery