Pop Up Window not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • codeseeker1
    New Member
    • Jan 2009
    • 14

    Pop Up Window not working

    Hello all,

    iam working with a pop up window usinh window.open();
    Correctly working in most cases.But when clicked on cetain <a href>
    showing Internet Explorer Cannot display page.
    Can anyone help me?

    thanks in advance
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Can you post an example or a link?

    Comment

    • codeseeker1
      New Member
      • Jan 2009
      • 14

      #3
      Pop Ups

      Code:
      <td align="center"><?php echo "<a href=\"javascript:getDetails('$drg_id');\">[Details]</a>";?></td></tr>
      
      function getDetails(drgid)
      {
      	//alert(drgid);
      	var drg= encodeURIComponent (drgid);
      	window.open( "PRQDetails.php?drug=drug&drgid="+drg, "myWindow", "location=0,status=1,height = 600, width = 800,scrollbars=0");
      }
      Last edited by Dormilich; Feb 2 '09, 11:13 AM. Reason: edited code block for readability

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        and what is the problem?

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Check that the ID that you pass is correct. When you try opening the page directly without using window.open(), does it open fine?

          PS. threads merged. Please keep all posts relating to the same problem in one thread. Thanks!

          Comment

          Working...