ASP, Javascript and windows popup

Results 1 to 3 of 3

Thread: ASP, Javascript and windows popup

  1. #1
    Join Date
    Dec 1969
    Posts
    13

    Default ASP, Javascript and windows popup

    I have a search page(search.asp) that returns a table of records. When I click on "details", a new browser window pops up. The size of the new window that appears is 700x150 using IE5. My coding does not work in Netscape Navigator 4.08 though. The new window does not appear as 700x150. Any help would be appreciated. Thanks <BR><BR>From Search.asp<BR><BR>&#060;HTML>&#060;HEAD>&#060;TITL E>&#060;/TITLE><BR>&#060;script language="JavaScript"><BR>&#060;!--<BR>function openWindow(url, name) {<BR> window.open(url, name, "width=700, height=150, top=0, left=0");<BR>}<BR>//--><BR>&#060;/script><BR>&#060;/HEAD><BR><BR>&#060;BODY><BR><BR>&#060;%<BR>Respons e.Write ("Page " & Session("Currentpage") & " of " & TotalPages)<BR>&#037;&#062;<BR><BR><BR>&#060;%<BR> response.write ("&#060;font size=2>&#060;a href=titleandauthors.htm>Return to Titles and Authors Search&#060;/a>&#060;/font>")<BR>&#037;&#062;<BR><BR>&#060;TABLE BORDER=1><BR>&#060;tr>&#060;th>Details&#060;/th>&#060;th>Authors&#060;/th>&#060;th>Titles&#060;/th>&#060;th>Have&#060;/th>&#060;/tr><BR><BR>&#060;tr><BR><BR>&#060;%<BR>Do While Not rsRecords.EOF And NumRows &#060; rsRecords.PageSize<BR>&#037;&#062;<BR><BR>&#060;%< BR>If rsRecords("Key")&#060;>"" Then<BR>response.write("&#060;td>&#060;font size=2>&#060;a href=javascript:openWindow(&#039details.asp?Key=" & rsRecords("Key") & "&#039)>Details&#060;/a>&#060;/font>&#060;/td>")<BR>End If<BR>&#037;&#062;

  2. #2
    Join Date
    Dec 1969
    Posts
    511

    Default RE: ASP, Javascript and windows popup

    Well at first glance I can tell you that you need to remove the spaces from this line <BR><BR>window.open(url, name, "width=700, height=150, top=0, left=0");<BR><BR>so it looks like this<BR><BR>window.open(url, name, "width=700,height=150,top=0,left=0");<BR><BR>I E5 must be a bit more forgiving then NS4<BR><BR>Hope that helps<BR><BR>Pete

  3. #3
    Join Date
    Dec 1969
    Posts
    13

    Default RE: ASP, Javascript and windows popup- Thank You

    Thanks Pete. It definitely helped.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •