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

SP 2010 - Triggering JavaScript on Custom Display Form

$
0
0

I have a custom display form, 'DispFirm.aspx' (I didn't create this or give it the name!) attached to a list, 'Firm'.  (Default is set to "Yes" for this Display Type version.)

Per the <ContentLink> tag it is supposed to run JavaScript in the firmScript.txt file:

<ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor">/sites/amge/SiteAssets/firmScript.txt</ContentLink>

The code looks ok.  It has the requisite "ExecuteOrDelayUntilScriptLoaded(MainFunction, "sp.js"); " line and there is a function MainFunction.

In SP, when I select one of the records from this list and then click the View Item icon, I get the following error message:

Error

File Not Found.

Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID: fdda83e0-407e-40ff-a163-d5796f51f21a

Date and Time: 5/14/2013 1:39:19 PM

I opened the JavaScript tab of the page (list view) using the Developer Tools (IE8) but am not even sure where the code (or call to the code is located) so that I can step through it.

Am I looking in the right place?  What do I need to look for to see what is happening after the user clicks the View Item icon.

Thanks,

- Bruce


- Bruce


Viewing all articles
Browse latest Browse all 11571

Trending Articles



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