473,326 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

dropdown and popup


hello,

Here is my code and it works fine
The problem is that i don't want that the new page (page1.htm or page2.htm
or ...) opens as a new page
I want that page1.htm (or ...) opens in a popup
What must i change ?

----------
<form method="post" name="MyFrmName" action="xxxxx.asp">
<select name="MyChoice" size="1" class="keuzevak1">
<option value="---"> </option>
<option value="Room 1" id="page1.htm">Room 1</option>
<option value="Room 2" id="page2.htm">Room 2</option>
<option value="Room 3" id="page3.htm">Room 3</option>
.........
<INPUT type="button" name="go" value="Go"
onClick="window.location=document.MyFrmName.MyChoi ce.options[document.MyFrmName.MyChoice.selectedIndex].id">
........
</form>
----------

thanks
Jul 23 '05 #1
1 1266
_help_ wrote:
hello,

Here is my code and it works fine
The problem is that i don't want that the new page (page1.htm or page2.htm
or ...) opens as a new page
I want that page1.htm (or ...) opens in a popup
What must i change ?

----------
<form method="post" name="MyFrmName" action="xxxxx.asp">
<select name="MyChoice" size="1" class="keuzevak1">
<option value="---"> </option>
<option value="Room 1" id="page1.htm">Room 1</option>
<option value="Room 2" id="page2.htm">Room 2</option>
<option value="Room 3" id="page3.htm">Room 3</option>
........
<INPUT type="button" name="go" value="Go"
onClick="window.location=document.MyFrmName.MyChoi ce.options[document.MyFrmName.MyChoice.selectedIndex].id">
.......
</form>
----------


<INPUT type="button" name="go" value="Go"
onClick="if(si=this.form.MyChoice.selectedIndex){w =window.open(this.form.MyChoice[si].id)}
">
Mick

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Joseph Barron | last post by:
Here is a SIMPLE problem that I'm trying to solve. It works in Netscape 6.2, but IE6 gives ""No such interface supported." Below are page1.htm and page2.htm . In page1.htm, there are two...
1
by: Ian Hubling | last post by:
I've spent hours adapting various scripts from this forum, but haven't been able to make anything work yet. Any help would be appreciated. What I want seems simple - which is why I can't believe...
3
by: Dave | last post by:
We are developing a web page that shows large graphics. To provide more screen space for the graphics, we allow the user to popup a window that places itself over the top part of the browser. This...
6
by: passion_to_be_free | last post by:
This is probably simple, but I can't seem to find it anywhere. I have have some values stored in javascript variables. I have a <select> dropdown list whose options correspond to these values. I...
0
by: Manish | last post by:
Hi All, I'm having this problem I hope someone can help provide a solution for it :) I've this dropdown list box in a usercontrol which I'm populating from the database (it's viewstate property...
4
by: nicholas | last post by:
Hi, On this page you can see a dropdown with auto postback: http://www.b2blearning.be/en/planning.aspx When you change the dropdown, the planning dates are populated. But if you do that a few...
5
by: Manny Chohan | last post by:
Hi Guys, I have a table with country field for each user. Now when i go into modify mode, i load the dropdown list with all the countries from the datbase. I need to preselect the index for the...
5
by: david | last post by:
I have a question in the following. Any one could give me a help? Thanks David The dataset is declared and created at Class level. My source code is here: Private Sub...
1
by: dana lees | last post by:
Hello, I am developing a C# asp.net application. I have a page in which there is a dropdown of users. I have another popup window in which i can add/update the users list. After...
5
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a VS 2008 ASP.NET webform that has a reportview tag on it, accessing an .RLDC report in local report. The columns for the report are essentially: Month Item #1 Item#2 Item#3 ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.