Java Script use in Mojo Portal

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
11/1/2007 8:02:37 PM
Gravatar
Total Posts 180
Thomas F. Heringer

Java Script use in Mojo Portal

Joe, how do you implement Java Scripts in mojoPortal since they include head scripts and body scripts? Is there a secret I have not found?

11/2/2007 7:35:37 AM
Gravatar
Total Posts 18439

Re: Java Script use in Mojo Portal

mojoPortal is built on ASP.NET so you use the same techniques to add javascript in mojoPortal that you do in ASP.NET

Example:

this.Page.ClientScript.RegisterClientScriptBlock(
typeof(ExtBasePanel),
"ext-all", "\n<script type=\"text/javascript\" src=\""
+ ResolveUrl(extJsBasePath + "ext-all.js") + "\" ></script>");

there are also other script registration functions built into the page like .RegisterStartup(...

Hope it helps,

Joe

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