Opening Items From Dropdown List In New Window
Dec 8, 2011
I have a dropdown list that I use to navigate pages on an external website. Currently, my dropdown list will open a new page in my current window. I want to be able to open the page in a new window. I'm sure it's a simple fix, but being somewhat of a noob to Javascript I can't figure out how to solve it.
View 2 Replies
ADVERTISEMENT
Sep 2, 2009
is it possible to limit the number of visible items in a dropdown list using javascript or any other way?
View 1 Replies
View Related
Sep 2, 2009
is it possible to limit the number of displayed items in a dropdown list? for example list of countries will display only 5 and people scroll down to see the rest of the list?
View 5 Replies
View Related
Oct 27, 2009
How to insert scrollbar to the dropdown list if it exceeds 8 items.
View 1 Replies
View Related
Apr 20, 2011
I have two dropdown lists with the second one being dependent on the selection in the first.
Options in list 1: 1,3 or 4
List two should be enabled when 3 or 4 is selected in list 1.
So far so good, managed to get it to work with only one set of lists, but I actually have 18 of those sets in this form:
<select name="fw[$i]" id="fw[$i]">
<option value="1">FWH</option>
<option value="3">links</option>
<option value="4">rechts</option>
[Code]....
I'm not that adept in javascript programming, more like a trial and error guy, how has hit the wall with this problem.
View 20 Replies
View Related
Jan 29, 2010
I have a HTML and I am opening another link in a separate window using window.open() . The child window is something like 'http://yahoo.com' which is out side html. I need to refresh the parent window when the child window is closed.
View 4 Replies
View Related
Jun 30, 2009
I have found this show/hide script which I have altered to my needs.
What I want it to do is when I have a list of ex. users, I want to be able to click on a link and it shows some information for that user... This part I have figured out, but when I click on another user I want the previous show to hide and the new one show...
Here is my javascript code...
View 6 Replies
View Related
Aug 16, 2010
i am writing a script that will update a dropdown list based on the selection of a previous list. the script is run by a PHP script, so instead of posting the PHP, i will post an example client-side script. the hierachy is: category, sub category, brand (but sometimes there exists no sub category and the PHP script queries and adds brands instead) everything works correctly, except for one major issue: you can not change the selection of the third (brand) box this could be an easy fix for some coders, but i am not experienced in javascript and could really use some help. here is an example script, sorry it is so long
[Code]...
View 4 Replies
View Related
Jul 13, 2011
I have been struggling on a bit of code for a while now. I need to populate a second drop down list (Region) based upon the selection of the first (County).I have found a piece of code that works on its own and have adapted to suit my needs - see below. However, when I drop it into my main page the javascript is not working. It's because of the formObject but I just don't know enough to resolve this! Furthermore, I need the textboxes the user has already completed in the form to retain their value once the javascript kicks in as the completed form will submit to a database.This piece of code is working well . . . .
<?php
$link = mysql_connect('myhost', 'myusername', 'mypassword') or die('Could not connect: ' . mysql_error());
mysql_select_db('mydatabase') or die('Could not select database');[code]......
View 2 Replies
View Related
Sep 1, 2010
I am trying to construct a Jukebox for my website. I have spent considerable time all over the WEB and at this forum which addressed the issue in a 50 page thread. Please see: [url]
I got a lot of ideas from this thread but still cannot figure a way to do the following within the Jukebox. These are my main two questions for everything below:
1.How can I have the Jukebox cycle through all tunes and then start over from the beginning?
2.How can I allow the user to select a tune from a list but not a drop down list, have the Jukebox start from the users selection and then play all songs to the end. Then as in #1, start over from the beginning?
Per this thread I came away with basically two ways to assemble the jukebox. One uses links in a drop down list which the user can choose from. The other is to use an .m3u playlist. The user can only select a playlist from the drop down.
Below, I have included the code for each Jukebox. To see the Jukeboxes in action please go to my website where I have posted some test pages exhibiting the jukeboxes that I am referring to.
The following is the Jukebox which utilizes an .m3u playlist. If I end up using this idea I would like the tunes in the .m3u playlist to be displayed and allow the user to be able to choose a tune in the list. Then have the list play to the end of all tunes in the list. Then start over from the beginning of the list. After this code is the .m3u playlist.
Go to url removed and click on the link that says:
Jukebox utilizing an .m3u playlist:
Here is the .m3u playlist for the above code:
The following code is for the Jukebox that has a list of links in a dropdown list. If I go with this idea, I would like for the list not to be a dropdown list but just a list of tunes. The user should be able to click on any tune in the list and the player should start from that point, play all the remaining tunes in the list and then start from the beginning.
Go to url removed and click on the link that says:
Another idea I found on the WEB also uses an .m3u playlist. The good thing about it is that it lists all the tunes in the playlist which the user can then select from. This jukebox calls up an entire Windows Media Player. If I was to use this idea I would like to be able to disable the left side of the player where the user has options such as burning to CD, Media Guide, Radio Tuner etc¦
Go to url removed and click on the link that says:
View 1 Replies
View Related
Jan 8, 2004
I have a popup window which has the search form in. What I want to do is for the popup window to close once the form is submitted, and to post the form data to a page on the main window.
Is anyone able to advise. As the main page is dynamic, it is not possible to give the page a name.
View 4 Replies
View Related
Apr 25, 2011
code to show ( overlay / modal window ) to the user when closing or navigating away from the page ( i want put in this window facebook share to make the user to share the page in his facebook ) , bytheway i wanna use it in my wordpress in every post could it be happen ?
View 1 Replies
View Related
Jul 20, 2005
I'm using window.open and as soon as I click on the link to open the new window, my original page content is replaced with '[object]'.
<
href="javascript:onClick=window.open('leaving.htm','','t oolbar=no,location=no,status=no,menubar=no,scrollb ars=no,resizable=no,width=300,height=400')">Lin
1 </a>
Any ideas ...
View 1 Replies
View Related
Feb 2, 2011
I am looking to have a link open a closeable window that is contained within a browser window. If you click on the "sizing charts" link on this website, this is exactly what I am looking to do:
[URL]
The window is contained within the current browser window, it can be dragged around, but not outside the parameters of the browser window.
View 2 Replies
View Related
Feb 4, 2010
I am creating a website and it utilizes the Apple Touch Icon:
<link rel="apple-touch-icon" href="/customIcon.png"/>
Basically, I want to be able to change the bolded part from a drop down menu. Like, the user would select a certain item in the drop down menu and it would change the bolded part to a different link (the one corresponding to the drop down menu selection).
View 6 Replies
View Related
Nov 29, 2010
I am using a drop down menu for a website I'm working on to display menu items under categories. I'm using the same code to do this on two different pages with the actual content of the menu's loading from a MySQL database using PHP scripts. [URL] On the menu.php page I left the code below in the mix which drops down the first category listed on the left. On the seasonal.php page I took the code below out and it no longer drops down any menu by default when the page is loaded. What I'd like to do is drop down nothing initially when the page is loaded but if someone opens up the "Cupcakes" category and clicks on an item it would keep that category open when it loads the item details in the center column. If you need to see more code let me know!
[Code]...
View 3 Replies
View Related
Jul 21, 2011
I have a site where one of the links I have set up to open a pop up window which will display Terms & Agreement information, at the bottom there is a check box and a submit button for users to click on if they agree to the terms. I was able to get that working but the thing is when the user clicks in the check box and hits submit I want them to be directed to a page which has a form on it but I wanted the page to open in the original (Parent) window. This is where I am lost cause I found some coding which will open the page with the form in the pop up window but Ideally once they agree to terms and hit submit I'd like the pop up window to disappear and the new page open in the Parent window... is this possible below is the coding I'm using.
Here is the form:
<form method="get" action="this is where my link will go" onsubmit="return yes_no(this.form) " name="Agree">
<INPUT name="agree" name="agree" value="agree" type="checkbox"> I agree to terms
<input type="submit" name="submit" value="Accept Terms">
[Code].....
View 1 Replies
View Related
Oct 10, 2011
I'm using a bit of Javascript to display content based on the dropdown selection:http://jsfiddle.net/mcgarriers/wjLXk/However, I would like it when the user selects "show two" that it shows the 2 div elements rather than specifically div2.And for "show three" it would show all 3 divs.
View 2 Replies
View Related
Jul 23, 2005
I have a javascript index that is similar to the one in the Windows
help. It has a text field that allows the you to type text and it
finds the closest item in the list below the text field. The list is
simply a select element with options that looks like this:
<SELECT>
<OPTION VALUE="1">A
<OPTION VALUE="2">B
<OPTION VALUE="3">C
</SELECT>
My problem is when I have a large list, the closest entry selects the
item in the list at the bottom of the list box, not the top of the
list box.
So here's the question: Is there a way to get the list box to display
the selected item and move it to the top of the list and not just find
it at the bottom?
To get an idea of what I 'want' it to look like, in Windows, go to
Help & Support (in XP it's in your start menu) and pick Index. I
basically want it to mirror that functionality.
View 1 Replies
View Related
Aug 21, 2010
I want to move elements of one select listbox to another if a checkbox is checked, but all the items get moved except one. Here is my code
<html>
<head>
<script type="text/javascript">
function add_to_list(){
if(document.getElementById("add").checked){
var list_length=document.getElementById('firstlist').options.length;
for(i=0;i<list_length;i++){
View 5 Replies
View Related
Apr 30, 2010
I have a form populated by PHP and MySql and I am trying to get the values returned. I have amanged to be able to move the items from one list box to another and get the values of the second list box. What I need now is the values of the items added to the second list box and the values of the items removed from the second list box. The website is currently under development on my local server but if you need to see it running LIVE, let me know and I will upload what I have currently.
[Code]...
View 6 Replies
View Related
Sep 15, 2009
For some reason my loadFirstPage in the following code is unable to find the dynamically created list items built up in the buildGallery function. I have a button in the extended code that calls the loadFirstPage function on a click which works perfectly when I click it
var buildNavi = function(){
var naviTemplate ='<li class="prev"><a href="#" title="Previous">Previous</a>
</li><li><span class="current"></span><span class="total">
[code]....
View 4 Replies
View Related
Jul 29, 2010
I want to compare items based on what the user picks there will be 3 drop down menus and the drop down menus should alter the HTML table each time it is changed, giving different option values and stuff. I am wondering how to go about this I have the basic stuff setup but I am not really sure how to add to a table that all 3 options use.Here is my current code for the drop downs.
<form name="compare">
<select name="compare">
<option value="V1">Value 1</option>
[code]...
I want the user to select one of the options from above and a table to show up showing the differences between the others for example; someone selects Value 1 for compare, and Value 2 for compare 2, and Value 3 for Compare 3, they should be shown a table which has the differences between Value 1, Value 2, Value 3. So lets say Value 1 and Value 3 offers you "Help" while value 2 doesn't. it should show a table that says
Features Value 1 Value 2 Value 3
Help YES NO YES
View 6 Replies
View Related
Nov 30, 2011
I was recommended to vertically align these list items using javascript. I am needing to vertically align the "identity" and "web presence" list items with each other: [URL]
View 9 Replies
View Related
Apr 19, 2010
I have created a form with 2 list boxes and coded to allow a user to move items from one list box across to another.
What I need to do now is
1. to send the completed right list to a php page for database updating.
2. be able to have up to 3 list box sets on one page and reference each individually. i.e one for parent categories, one for child categories and one for products belonging to this category.
the page is located at
[URL]
the code is as follows
Code:
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function move(frombox, tobox) {
var arrFrombox = new Array();
[Code]....
View 1 Replies
View Related
Jun 3, 2011
I am attempting to provide the user with an estimated price value given their input in 2 form fields.
One is a dropdown and the other is a radio button set. They will output to a text box
I was able to achieve the desired result using integers as the text box options. However, when i replaced them with strings, the calculations no longer work (obviously )
My problem are:
1. Associating integer values with the word items listed in the dropdown. Example: "standard" should have a value of 100, "deluxe" =200 etc...
2. actually getting the calculation to complete using both dropdown and radio button elements. I'm not sure what logic to use to get it to total out. I essentially want the selected plan flat rate cost ($100 for "standard", $200 for "deluxe")to be added to the additional units cost ($50*number of units selected)
Refer to the reference URL for my intended layout and functionality [url]
View 4 Replies
View Related