For Programmers: Free Programming Magazines  


Home > Archive > ASP > September 2004 > Popup instead of Javascript Alert









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Popup instead of Javascript Alert
SibAndela

2004-09-25, 3:55 pm

Two little challenges:
1. I would like to achieve the equivalent of a client side javascript alert
popup from server side code. Any suggestion how I can do this?
2. How can I cause a beep at clientside from serverside code?

Evertjan.

2004-09-25, 3:55 pm

=?Utf-8?B?U2liQW5kZWxh?= wrote on 25 sep 2004 in
microsoft.public.inetserver.asp.general:

> Two little challenges:
> 1. I would like to achieve the equivalent of a client side javascript
> alert popup from server side code. Any suggestion how I can do this?


You cannot.
Serverside code only runs on the server.

> 2. How can I cause a beep at clientside from serverside code?


You cannot.
Serverside code only runs on the server.

You can only have ASP serverside code make an html cum clientside code
page, that has those functions, but that doesn't seem to be what you want.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

SibAndela

2004-09-26, 9:03 am

What I would like is to cause a popup on the client (a second page if
necessary) initiated or redirected from the the server side code.

"Evertjan." wrote:

> =?Utf-8?B?U2liQW5kZWxh?= wrote on 25 sep 2004 in
> microsoft.public.inetserver.asp.general:
>
>
> You cannot.
> Serverside code only runs on the server.
>
>
> You cannot.
> Serverside code only runs on the server.
>
> You can only have ASP serverside code make an html cum clientside code
> page, that has those functions, but that doesn't seem to be what you want.
>
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress,
> but let us keep the discussions in the newsgroup)
>
>

Joker

2004-09-26, 3:55 pm

Once again the server has no idea what a "window" is.

This makes it so that the server can't do that.

This is a question that should be asked in a client side script group.

Here are two newsgroups where you should be asking this sort of question.

microsoft.public.scripting.jscript

comp.lang.javascript

SibAndela wrote:

> What I would like is to cause a popup on the client (a second page if
> necessary) initiated or redirected from the the server side code.
>


swp

2004-09-27, 3:55 pm

SibAndela <SibAndela@discussions.microsoft.com> wrote in message news:<EFC792F3-B8A8-443D-943E-5B29F5ED2DDE@microsoft.com>...
> Two little challenges:
> 1. I would like to achieve the equivalent of a client side javascript alert
> popup from server side code. Any suggestion how I can do this?
> 2. How can I cause a beep at clientside from serverside code?


Use javascript, in particular the "window.open" call is what you are looking for.

swp
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com