473,322 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Launch Pop-Up from ASP

From an asp page, i'm trying to auto-open a pop-up page if something exists.
I can do this within access via vba using below code.

Anyone know how I could modify the below js to auto-lauch from asp?

sPage = "javascript:
resizeTo(478,500);moveTo(130,150);document.locatio n.href='http://myserver/myweb/mypopup.asp"
sApp = "c:\Program Files\Internet Explorer\iexplore.exe"

sCommand = sApp & " " & sPage & "'"

Call Shell(sCommand, 1)
Jul 21 '05 #1
10 1736
Even if you could get this to work, it would open a browser on the server.
Is that what you want?

You certainly can't run executables that are on a user's computer from a web
page - ASP or otherwise.

Bob Lehmann

"scott" <sb*****@mileslumber.com> wrote in message
news:Ov**************@TK2MSFTNGP15.phx.gbl...
From an asp page, i'm trying to auto-open a pop-up page if something exists. I can do this within access via vba using below code.

Anyone know how I could modify the below js to auto-lauch from asp?

sPage = "javascript:
resizeTo(478,500);moveTo(130,150);document.locatio n.href='http://myserver/my
web/mypopup.asp" sApp = "c:\Program Files\Internet Explorer\iexplore.exe"

sCommand = sApp & " " & sPage & "'"

Call Shell(sCommand, 1)

Jul 21 '05 #2
i just want my main asp page to open a pop-up page without having to click
anything.

this pop-up just exists to set a variable for the main page.

is this possible?
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
Even if you could get this to work, it would open a browser on the server.
Is that what you want?

You certainly can't run executables that are on a user's computer from a
web
page - ASP or otherwise.

Bob Lehmann

"scott" <sb*****@mileslumber.com> wrote in message
news:Ov**************@TK2MSFTNGP15.phx.gbl...
From an asp page, i'm trying to auto-open a pop-up page if something

exists.
I can do this within access via vba using below code.

Anyone know how I could modify the below js to auto-lauch from asp?

sPage = "javascript:

resizeTo(478,500);moveTo(130,150);document.locatio n.href='http://myserver/my
web/mypopup.asp"
sApp = "c:\Program Files\Internet Explorer\iexplore.exe"

sCommand = sApp & " " & sPage & "'"

Call Shell(sCommand, 1)


Jul 21 '05 #3
You want it to pop up on the server? What if there is no one at the server
to see it?

Jeff
"scott" <sb*****@mileslumber.com> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
i just want my main asp page to open a pop-up page without having to click
anything.

this pop-up just exists to set a variable for the main page.

is this possible?
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
Even if you could get this to work, it would open a browser on the server. Is that what you want?

You certainly can't run executables that are on a user's computer from a
web
page - ASP or otherwise.

Bob Lehmann

"scott" <sb*****@mileslumber.com> wrote in message
news:Ov**************@TK2MSFTNGP15.phx.gbl...
From an asp page, i'm trying to auto-open a pop-up page if something

exists.
I can do this within access via vba using below code.

Anyone know how I could modify the below js to auto-lauch from asp?

sPage = "javascript:

resizeTo(478,500);moveTo(130,150);document.locatio n.href='http://myserver/my web/mypopup.asp"
sApp = "c:\Program Files\Internet Explorer\iexplore.exe"

sCommand = sApp & " " & sPage & "'"

Call Shell(sCommand, 1)



Jul 21 '05 #4
Let me clarify what I'm doing. If you come to my homepage.asp and no cookie
is set that determines your language preference, I just want a pop-up to
launch allowing the user to select the preferred language.

Does that explain it better? I don't quite understand your question about
the server being there.
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You want it to pop up on the server? What if there is no one at the
server
to see it?

Jeff
"scott" <sb*****@mileslumber.com> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
i just want my main asp page to open a pop-up page without having to
click
anything.

this pop-up just exists to set a variable for the main page.

is this possible?
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
> Even if you could get this to work, it would open a browser on the server. > Is that what you want?
>
> You certainly can't run executables that are on a user's computer from
> a
> web
> page - ASP or otherwise.
>
> Bob Lehmann
>
> "scott" <sb*****@mileslumber.com> wrote in message
> news:Ov**************@TK2MSFTNGP15.phx.gbl...
>> From an asp page, i'm trying to auto-open a pop-up page if something
> exists.
>> I can do this within access via vba using below code.
>>
>> Anyone know how I could modify the below js to auto-lauch from asp?
>>
>> sPage = "javascript:
>>
> resizeTo(478,500);moveTo(130,150);document.locatio n.href='http://myserver/my > web/mypopup.asp"
>> sApp = "c:\Program Files\Internet Explorer\iexplore.exe"
>>
>> sCommand = sApp & " " & sPage & "'"
>>
>> Call Shell(sCommand, 1)
>>
>>
>
>



Jul 21 '05 #5
You can't launch it from ASP. You could open a new window from the onload
event of the body tag, though. But, it would probably be blocked since alot
of people are disabling that functionality.

See a client-side scripting group for details.

Bob Lehmann

"scott" <sb*****@mileslumber.com> wrote in message
news:e7**************@TK2MSFTNGP09.phx.gbl...
Let me clarify what I'm doing. If you come to my homepage.asp and no cookie is set that determines your language preference, I just want a pop-up to
launch allowing the user to select the preferred language.

Does that explain it better? I don't quite understand your question about
the server being there.
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You want it to pop up on the server? What if there is no one at the
server
to see it?

Jeff
"scott" <sb*****@mileslumber.com> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
i just want my main asp page to open a pop-up page without having to
click
anything.

this pop-up just exists to set a variable for the main page.

is this possible?
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
> Even if you could get this to work, it would open a browser on the

server.
> Is that what you want?
>
> You certainly can't run executables that are on a user's computer from > a
> web
> page - ASP or otherwise.
>
> Bob Lehmann
>
> "scott" <sb*****@mileslumber.com> wrote in message
> news:Ov**************@TK2MSFTNGP15.phx.gbl...
>> From an asp page, i'm trying to auto-open a pop-up page if something
> exists.
>> I can do this within access via vba using below code.
>>
>> Anyone know how I could modify the below js to auto-lauch from asp?
>>
>> sPage = "javascript:
>>
>

resizeTo(478,500);moveTo(130,150);document.locatio n.href='http://myserver/my
> web/mypopup.asp"
>> sApp = "c:\Program Files\Internet Explorer\iexplore.exe"
>>
>> sCommand = sApp & " " & sPage & "'"
>>
>> Call Shell(sCommand, 1)
>>
>>
>
>



Jul 21 '05 #6
You need to check the cookie in your server-side code and redirect the user
to another page if necessary. It is not possible to pop up a window from
server-side code. The only way to pop up a window is via client-side code,
which is NOT asp. If you wish to pursue a client-side code solution, then
post to one of the client-side newsgroups: the one most likely t help is the
..scripting.jscript group, although you may want to try one of the groups
with "dhtml" in their names.

Bob Barrows

scott wrote:
Let me clarify what I'm doing. If you come to my homepage.asp and no
cookie is set that determines your language preference, I just want a
pop-up to launch allowing the user to select the preferred language.

Does that explain it better? I don't quite understand your question
about the server being there.
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You want it to pop up on the server? What if there is no one at the
server
to see it?

Jeff
"scott" <sb*****@mileslumber.com> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
i just want my main asp page to open a pop-up page without having to
click
anything.

this pop-up just exists to set a variable for the main page.

is this possible?
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
Even if you could get this to work, it would open a browser on the
server. Is that what you want?

You certainly can't run executables that are on a user's computer
from a
web
page - ASP or otherwise.

Bob Lehmann

"scott" <sb*****@mileslumber.com> wrote in message
news:Ov**************@TK2MSFTNGP15.phx.gbl...
> From an asp page, i'm trying to auto-open a pop-up page if
> something exists. I can do this within access via vba using below
> code. Anyone know how I could modify the below js to auto-lauch from
> asp? sPage = "javascript:
>

resizeTo(478,500);moveTo(130,150);document.locatio n.href='http://myserver/my
web/mypopup.asp"
> sApp = "c:\Program Files\Internet Explorer\iexplore.exe"
>
> sCommand = sApp & " " & sPage & "'"
>
> Call Shell(sCommand, 1)


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 21 '05 #7
thanks guys.

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:eU**************@TK2MSFTNGP11.phx.gbl...
You need to check the cookie in your server-side code and redirect the
user to another page if necessary. It is not possible to pop up a window
from server-side code. The only way to pop up a window is via client-side
code, which is NOT asp. If you wish to pursue a client-side code solution,
then post to one of the client-side newsgroups: the one most likely t help
is the .scripting.jscript group, although you may want to try one of the
groups with "dhtml" in their names.

Bob Barrows

scott wrote:
Let me clarify what I'm doing. If you come to my homepage.asp and no
cookie is set that determines your language preference, I just want a
pop-up to launch allowing the user to select the preferred language.

Does that explain it better? I don't quite understand your question
about the server being there.
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You want it to pop up on the server? What if there is no one at the
server
to see it?

Jeff
"scott" <sb*****@mileslumber.com> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
i just want my main asp page to open a pop-up page without having to
click
anything.

this pop-up just exists to set a variable for the main page.

is this possible?
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
> Even if you could get this to work, it would open a browser on the
> server. Is that what you want?
>
> You certainly can't run executables that are on a user's computer
> from a
> web
> page - ASP or otherwise.
>
> Bob Lehmann
>
> "scott" <sb*****@mileslumber.com> wrote in message
> news:Ov**************@TK2MSFTNGP15.phx.gbl...
>> From an asp page, i'm trying to auto-open a pop-up page if
>> something exists. I can do this within access via vba using below
>> code. Anyone know how I could modify the below js to auto-lauch from
>> asp? sPage = "javascript:
>>
>
resizeTo(478,500);moveTo(130,150);document.locatio n.href='http://myserver/my
> web/mypopup.asp"
>> sApp = "c:\Program Files\Internet Explorer\iexplore.exe"
>>
>> sCommand = sApp & " " & sPage & "'"
>>
>> Call Shell(sCommand, 1)


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 21 '05 #8
is it possible to set an asp cookie and read it with js?

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:eU**************@TK2MSFTNGP11.phx.gbl...
You need to check the cookie in your server-side code and redirect the
user to another page if necessary. It is not possible to pop up a window
from server-side code. The only way to pop up a window is via client-side
code, which is NOT asp. If you wish to pursue a client-side code solution,
then post to one of the client-side newsgroups: the one most likely t help
is the .scripting.jscript group, although you may want to try one of the
groups with "dhtml" in their names.

Bob Barrows

scott wrote:
Let me clarify what I'm doing. If you come to my homepage.asp and no
cookie is set that determines your language preference, I just want a
pop-up to launch allowing the user to select the preferred language.

Does that explain it better? I don't quite understand your question
about the server being there.
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You want it to pop up on the server? What if there is no one at the
server
to see it?

Jeff
"scott" <sb*****@mileslumber.com> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
i just want my main asp page to open a pop-up page without having to
click
anything.

this pop-up just exists to set a variable for the main page.

is this possible?
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
> Even if you could get this to work, it would open a browser on the
> server. Is that what you want?
>
> You certainly can't run executables that are on a user's computer
> from a
> web
> page - ASP or otherwise.
>
> Bob Lehmann
>
> "scott" <sb*****@mileslumber.com> wrote in message
> news:Ov**************@TK2MSFTNGP15.phx.gbl...
>> From an asp page, i'm trying to auto-open a pop-up page if
>> something exists. I can do this within access via vba using below
>> code. Anyone know how I could modify the below js to auto-lauch from
>> asp? sPage = "javascript:
>>
>
resizeTo(478,500);moveTo(130,150);document.locatio n.href='http://myserver/my
> web/mypopup.asp"
>> sApp = "c:\Program Files\Internet Explorer\iexplore.exe"
>>
>> sCommand = sApp & " " & sPage & "'"
>>
>> Call Shell(sCommand, 1)


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Jul 21 '05 #9
i found scripting.jscript, but couldn't find any dhtml groups, do you know
any?
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:eU**************@TK2MSFTNGP11.phx.gbl...
You need to check the cookie in your server-side code and redirect the
user to another page if necessary. It is not possible to pop up a window
from server-side code. The only way to pop up a window is via client-side
code, which is NOT asp. If you wish to pursue a client-side code solution,
then post to one of the client-side newsgroups: the one most likely t help
is the .scripting.jscript group, although you may want to try one of the
groups with "dhtml" in their names.

Bob Barrows

scott wrote:
Let me clarify what I'm doing. If you come to my homepage.asp and no
cookie is set that determines your language preference, I just want a
pop-up to launch allowing the user to select the preferred language.

Does that explain it better? I don't quite understand your question
about the server being there.
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You want it to pop up on the server? What if there is no one at the
server
to see it?

Jeff
"scott" <sb*****@mileslumber.com> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
i just want my main asp page to open a pop-up page without having to
click
anything.

this pop-up just exists to set a variable for the main page.

is this possible?
"Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
> Even if you could get this to work, it would open a browser on the
> server. Is that what you want?
>
> You certainly can't run executables that are on a user's computer
> from a
> web
> page - ASP or otherwise.
>
> Bob Lehmann
>
> "scott" <sb*****@mileslumber.com> wrote in message
> news:Ov**************@TK2MSFTNGP15.phx.gbl...
>> From an asp page, i'm trying to auto-open a pop-up page if
>> something exists. I can do this within access via vba using below
>> code. Anyone know how I could modify the below js to auto-lauch from
>> asp? sPage = "javascript:
>>
>
resizeTo(478,500);moveTo(130,150);document.locatio n.href='http://myserver/my
> web/mypopup.asp"
>> sApp = "c:\Program Files\Internet Explorer\iexplore.exe"
>>
>> sCommand = sApp & " " & sPage & "'"
>>
>> Call Shell(sCommand, 1)


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Jul 21 '05 #10
No, but you can read the value in your server-side code, and then
response.write it into your client-side code:

<%
dim serversidevalue
serversidevalue="3"
%>

<script>
valuefromserversidecode = "<%=serversidevalue%>"
//etc.
</script>

HTH,
Bob Barrows

scott wrote:
is it possible to set an asp cookie and read it with js?

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:eU**************@TK2MSFTNGP11.phx.gbl...
You need to check the cookie in your server-side code and redirect
the user to another page if necessary. It is not possible to pop up a
window from server-side code. The only way to pop up a window is via
client-side code, which is NOT asp. If you wish to pursue a
client-side code solution, then post to one of the client-side
newsgroups: the one most likely t help is the .scripting.jscript group,
although you may want to try one of
the groups with "dhtml" in their names.

Bob Barrows

scott wrote:
Let me clarify what I'm doing. If you come to my homepage.asp and no
cookie is set that determines your language preference, I just want
a pop-up to launch allowing the user to select the preferred language.

Does that explain it better? I don't quite understand your question
about the server being there.
"Jeff Dillon" <je**@removeemergencyreporting.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You want it to pop up on the server? What if there is no one at
the server
to see it?

Jeff
"scott" <sb*****@mileslumber.com> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
> i just want my main asp page to open a pop-up page without having
> to click
> anything.
>
> this pop-up just exists to set a variable for the main page.
>
> is this possible?
>
>
> "Bob Lehmann" <no****@dontbotherme.zzz> wrote in message
> news:Oj**************@TK2MSFTNGP15.phx.gbl...
>> Even if you could get this to work, it would open a browser on
>> the server. Is that what you want?
>>
>> You certainly can't run executables that are on a user's computer
>> from a
>> web
>> page - ASP or otherwise.
>>
>> Bob Lehmann
>>
>> "scott" <sb*****@mileslumber.com> wrote in message
>> news:Ov**************@TK2MSFTNGP15.phx.gbl...
>>> From an asp page, i'm trying to auto-open a pop-up page if
>>> something exists. I can do this within access via vba using
>>> below code. Anyone know how I could modify the below js to
>>> auto-lauch
>>> from asp? sPage = "javascript:
>>>
>>
resizeTo(478,500);moveTo(130,150);document.locatio n.href='http://myserver/my
>> web/mypopup.asp"
>>> sApp = "c:\Program Files\Internet Explorer\iexplore.exe"
>>>
>>> sCommand = sApp & " " & sPage & "'"
>>>
>>> Call Shell(sCommand, 1)


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so
I don't check it very often. If you must reply off-line, then remove
the "NO SPAM"


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 21 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Bob Bedford | last post by:
I've a script that must "launch" an other script on some situations. firstscript.php: .... If ($newarticle) //launch secondscript.php .... The "secondscript.php" may take quite long, and is...
0
by: Alan Franklin | last post by:
I'm bouncing off of "out-of-memory" errors using current release of eclipse. OK, so I've ferreted around and found that I have to pass special arguments to the JVM to get it to use more that a...
0
by: Jeff Cooper | last post by:
Hi folks, I have a small VB app and I've created a deployment project for it. At the end of installation I would like the user to get a prompt like "Run your new program now? yes/no" -- or...
4
by: Caroline | last post by:
I'd like to launch an executable file from a web page. Basically, the user enters seven parameters and then clicks a button to generate a graph. The input is written to a file and then read by...
8
by: Dutchy | last post by:
Dear reader, In an attempt to obtain the path to the quick-launch-folder in order to create a shortcut to my application-updates during installation , I thought to: 1- check if quick launch...
1
by: Jo | last post by:
I am having a real problem with the Launch conditions in VS .NET and can only come to the conclusion that it is a bug. It states quite emphatically in the MSDN that Launch Conditions WILL be...
1
by: Michael Howes | last post by:
I have a c# windows form that talks to a web service on a server that then can talk to multiple "agents" on different machines using web service calls. I want to be able to launch an application...
5
by: GrantS | last post by:
Hi I am trying to use ShellExecute to launch an application to display a certain file. The variation on the theme is that I need to be able to specify the application to launch and not simply...
1
by: Juan Romero | last post by:
Hey guys, I need to launch an external application, but I need to launch it with some command line arguments. Now the thing is that I need to launch it as a process. For example: Dim p As New...
4
by: Joe | last post by:
I created a CustomAction for this but I don't think I have it in the right place. I tried both Install and Commit but neither allow it to get to the final screen. Are there any examples of this...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.