When using the Experience Editor for editing pages that utilize the jQuery JavaScript library, editing might not function properly and errors similar to the following may occur:
Failed to call scGetFrameValue in IFrame tag. This typically happens due to a Permission Denied exception in IE9 caused by an intricate issue with Popup and ShowModalDialog calls. Blocked a frame with origin "<url of the website>" from accessing a cross-origin frame.
Uncaught TypeError: undefined is not a function
This can happen because the Prototype JavaScript library used by the Experience Editor may conflict with jQuery utilized by the page and cause the browser to interpret Prototype calls as jQuery ones.
To avoid editing issues in Experience Editor use jQuery JavaScript library in the No-Conflict mode.
Please check the following article for details:
http://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/