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

Using JavaScript in SharePoint 2010

$
0
0
I have an ASPX page using C# contained in a PageViewer Web Part in SharePoint 2010.  I have JavaScript used in the page that works when I run the page alone in IE 9, however when contained in a PageViewer Web Part, the JavaScript on the page does not work.  I have tried putting the JavaScript into a separate .js file and referencing it in the ASPX code, and putting the JavaScript file in the document library and referencing that in ASPX which did not work.  I know how to add the JavaScript into a Content Editor Web Part, however I do not have any idea how to get that to interact with the ASPX page to tell it the JavaScript is in the ASPX page.  Any ideas how to get my JavaScript to work in my scenario?

Viewing all articles
Browse latest Browse all 11571

Trending Articles



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