Skip to main content
added tag
Link
Hank
  • 51
  • 5
added tag
Link
Hank
  • 51
  • 5
deleted 32 characters in body
Source Link
Mike
  • 12.2k
  • 8
  • 42
  • 64

I have an issue with Javascript errors (Object Expected) in normal mode while it works in Edit mode. Its failing on the last line shown below.

$(document).ready(function() { updateListItem(); });

function updateListItem() {

var siteUrl = ‘/sites2/sppwgrqy/DashboardTest/’; alert(‘now to get siteUrl’ + siteUrl );

var clientContext = new SP.ClientContext(siteUrl ); //fails here

$(document).ready(function() { updateListItem(); });

function updateListItem() {

var siteUrl = ‘/sites2/sppwgrqy/DashboardTest/’; alert(‘now to get siteUrl’ + siteUrl );

var clientContext = new SP.ClientContext(siteUrl ); //fails here

No hidden components. works fine in Edit mode. I upgraded to jquery 1.8.3 and then 1.9.0 with no change.

Has anyone seen this issue get resolved?

Thanks a bunch.

I have an issue with Javascript errors (Object Expected) in normal mode while it works in Edit mode. Its failing on the last line shown below.

$(document).ready(function() { updateListItem(); });

function updateListItem() {

var siteUrl = ‘/sites2/sppwgrqy/DashboardTest/’; alert(‘now to get siteUrl’ + siteUrl );

var clientContext = new SP.ClientContext(siteUrl ); //fails here

No hidden components. works fine in Edit mode. I upgraded to jquery 1.8.3 and then 1.9.0 with no change.

Has anyone seen this issue get resolved?

Thanks a bunch.

I have an issue with Javascript errors (Object Expected) in normal mode while it works in Edit mode. Its failing on the last line shown below.

$(document).ready(function() { updateListItem(); });

function updateListItem() {

var siteUrl = ‘/sites2/sppwgrqy/DashboardTest/’; alert(‘now to get siteUrl’ + siteUrl );

var clientContext = new SP.ClientContext(siteUrl ); //fails here

No hidden components. works fine in Edit mode. I upgraded to jquery 1.8.3 and then 1.9.0 with no change.

Source Link
Hank
  • 51
  • 5
Loading