Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Getting script error in Visual Web part

$
0
0

Hi,

We are developing Visual Web part in Share point 2010 with scripts using ScriptLink. The scripts are getting loaded successfully and we are getting below syntax error while loading a cross domain script,

Expected Identifier, string or number

We are getting above error in a cross domain script which has an extra camma(,) before closing brace ({).

The script is getting loaded correctly when loaded through normal asp .net application\web site and happens only when loaded via webparts. The sharepoint server had IE8 version and we updagraded to IE 10 but still issue happens.

Could you please let us know some pointers on resolving this error or is it by design that 2010 webparts load cross domain scripts similar to IE7.

Part of script where we get above syntax error:

                            result : response,
                            messageId: data.queueIndex,
                        }

Thanks in advance.


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>