By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,278 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,278 IT Pros & Developers. It's quick & easy.

Popup Window does not display

P: 3
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.

Expand|Select|Wrap|Line Numbers
  1. <div style="margin-top:2em;float:left;">
  2.    Choose the type of support needed:
  3.    <script type="text/javascript">
  4.       function supportWindow(URL)
  5.       {
  6.       window.open(URL+"&refURL="+escape(document.location),'popupwindow','scrollba  rs,resizable');
  7.       return false;
  8.       }
  9.    </script>
  10.  
  11.    <p>
  12.    <select id="sel" size="1">
  13.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18427&UID=0&SK=9numbercod  ese">Support1</option>
  14.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18442&UID=0&SK=fnumbercod  es3">Support2</option>
  15.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18407&UID=0&SK=5numbercod  es1">Support3</option>
  16.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18452&UID=0&SK=6numbercod  ese">Support4</option>
  17.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18457&UID=0&SK=6numbercod  es9">Support5</option>
  18.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18447&UID=0&SK=fnumbercod  es4">Support6</option>
  19.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18417&UID=0&SK=6numbercod  es0">Support7</option>
  20.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18437&UID=0&SK=9numbercod  es5">Support8</option>
  21.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18422&UID=0&SK=enumbercod  esc">Support9</option>
  22.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18432&UID=0&SK=5numbercod  es1">Support10</option>
  23.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19612&UID=0&SK=dnumbercod  es3">Support11</option>
  24.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19607&UID=0&SK=5numbercod  esf">Support12</option>
  25.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19617&UID=0&SK=7numbercod  es7">Support13</option>
  26.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19907&UID=0&SK=bnumbercod  es6">Support14</option>
  27.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19912&UID=0&SK=enumbercod  esf">Support15</option>
  28.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=20212&UID=0&SK=9numbercod  esc">Support16</option>
  29.    </select>                   
  30.    <input type="button" value="Submit" onclick="supportWindow(document.getElementById('sel').value  )">
  31.    </p>
  32. </div>
  33.  
Apr 9 '08 #1
Share this Question
Share on Google+
5 Replies


kunal pawar
100+
P: 297
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:left;">
Choose the type of support needed:
<script type="text/javascript">
function supportWindow()
{
URL= document.getElementById('sel').value;
window.open(URL+"&refURL="+escape(document.locatio n),'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()">
</p>
</div>[/HTML]
Apr 9 '08 #2

acoder
Expert Mod 15k+
P: 16,027
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?
Apr 9 '08 #3

kunal pawar
100+
P: 297
Can you access these pages without using window.open(), e.g. by typing in the address bar?
not getting, what want exactly
Apr 11 '08 #4

acoder
Expert Mod 15k+
P: 16,027
not getting, what want exactly
I was asking the OP or were you doing the same, but quoted me instead of the OP?
Apr 11 '08 #5

omerbutt
100+
P: 638
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.

Expand|Select|Wrap|Line Numbers
  1. <div style="margin-top:2em;float:left;">
  2.    Choose the type of support needed:
  3.    <script type="text/javascript">
  4.       function supportWindow(URL)
  5.       {
  6.       window.open(URL+"&refURL="+escape(document.location),'popupwindow','scrollba  rs,resizable');
  7.       return false;
  8.       }
  9.    </script>
  10.  
  11.    <p>
  12.    <select id="sel" size="1">
  13.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18427&UID=0&SK=9numbercod  ese">Support1</option>
  14.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18442&UID=0&SK=fnumbercod  es3">Support2</option>
  15.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18407&UID=0&SK=5numbercod  es1">Support3</option>
  16.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18452&UID=0&SK=6numbercod  ese">Support4</option>
  17.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18457&UID=0&SK=6numbercod  es9">Support5</option>
  18.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18447&UID=0&SK=fnumbercod  es4">Support6</option>
  19.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18417&UID=0&SK=6numbercod  es0">Support7</option>
  20.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18437&UID=0&SK=9numbercod  es5">Support8</option>
  21.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18422&UID=0&SK=enumbercod  esc">Support9</option>
  22.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18432&UID=0&SK=5numbercod  es1">Support10</option>
  23.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19612&UID=0&SK=dnumbercod  es3">Support11</option>
  24.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19607&UID=0&SK=5numbercod  esf">Support12</option>
  25.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19617&UID=0&SK=7numbercod  es7">Support13</option>
  26.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19907&UID=0&SK=bnumbercod  es6">Support14</option>
  27.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19912&UID=0&SK=enumbercod  esf">Support15</option>
  28.    <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=20212&UID=0&SK=9numbercod  esc">Support16</option>
  29.    </select>                   
  30.    <input type="button" value="Submit" onclick="supportWindow(document.getElementById('sel').value  )">
  31.    </p>
  32. </div>
  33.  
try it using like this
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>popup</title>
  6.  <script type="text/javascript" language="javascript">
  7.     function supportWindow(){
  8.         var URL= document.getElementById('sel').value;
  9.         alert(URL);
  10.         window.open(URL,'popupwindow','scrollbars,resizable');
  11.         return false;
  12.     }
  13.  </script>
  14. </head>
  15.  
  16. <body>
  17.       <div style="margin-top:2em;float:left;">
  18.          Choose the type of support needed:
  19.          <p>
  20.              <select id="sel" name="sel">             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18442&UID=0&SK=fnumbercodes3">Support1</option>             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18442&UID=0&SK=fnumbercodes3">Support2</option>             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18407&UID=0&SK=5numbercodes1">Support3</option>             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18452&UID=0&SK=6numbercodese">Support4</option>             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18457&UID=0&SK=6numbercodes9">Support5</option>             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18447&UID=0&SK=fnumbercodes4">Support6</option>             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18417&UID=0&SK=6numbercodes0">Support7</option>             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18437&UID=0&SK=9numbercodes5">Support8</option>             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18422&UID=0&SK=enumbercodesc">Support9</option>             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=18432&UID=0&SK=5numbercodes1">Support10</option>             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19612&UID=0&SK=dnumbercodes3">Support11</option>             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19607&UID=0&SK=5numbercodesf">Support12</option>             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19617&UID=0&SK=7numbercodes7">Support13</option>           <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19907&UID=0&SK=bnumbercodes6">Support14</option>             <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=19912&UID=0&SK=enumbercodesf">Support15</option>
  21. <option value="https://company.webex.com/u2logic/webacd.wbx?AT=pqform&QID=20212&UID=0&SK=9numbercodesc">Support16</option>
  22. </select>
  23. <input type="button" value="Submit" onclick="supportWindow();">
  24.     </p>
  25.       </div>
  26. </body>
  27. </html>
  28.  
  29.  
Apr 17 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.