View Single Post
  #2 (permalink)  
Old January 25th, 2005, 04:50 AM
Shibu Shibu is offline
Authorized User
 
Join Date: Aug 2004
Location: Calicut, Kerala, India.
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I suppose you need to alert when the page is been loaded.
I will suggest to get the messages in a javascript array.

Such as

 <script language = "javascript">
  var arr_messages = array(1);
<%
  Dim i_count
  i_count = 1
 while not rs.eof
%>
  arr_messages.length = <%=i_count%>;
  arr_messages[<%=i_count-1%>] = " Your message";
<%
  rs.movenext
 wend
%>
</script>

After these things you can call this function from onload()

<script language = "javascript">
function func_messages()
{
   for(i=0;i< arr_messages.length;i++)
   {
      alert(arr_messages[i]);
   }
}
</script>

 You can employ any idea. This is just to explain how to interact between javascript and ASP.
 Hope it helps you.:)


Shibu Narayanan
Software Associates
Reply With Quote