Welcome to Webhost4life Forum Sign in | Join | Faq

Rainbow Portal

Started by NaveedJadoon at 09-06-2006 5:06 AM. Topic has 0 replies.

Print Search
Sort Posts:    
   09-06-2006, 5:06 AM
NaveedJadoon is not online. Last active: 9/6/2006 8:00:52 PM NaveedJadoon

Top 500 Posts
Joined on 09-06-2006
Posts 1
Unable To run JavaScript Function in Rainbow version RC 4, Get Object Expected
Reply Quote
Dear All,
 
I am working in an accounts project using Rainbow portal version RC 4 in Asp.Net 1.1 C#.
Every thing was working fine till now but now I want to run a java script function in DesktopDefault.aspx page or in any page inherited by Rainbow.UI.Page
 
e.g. for Main.aspx
public class Main : Rainbow.UI.Page
 
java script example may be as
[ Page.RegisterStartupScript("OnLoad","<script language=javascript>" +" alert('hello'); " +"</script>");]
 
It shows following error.
Object Expected
 
In other .aspx inherited from System.Web.UI.Page pages same java script works fine.
 
 
I have searched a-lot on net. and tried running java scripts function to run in many ways like in Html mode
 
<script language="javascript">
 function shwAlert() {
alert('This is what an alert message looks like.');
}
</script>
 
 and then calling shwAlert()"
< INPUT type="button" onclick= "BLOCKED SCRIPTshwAlert()" value="check me" id="btnCheck">
 
function shwAlert() { alert('This is what an alert message looks like.'); }
May be any one can give me any solution or tip.
 
I am really in need of it.
 
Thanks in advance.
 
 
 
 
 
 

   Report 
Webhost4life Fo... » Auto Plug-ins » Rainbow Portal » Unable To run JavaScript Function in Rainbow version RC 4, Get Object Expected

Powered by Community Server, by Telligent Systems