For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > March 2004 > Windows.open not working









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 Windows.open not working
Rick Morayniss

2004-03-31, 12:43 pm

I am getting an not delcared error for
windows.open("sample.htm", Null,
" height=200,width=400,status=yes,toolbar=
no,menubar=no,location=no")

what do I delcare, and how?

Thanks


Rick Morayniss

2004-03-31, 12:44 pm

still not working.
Name "window" is not declared is the eror message.

"Bill Borg" <anonymous@discussions.microsoft.com> wrote in message
news:8360DE81-8BA7-4B46-BDA6-AA1A29A026D9@microsoft.com...
> Use window.open (no 's')...
>
> ----- Rick Morayniss wrote: -----
>
> I am getting an not delcared error for
> windows.open("sample.htm", Null,
> " height=200,width=400,status=yes,toolbar=
no,menubar=no,location=no")
>
> what do I delcare, and how?
>
> Thanks
>
>
>



Richard Morse

2004-03-31, 1:38 pm

In article <OWrDBN0FEHA.2428@tk2msftngp13.phx.gbl>,
"Rick Morayniss" <rkmoray@aol.com> wrote:

> "Bill Borg" <anonymous@discussions.microsoft.com> wrote in message
> news:8360DE81-8BA7-4B46-BDA6-AA1A29A026D9@microsoft.com...
> still not working.
> Name "window" is not declared is the eror message.


Coming into the discussion late, I just want to double-check: this is
being done in _client-side_ code -- right? That is, in the javascript
that is _not_ runat="server"?

Ricky

--
Pukku
Jason MacKenzie

2004-03-31, 1:38 pm

This is a client side issue that has nothing to do with asp.net


"Rick Morayniss" <rkmoray@aol.com> wrote in message
news:OWrDBN0FEHA.2428@tk2msftngp13.phx.gbl...
> still not working.
> Name "window" is not declared is the eror message.
>
> "Bill Borg" <anonymous@discussions.microsoft.com> wrote in message
> news:8360DE81-8BA7-4B46-BDA6-AA1A29A026D9@microsoft.com...
" height=200,width=400,status=yes,toolbar=
no,menubar=no,location=no")[color=darkred]
>
>



Kevin Spencer

2004-03-31, 1:38 pm

Post the corrected code,and we'll see what we can do. The correct version IS
window.open(...) - It refers to the browser window.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Rick Morayniss" <rkmoray@aol.com> wrote in message
news:OWrDBN0FEHA.2428@tk2msftngp13.phx.gbl...
> still not working.
> Name "window" is not declared is the eror message.
>
> "Bill Borg" <anonymous@discussions.microsoft.com> wrote in message
> news:8360DE81-8BA7-4B46-BDA6-AA1A29A026D9@microsoft.com...
" height=200,width=400,status=yes,toolbar=
no,menubar=no,location=no")[color=darkred]
>
>



Kevin Spencer

2004-03-31, 1:38 pm

I was assuming that this is client-side JavaScript, right? It will not work
on the server.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Rick Morayniss" <rkmoray@aol.com> wrote in message
news:OWrDBN0FEHA.2428@tk2msftngp13.phx.gbl...
> still not working.
> Name "window" is not declared is the eror message.
>
> "Bill Borg" <anonymous@discussions.microsoft.com> wrote in message
> news:8360DE81-8BA7-4B46-BDA6-AA1A29A026D9@microsoft.com...
" height=200,width=400,status=yes,toolbar=
no,menubar=no,location=no")[color=darkred]
>
>



bruce barker

2004-03-31, 2:39 pm

Null is not valid either, try:

window.open("sample.htm",null," height=200,width=400,status=yes,toolbar=
no,me
nubar=no,location=no");

-- bruce (sqlwork.com)


"Rick Morayniss" <rkmoray@aol.com> wrote in message
news:OWrDBN0FEHA.2428@tk2msftngp13.phx.gbl...
> still not working.
> Name "window" is not declared is the eror message.
>
> "Bill Borg" <anonymous@discussions.microsoft.com> wrote in message
> news:8360DE81-8BA7-4B46-BDA6-AA1A29A026D9@microsoft.com...
" height=200,width=400,status=yes,toolbar=
no,menubar=no,location=no")[color=darkred]
>
>



Rick Morayniss

2004-03-31, 2:40 pm

Xref: kermit microsoft.public.dotnet.framework.aspnet:256270

For clarification. This is being run in codebehind(vb).

"Rick Morayniss" <rkmoray@aol.com> wrote in message
news:OWrDBN0FEHA.2428@tk2msftngp13.phx.gbl...
> still not working.
> Name "window" is not declared is the eror message.
>
> "Bill Borg" <anonymous@discussions.microsoft.com> wrote in message
> news:8360DE81-8BA7-4B46-BDA6-AA1A29A026D9@microsoft.com...
" height=200,width=400,status=yes,toolbar=
no,menubar=no,location=no")[color=darkred]
>
>



Jason MacKenzie

2004-03-31, 2:40 pm

You can't open a window from the codebehind. You can output script that will
open it on the client, however.


"Rick Morayniss" <rkmoray@aol.com> wrote in message
news:O7%23Zn40FEHA.3764@TK2MSFTNGP12.phx.gbl...
> For clarification. This is being run in codebehind(vb).
>
> "Rick Morayniss" <rkmoray@aol.com> wrote in message
> news:OWrDBN0FEHA.2428@tk2msftngp13.phx.gbl...
> " height=200,width=400,status=yes,toolbar=
no,menubar=no,location=no")
>
>



Sponsored Links







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

Copyright 2010 codecomments.com