CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 why i can't use msgbox in CC?

Print topic Send  topic

Author Message
willy
Posted: 06/01/2002, 8:51 AM

when i use msgbox i got a error like that: permission denied msgbox
my code is rather than like that
if condition then
respuesta=msgbox("No esta inscrito?")
if respuesta=vbyes then
response.redirect "/web/respuesta.asp"
end if
end if
is there another way for do this?
Sixto
Posted: 06/02/2002, 4:00 AM

Willy,

This is not a CC issue. You cannot do that, period.

You must understand the 2 levels where your code runs. The server level (where the ASP executes) and the client level (where your results are presented and, if any, client scripting runs).

What you are asking with your code is to show a msgbox on the server. What you want, I assume, is to present a msgbox to the user (on the client level).

There are several ways to cope with this, but they all depend on what you are trying to do.

Using your example, one could write:

if condition then
%>
<script language="javascript">
var respuesta=window.confirm("No esta inscrito?");
if(respuesta)
document.location.href="/web/respuesta.asp";
</script>
<%
end if


This way, your condition is tested on the server side and, if met, the javascript is sent for execution on the client side

.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.