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?
↧