Rendering Javascript to Cache

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/1/2012 11:27:24 AM
Gravatar
Total Posts 148

Rendering Javascript to Cache

I know you can dynamically render Javascript to a page using the "Register" functions but can you render to the cache?  

I would rather my Javascript not appear on the page.

 

5/1/2012 11:39:21 AM
Gravatar
Total Posts 1204
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Rendering Javascript to Cache

JavaScript is executed on the client side, so it has to be in the page source to be seen by the browser and hence executed. You can store your JavaScript procedures in an external file, but the procedure call(s) will still need to be rendered in the page source. The Google Maps feature has a good example of this.

If you use the Microsoft AJAX Control Toolkit for client side processing, the code will be more obscured in the page source than JavaScript is, but it can still be decoded by a determined user.

You must sign in to post in the forums. This thread is closed to new posts.