Quantcast
Viewing all articles
Browse latest Browse all 11712

How do we include, and access, our own JavaScript code in the WebClient?

Hi...

 

How do we include our own JavaScript code within the WebClient? We have some functionality that we need to build to extend the UI beyond what the Presentation Templates can provide. We can get everything done that we need to if we can #1) include our own JavaScript functions in the HTML pages that are sent to the client, and #2) invoke that JavaScript from the elements that we can create in Rich Content fields. We know about, and will manage on our own, any of the cross-browser JavaScript incompatibilities.

 

Example:

var experiment = "<!-- MKS HTML --><script type=\"text/javascript\">function clicked(){ alert(\"hi mom\");}</script><button onclick()=\"clicked()\">Testing</button>";

delta.setFieldValue("Test Result Rollup", experiment);

 

The button shows up, but it is not responding to the click event.

 

For us, this will shortly become a very important thing to be able to do. The reason is that the capability of the current Integrity User Interface that is based on Presentation Templates has prevented us from coming up with a solution to our User-Interface needs. The essential problem is that we need to greatly simplify things for our users by creating a UI that can update multiple items and multiple item-types all at once from a single user-action, depending on the context of what the user is viewing. The Presentation Templates, and the single-item-centric design, of the Integrity UI prevent us from accomplishing what we need to do. We can manage the transactions that need to be processed for updating multiple items from one user-action.

 

Please advise.

 

-Sean


Viewing all articles
Browse latest Browse all 11712

Trending Articles



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