Popup Window does not display

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wreed06
    New Member
    • Apr 2008
    • 3

    Popup Window does not display

    I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully validated my HTML and CSS code.

    1. When I clear cache and refresh my webpage, it takes 3 tries before the popup window displays - I click on the button once, a white window the size of my webpage displays. I close it and click on the button again (for the same option) and a white window the size of my webpage displays again. Close that window and click the button again (for the same option) and a white window initially displays, then goes away and the normal sized popup window displays correctly. I can then close the popup and choose any other option and get the popup with the first try. Once I clear cache though, it starts over again.

    2. Once the popup window is displaying, it initially displays as a white page the same size as the webpage, then when it connects to the URL the white page goes away and the normal sized popup window displays.

    I'm looking for 1. the popup window to display the first time I click on the submit button whether I've cleared cache or not, and 2. the initial, extra white page to not display.

    I really appreciate any help you might be able to offer.
    Thank you.

    Code:
    <div style="margin-top:2em;float:left;">
       Choose the type of support needed:
       <script type="text/javascript">
          function supportWindow(URL)
          {
          window.open(URL+"&refURL="+escape(document.location),'popupwindow','scrollba  rs,resizable');
          return false;
          }
       </script>
    
       <p>
       <select id="sel" size="1">
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18427&UID=0&SK=9numbercod  ese">Support1</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18442&UID=0&SK=fnumbercod  es3">Support2</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18407&UID=0&SK=5numbercod  es1">Support3</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18452&UID=0&SK=6numbercod  ese">Support4</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18457&UID=0&SK=6numbercod  es9">Support5</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18447&UID=0&SK=fnumbercod  es4">Support6</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18417&UID=0&SK=6numbercod  es0">Support7</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18437&UID=0&SK=9numbercod  es5">Support8</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18422&UID=0&SK=enumbercod  esc">Support9</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18432&UID=0&SK=5numbercod  es1">Support10</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19612&UID=0&SK=dnumbercod  es3">Support11</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19607&UID=0&SK=5numbercod  esf">Support12</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19617&UID=0&SK=7numbercod  es7">Support13</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19907&UID=0&SK=bnumbercod  es6">Support14</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19912&UID=0&SK=enumbercod  esf">Support15</option>
       <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=20212&UID=0&SK=9numbercod  esc">Support16</option>
       </select>                   
       <input type="button" value="Submit" onclick="supportWindow(document.getElementById('sel').value  )">
       </p>
    </div>
  • kunal pawar
    Contributor
    • Oct 2007
    • 297

    #2
    Every is right here except argument passing. URL is in string so at time to pass url it should be in single quote

    [HTML]<div style="margin-top:2em;float:l eft;">
    Choose the type of support needed:
    <script type="text/javascript">
    function supportWindow()
    {
    URL= document.getEle mentById('sel') .value;
    window.open(URL +"&refURL="+esc ape(document.lo cation),'popupw indow','scrollb a rs,resizable');
    return false;
    }
    </script>

    <p>
    <select id="sel" size="1">
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18427 &UID=0&SK=9numb ercod ese">Support1</option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18442 &UID=0&SK=fnumb ercod es3">Support2</option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18407 &UID=0&SK=5numb ercod es1">Support3</option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18452 &UID=0&SK=6numb ercod ese">Support4</option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18457 &UID=0&SK=6numb ercod es9">Support5</option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18447 &UID=0&SK=fnumb ercod es4">Support6</option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18417 &UID=0&SK=6numb ercod es0">Support7</option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18437 &UID=0&SK=9numb ercod es5">Support8</option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18422 &UID=0&SK=enumb ercod esc">Support9</option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18432 &UID=0&SK=5numb ercod es1">Support10 </option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=19612 &UID=0&SK=dnumb ercod es3">Support11 </option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=19607 &UID=0&SK=5numb ercod esf">Support12 </option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=19617 &UID=0&SK=7numb ercod es7">Support13 </option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=19907 &UID=0&SK=bnumb ercod es6">Support14 </option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=19912 &UID=0&SK=enumb ercod esf">Support15 </option>
    <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=20212 &UID=0&SK=9numb ercod esc">Support16 </option>
    </select>
    <input type="button" value="Submit" onclick="suppor tWindow()">
    </p>
    </div>[/HTML]
    Last edited by acoder; Apr 9 '08, 03:18 PM. Reason: Added code tags

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Originally posted by wreed06
      I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully validated my HTML and CSS code.

      1. When I clear cache and refresh my webpage, it takes 3 tries before the popup window displays - I click on the button once, a white window the size of my webpage displays. I close it and click on the button again (for the same option) and a white window the size of my webpage displays again. Close that window and click the button again (for the same option) and a white window initially displays, then goes away and the normal sized popup window displays correctly. I can then close the popup and choose any other option and get the popup with the first try. Once I clear cache though, it starts over again.

      2. Once the popup window is displaying, it initially displays as a white page the same size as the webpage, then when it connects to the URL the white page goes away and the normal sized popup window displays.

      I'm looking for 1. the popup window to display the first time I click on the submit button whether I've cleared cache or not, and 2. the initial, extra white page to not display.
      Can you access these pages without using window.open(), e.g. by typing in the address bar?

      Comment

      • kunal pawar
        Contributor
        • Oct 2007
        • 297

        #4
        Originally posted by acoder
        Can you access these pages without using window.open(), e.g. by typing in the address bar?
        not getting, what want exactly

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Originally posted by kunal pawar
          not getting, what want exactly
          I was asking the OP or were you doing the same, but quoted me instead of the OP?

          Comment

          • omerbutt
            Contributor
            • Nov 2006
            • 638

            #6
            Originally posted by wreed06
            I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully validated my HTML and CSS code.

            1. When I clear cache and refresh my webpage, it takes 3 tries before the popup window displays - I click on the button once, a white window the size of my webpage displays. I close it and click on the button again (for the same option) and a white window the size of my webpage displays again. Close that window and click the button again (for the same option) and a white window initially displays, then goes away and the normal sized popup window displays correctly. I can then close the popup and choose any other option and get the popup with the first try. Once I clear cache though, it starts over again.

            2. Once the popup window is displaying, it initially displays as a white page the same size as the webpage, then when it connects to the URL the white page goes away and the normal sized popup window displays.

            I'm looking for 1. the popup window to display the first time I click on the submit button whether I've cleared cache or not, and 2. the initial, extra white page to not display.

            I really appreciate any help you might be able to offer.
            Thank you.

            Code:
            <div style="margin-top:2em;float:left;">
               Choose the type of support needed:
               <script type="text/javascript">
                  function supportWindow(URL)
                  {
                  window.open(URL+"&refURL="+escape(document.location),'popupwindow','scrollba  rs,resizable');
                  return false;
                  }
               </script>
            
               <p>
               <select id="sel" size="1">
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18427&UID=0&SK=9numbercod  ese">Support1</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18442&UID=0&SK=fnumbercod  es3">Support2</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18407&UID=0&SK=5numbercod  es1">Support3</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18452&UID=0&SK=6numbercod  ese">Support4</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18457&UID=0&SK=6numbercod  es9">Support5</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18447&UID=0&SK=fnumbercod  es4">Support6</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18417&UID=0&SK=6numbercod  es0">Support7</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18437&UID=0&SK=9numbercod  es5">Support8</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18422&UID=0&SK=enumbercod  esc">Support9</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18432&UID=0&SK=5numbercod  es1">Support10</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19612&UID=0&SK=dnumbercod  es3">Support11</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19607&UID=0&SK=5numbercod  esf">Support12</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19617&UID=0&SK=7numbercod  es7">Support13</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19907&UID=0&SK=bnumbercod  es6">Support14</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19912&UID=0&SK=enumbercod  esf">Support15</option>
               <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=20212&UID=0&SK=9numbercod  esc">Support16</option>
               </select>                   
               <input type="button" value="Submit" onclick="supportWindow(document.getElementById('sel').value  )">
               </p>
            </div>
            try it using like this
            [code=html]
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
            <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>popup</title>
            <script type="text/javascript" language="javas cript">
            function supportWindow() {
            var URL= document.getEle mentById('sel') .value;
            alert(URL);
            window.open(URL ,'popupwindow', 'scrollbars,res izable');
            return false;
            }
            </script>
            </head>

            <body>
            <div style="margin-top:2em;float:l eft;">
            Choose the type of support needed:
            <p>
            <select id="sel" name="sel"> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18442 &UID=0&SK=fnumb ercodes3">Suppo rt1</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18442 &UID=0&SK=fnumb ercodes3">Suppo rt2</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18407 &UID=0&SK=5numb ercodes1">Suppo rt3</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18452 &UID=0&SK=6numb ercodese">Suppo rt4</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18457 &UID=0&SK=6numb ercodes9">Suppo rt5</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18447 &UID=0&SK=fnumb ercodes4">Suppo rt6</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18417 &UID=0&SK=6numb ercodes0">Suppo rt7</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18437 &UID=0&SK=9numb ercodes5">Suppo rt8</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18422 &UID=0&SK=enumb ercodesc">Suppo rt9</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=18432 &UID=0&SK=5numb ercodes1">Suppo rt10</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=19612 &UID=0&SK=dnumb ercodes3">Suppo rt11</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=19607 &UID=0&SK=5numb ercodesf">Suppo rt12</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=19617 &UID=0&SK=7numb ercodes7">Suppo rt13</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=19907 &UID=0&SK=bnumb ercodes6">Suppo rt14</option> <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=19912 &UID=0&SK=enumb ercodesf">Suppo rt15</option>
            <option value="https://company.webex.c om/u2logic/webacd.wbx?AT=p qform&QID=20212 &UID=0&SK=9numb ercodesc">Suppo rt16</option>
            </select>
            <input type="button" value="Submit" onclick="suppor tWindow();">
            </p>
            </div>
            </body>
            </html>

            [/code]

            Comment

            Working...