Re: popup page in aspx

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Marina (someone_at_nospam.com)
Date: 03/22/04


Date: Mon, 22 Mar 2004 12:21:29 -0500

Well, for one thing, it doesn't look like valid javascript. I would guess
you need quotes or single quotes around test.htm.

Are you sure you aren't getting a javascript error, but just not seeing it
because your IE settings are set to not display javascript errors?

"newbie" <anonymous@discussions.microsoft.com> wrote in message
news:05621161-4B64-4490-B56C-85CAA383EFB5@microsoft.com...
> here is the code for newWindow() on the aspx page.
> function newWindow(url){
> link = window.open(url,"Link",,)
> return true;
> }
>
> The code for button:
> private sub ButtonAdd_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
> ButtonAdd.Attributes.Add("onClick", "return newWindow(test.htm);")
> end sub
> Why wouldn't this work



Relevant Pages

  • Re: Command line cannot fwrite, browser can
    ... Single vs. double quotes would not ... Single quotes vs. double quotes make absolutely no ... a part of the Network News network (a growing part of which is part of the ... Prototype.js was written by people who don't know javascript for people ...
    (comp.lang.php)
  • Re: PHP web control only works with Firefox
    ... The box draws fine and my user can select another value from ... Some browsers don't handle single quotes too well ... That's a big reason why I recommend people ask javascript questions in a javascript newsgroup. ...
    (alt.php)
  • Re: Javascript escape & JScript GlobalObject.escape
    ... escape is a url escape and single quotes are legal in urls, ... if your are outputing a javascript literal, ... javascript quoting. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: block writing
    ... note the use of SINGLE quotes ... Jim, it would work except if there is javascript in any of the xhtml, ... those areas so a single change to the javascript will be a global ...
    (comp.lang.javascript)
  • Re: Open a JavaScript Window from a Web User Control and return a valu
    ... First off, since you are using so much javascript, I'm not sure why your ... popup needs to postback, simply use javascript controls. ... population javascript code to the user control, ... Private Sub Page_Init(ByVal sender As System.Object, ...
    (microsoft.public.dotnet.framework.aspnet)