Transfer Data From Popup List Box To Parent List Box

Jul 6, 2004

when i try to add a data from popup list box to parent window listbox it pops an error.
Servlet threw an exception. This is my code

var optionvalue=thisForm.behaviourname.options[i].value;
var len=window.opener.document.FormMaterialDetail.inparameterid.options.length; window.opener.document.FormMaterialDetail.inparameterid.options[len] = new Option(thisForm.behaviourname.options[i].text, optionvalue);

Is the above code right?

View 1 Replies


ADVERTISEMENT

JQuery :: Transfer Data From Child To Parent (Modal)?

Jun 1, 2011

I have two pages parent.html and child.html, the parent has a link called "Search", when clicked the child open in a modal centered window that has a search form, the search in the child return a list of rows, so when clicking a row the child window close and data is transferred to the parent.

View 1 Replies View Related

JQuery :: Transfer Data From Parent Input To Child Input?

Jan 26, 2011

I have 2 windows - parent and children.

in parent

<form name="calc" action="" method="post">
<input value="0" type="text" name="pay" id="pay">
</form>

in child

<form name="payment" action="" method="post">
<input value="0" type="text" name="pay_str" id="pay_str">
</form>

how can i transfer data from parent input to child input?

View 3 Replies View Related

Transfer Data From Pop Up Window To Parent Window?

Jan 14, 2011

I am currently creating which will allow the user to upload their own pictures. For this I am opening a new pop up window where the user can select the file they wish and then upload it (similar to ebay's picture upload). The pop up works fine and so does the file upload however I am having trouble transferring any data from the pop up window back to the parent window. I have been investigating the opener method but cannot seem to get it to work. Below is some simple code that I've been trying to get to work.

first page.
<form name="loadpic" id="loadpic" action="createPost.php" method="post">
<br />
<br />
Testing transfer between pages... <input type="button" value="open pop up" onclick="window.open('popup.php','pop up box','width=400,height=200')" />

[Code]...

View 2 Replies View Related

Data String From Parent Window To Popup Not Passed

Jun 23, 2010

Inside of a page, there is a iFrame, which houses WYSIWYG editor.I'm trying to pass data (passedString: html, inline css, text ...) to a popup.When I pass same string to same div with id="idx" located on a page, where iFrame is located, it receives it without problems.Problem appears, when I try to pass string to popup.

View 1 Replies View Related

DropDown List Popup Depending On Selection?

Oct 27, 2010

Here is my dropdown menu:
<select name="peeps">
<option value="Frank Tompson">Frank Tompson</option>
<option value="Henry Wilson">Henry Wilson</option>
<option value="Bill Kent">Bill Kent</option>
<option value="Jessi McDonald"> Jessi McDonald</option>
<option value="John Hays">John Hays</option>
How can I make it so if I click on John Hays a JavaScript pop up will say Hello John Hays, and if I click on Bill Kent a popup will say hello Bill Kent and if I click on any other name nothing happens?

View 3 Replies View Related

Multiple Drop Down With Dynamic List (PHP - MySql - AJAX) - Filter The Results Into A List

Aug 2, 2011

I have a table that has parts with multiple characteristics. Part Number, Height, Width, Capacity, Price, Etc. I would like to have a drop downs for all of these values, when a user selects one of these values it will filter the results into a list. Ex. user selects a part that has a Height of 6 and width of 10 it will only list those parts. As I said earlier, I have a script that will give me all the parts, however I am not able to make the onchange list parts with multiple values.

View 9 Replies View Related

JQuery :: Limit If A Value Can Be Selected In A Drop Down List (select) Based On Other List

Jun 9, 2009

I have a page that displays a list of people playing in a tournament. I need to be able to generate a Leaderboard based on which players are manually selected by the admin. Next to each person there is a drop-down list. An admin can go in and select a "slot" that a player should be in on the leader board from 1 to 8, or leave it blank if none. What I need to figure out how to do is the following, when a change event happens on a drop-down list, and say the value 5 is selected, I need to check to make sure that 5 is not already selected in one of the other players drop-down lists, in other words, that the 5th leaderboard slot is not already full. if it is, display an error message and make them change that one first. how to do that with jQuery? I'm thinking it will have something to do with the each() function, but not sure exactly how the logic should work.

View 4 Replies View Related

JQuery :: Access The 'a Href' In A List Item In An Unordered List??

Oct 8, 2010

i have a menu and i would like to change the color of the Categories which have subcategories only. In my example the basic categories are: News , Announcements , Contact and Career. Only Announcements and Career categories have subcategories. So i would like those two to turn green. The fact is that the list items include a href ,so i don't know how to access those "a href" combined with "this".

<ul id="my_menu">
<li id="id0"><a href="#" style="text-decoration:none">News</a></li>
<li id="id1"><a href="#" style="text-decoration:none">Announcements</a>
<ul>

[Code].....

View 3 Replies View Related

JQuery :: Simple Expand/collapse List : Big Gap Of Space After The List?

Jun 2, 2010

I have been trying to make an expand/collapse (essentially accordion) list. So far, everything works and looks fine in Firefox, Safari, and Chrome, but in IE8, the page height is static when it loads, with a page height being as if all headers in the list were expanded. The expand/collapse functionality works,but as you can imagine, there is this big gap of space after the list.

The html markup uses <h2> tags for the always-visible header portion and a <div> for the expanding/collapsing content. The <div> content contains form elements and everything is enclosed in a form tag.Anyways, here is the jQuery code:

$(document).ready(function() {
$('<img src="plus.png" class="icon" />').prependTo('.header');
$('.content').hide();[code].....

View 5 Replies View Related

Update A Dropdown List Based On The Selection Of A Previous List

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

PHP Drop Down List Selection Populates Second Dropdown List Or Text Box?

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

AJAX :: Populate An ASP List Box Based On Selection Of A Previous List Box?

Mar 7, 2011

I have 3 ASP list boxes. I would like to populate the second list box based on the selection in the first list box and based on the selection in the second list box, populate the third. I would like to do this using AJAX. How can I do it? Can someone please give me the code snippet as I am a complete noob when it comes to AJAX and I kinda am running outta time to finish implementing it. Additionally, should I use ASP boxes or HTML <select> tag?

View 4 Replies View Related

Reorder List Of Data?

Jun 15, 2010

I am a novice with JavaScript, and I was wondering how I would reorder a list of data. I googled this and found some ways but none of them really applied to me.

I have a database with names of courses (its for a restaurant), they all have an ID which ranges from 1-8 (I only have 8 courses so far). I can add and delete courses from this table but I would like to be able to reorder theses courses, in other words change their ID, without having to go into the database and manually change itself.

View 6 Replies View Related

Reorder A List Of Data?

Jun 15, 2010

how I would reorder a list of data. I googled this and found some ways but none of them really applied to me. I have a database with names of courses (its for a restaurant), they all have an ID which ranges from 1-8 (I only have 8 courses so far). I can add and delete courses from this table but I would like to be able to reorder theses courses, in other words change their ID, without having to go into the database and manually change itself.

View 6 Replies View Related

Double Click A List Item That Fires A Modal Popup

Jun 3, 2009

Firstly, I dont even know if this is possible but anyway I have a HTML form element problem, I want to be able to double click one item in a multi select box and I want that double click to fire of a modal popup box.

I am able to get a regular hyperlink to do the action for me but I need it to be an item in a multi select box.

I have uploaded an example of my problem here,[url].

so for example i would like a popup to appear when you double click "volvo" just like the popup appears for the hyperlink at the bottom.

View 4 Replies View Related

Popup Submit Button While Selecting Item From Dropdown List?

Aug 12, 2011

how to popup submit button while selecting item from the dropdown list. i had completed the task of displaying textfield while selecting item from the dropdown list but unable to figure out how to popup the submit button with textfield while an item is selected from the dropdown list.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

[Code]....

View 3 Replies View Related

JQuery :: Inserting A List Element Into An Ordered List?

Jul 19, 2010

I'm working on a project that requires dynamic manipulation of an ordered list -- adding and removing elements in response to the user pressing buttons. I've run in to some odd behavior. Here's my code:

HTML

<ol id="track-list">
<li>Static Content Here</li>
</ol>
<input type="button" id="add-track" value="Add Track" />

jQuery:

$("#add-track").click(function(){
var listEl = $("<li>Dynamic Content Here</li>");
listEl.hide();

[code]....

Looks pretty straightforward, problem is when I add the new list element it does not prepend it with any number (being part of an ordered list). Now if I remove the hide and fadeIn lines (just append it), it inserts it correctly with a number before it, but I want this to look pretty being jQuery and all...

View 3 Replies View Related

Jukebox - Replay List And - Create Non Dropdown List ?

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

JQuery :: Binding Data To A Drop Down List

Sep 25, 2011

This is regarding binding data to a drop down list. I am getting the data from the server and binding the data to a drop down list using JSON and JQuery. It is working fine for around 400 items, but when i need to bind the drop down with around 600 items i am getting the below error

Stop running this script? A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive.

The code i am using ot bind the drop down is as below

$.each(data, function (index, city) {
comboCity.append(
$('<option></option>').val(city.CityID).html(city.CityName)
);
});

View 2 Replies View Related

Process Data From Select List To Another Page

Mar 8, 2011

After some research I have found that I need some javescript help to process a users click from a html drop down select list.I am trying to create an admin area for a website in php and using mysql database.In my admin home page, I have an option to choose a title on a page, from a dropdown select list. Which when clicked/ chosen, should redirect to the edit_page.php.When the admin have clicked a value from the select box, how do I redirect to the edit_page.php,To prepopulate the edit_page.php form fields, do i need to include more than the: ID and LINKLABEL in the select box.

View 3 Replies View Related

JQuery :: Select A Sub-list From A Long List?

Aug 14, 2009

I have a MySQL table with 90 columns and I want the users to be able to select any columns they concern and output the result accordingly. In the front-end, I can use a group of checkbox which looks very ugly and I can not setup the orders for selected columns. Is there a plug-in or some examples in jQuery, that I can make 2 parallel boxes (i.e. an original-box and a selected-box). the original- box lists all of the column names at the beginning and there is a way to move items between two boxes. And the order of items in the selected-box can be adjusted. the items in the selected-box will be used to build into an array in my backend code.

View 1 Replies View Related

JQuery :: Wrapping A Portion Of A List Within A List?

May 21, 2011

I am trying to wrap a list with in a list. I am not able to achive this. Here is the html markup:

<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>

[Code]...

View 4 Replies View Related

Get The Order Of List Item In An Unordered List?

Feb 17, 2009

I am trying to get the order of list item in an unordered list. Here is the mark up

Code HTML4Strict:
<ul id="list1">
<li>ul1 item 3</li>
<li>ul1 item 2</li>
<li>ul1 item 1</li>
</ul>

[Code]...

View 1 Replies View Related

JQuery :: Insert Data In A List Based On First Letter?

Aug 24, 2011

I am using an xml file to pull in data to jqm. I am appending the first and last name to a listview. (I am working with Datazombies example for the a-z index contact list from the iscroll git hub). How would I specify where to append ie, if the lastname is Adams (or anything that begins withletter A) Adams is appended under the listdivider with ID of A.

<script type="text/javascript">
$.ajax({
type: "GET",

[code]....

View 2 Replies View Related

JQuery :: Json - Ajax To Display Data In A List

Sep 6, 2011

I am trying to use jquery, json, ajax to display data in a list.

The js:

The div to hold the returned data:

View 10 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved