Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > NavigateUrl and Javscript

Reply
Thread Tools

NavigateUrl and Javscript

 
 
Mike
Guest
Posts: n/a
 
      07-17-2004

Hi,

I am using the following script to open a popup window to display a calendar:

"javascript:frm=window.open('GrntCalendar.aspx?ite mName=grd1__ctl3_txtOriginalDate&selectedDate=7/17/2004','Calendar','width=340px,height=305px,left='+ ((screen.width - 340) / 2)+',top='+ (screen.height - 305) / 2+'');"

The script correctly opens a popup window, but it also displays the original page (the one from which the script was run) with an "[object]" text only. Any idea what could be wrong with the javascript above?

Thanks
Mike


 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      07-17-2004


Mike wrote:

>
> Hi,
>
> I am using the following script to open a popup window to display a
> calendar:
>
> "javascript:frm=window.open('GrntCalendar.aspx?ite mName=grd1__ctl3_txtOriginalDate&selectedDate=7/17/2004','Calendar','width=340px,height=305px,left='+ ((screen.width
> - 340) / 2)+',top='+ (screen.height - 305) / 2+'');"
>
> The script correctly opens a popup window, but it also displays the
> original page (the one from which the script was run) with an "[object]"
> text only. Any idea what could be wrong with the javascript above?


Nothing really, it does what you ask it to, if you add
void 0
after the last semicolon it is fixed.
However you might want to avoid the javascript: URL, see
http://jibbering.com/faq/#FAQ4_24

--

Martin Honnen
http://JavaScript.FAQTs.com/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting html, css, and javscript work. Nameo0 HTML 0 03-31-2012 10:29 PM
Javscript Editors with variable watch and debug? mmxmsmmzm@. Javascript 3 09-08-2008 09:09 PM
ASP.NET does not honor Title nor Javscript options Benton ASP .Net 4 11-26-2005 02:45 PM
how to attach javscript to a ASP:BUTTON Darrel ASP .Net 4 10-26-2004 04:49 AM
Javscript to force download of PDF NUG-IT HTML 11 07-26-2003 02:44 AM



Advertisments