Add Items....
Jan 14, 2004
OK, what I want to do is difficult to explain so please read through. I want to find some way to add items to a form but not have that form submitted to the database just yet, not until it is completely filled with valid items.
On my webpage I have 3 columns and I display a list of items the right hand column. In the center column I have a form with place-holders visible but no items actually entered/chosen yet.
The user clicks on an item (link) in the right hand column and this item should then appear/replace (i.e. it has been added to the users selection in the center column) a place holder in the center column.
I am populating the right hand column from a MySQL database using PHP, but I posted this in the Javascript forum because I think maybe Javascript would be good to use to do this.
View 2 Replies
ADVERTISEMENT
Jan 10, 2010
version of Apycom's jQuery menu; you can find itat http://apycom.com/ and it is looking really good.I have uploaded files, and published it on a test site - www.flexin.beUnfortunately, some of the submenus starting from the second that haschildren elements, it adds the item on the top level in InternetExplorer.Does anyone on this list has any experience with this library?
View 2 Replies
View Related
Feb 25, 2011
I have an ASP.net page where I load a record set server side and upload it into a listbox. I'm trying to do all the movement functionalities of the listbox items client side. Specifically, I'm trying to figure out how to copy selected listbox items from one listbox to another -- on button click. I've searched for a while, but every example that I found moves the actual item into another listbox, I just want to copy the selected item to another listbox.
View 6 Replies
View Related
Apr 23, 2009
Can we create menu items, sub menu items using javascript coding.
View 2 Replies
View Related
Oct 21, 2005
I add items to a list of ids within a <TD> named lstCarts using the
following code:
function lstCarts_ondblclick()
{
index = NewProgram.lstCarts.selectedIndex;
if (index != -1)
{
vID = NewProgram.lstCarts.options[index].value;
vText = NewProgram.lstCarts.options[index].text;
NewProgram.lstNewCarts.options[NewProgram.lstNewCarts.length] = new
Option(vText);
NewProgram.lstNewCarts.options[NewProgram.lstNewCarts.length -
1].value = vID;
eval("NewProgram.Item" + vID + ".value = " + vID);
}}
This works fine. When I highlight an item in lstNewCarts and click on
a button to delete these items from the list the following code is
executed. This doesn't work becauset the selected item does not
disappear from the list.
function lstNewCarts_ondblclick()
{
index = NewProgram.lstNewCarts.selectedIndex;
if (index != -1)
{
vID = NewProgram.lstNewCarts.options[index].value;
vText = NewProgram.lstNewCarts.options[index].text;
eval("NewProgram.Item" + vID + ".value = -1");
}}
View 3 Replies
View Related
Feb 26, 2010
I have some javascript code that enables me to add optional extras via drop down boxes to a total (via an input form text box). Problem is I can add upto 9 different drop down boxes with different amounts that add up in the total box but when I add a tenth it wont add the tenth one up, can anyone helo me I looked through the code and cant suss it out. code...
View 8 Replies
View Related
May 26, 2009
I am trying to add selected dropdown items (in a popup window) to a hidden input field (inside the parent window). Here is the function I am using but it does not seem to work. Any ideas on what changes I need to make to get it to work?
Code JavaScript:
function addSelectedItemsToParent(domainid) {
self.opener.editdomains.parentList[domainid].value = window.document.forms[0].category_1;
window.close();
}
View 7 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
May 26, 2007
I'm creating a combobox using the Javascript and the DOM.
If the combobox exists, i don't want to create another one. I want to empty all the values and put new values.
I was able to create the combox and create the lines of code that deletes the values in the combobox (well almost) .....
View 1 Replies
View Related
Dec 17, 2010
I'm having trouble with a plugin system that I'm working on. It involves binding a doubleclick with two elements that have the same id. The two elements are different plugins, and load appropriately, however the dblclick binding seems to not change between elements. Here's my code(simplified):
$("div.editor").droppable({
drop: function(event,ui) {
objID = ui.draggable.attr("objID");
$.getJSON("objects/"+objID+"/object.json", function(data) {
[Code]....
View 1 Replies
View Related
Jul 28, 2010
I'm all new to jQuery and have the following problem. I'm sure the pros here can give me a hint, how i do it the right way:
<div class="images">
<img id="id-14" src="Jack" />
<img id="id-22" src="Dan" />
[code]....
View 1 Replies
View Related
Sep 28, 2010
I have dynamic html table , Now I want to find the items in the first column. The column name(td) is chk. How can do this using Jquery ?
View 2 Replies
View Related
Jan 24, 2011
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
[code]....
View 2 Replies
View Related
Apr 26, 2010
I have multiple ul with multiple actions on 'button' changes, i.e.:
<ul>
<li></li>
<li></li>
<li></li>
<li></li> <--this is to be hidden
</ul>
[Code]...
The UL's are to show top 3 items let's say, and hide the rest. When items are hidden on page load [top 3], the Show button is on. When that is clicked, it shows all LI's for that UL and button/link text changes to Hide, and hides all other items of all other items of other UL's apart from their top 3 items.
When the items show, and the text/image is changed to Hide, hide's on click should also hide that UL's items and only show three items for that UL. 3 items are always shown.
View 24 Replies
View Related
Feb 5, 2009
I have a site that uses bullet points. I am able to add and delete these bullets as needed. The problem i face is every time I add a new bullet and update the page all the bullets that are already there are saved again. for example lets say I have in my list:
[Code]...
So I was thinking that I could get an array of all the existing bullets and then say if the new bullet is not part of the array update it. If anyone else has any other ideas of how i could make this work I am glad to hear them. If you need code just let me know.
View 3 Replies
View Related
Nov 30, 2009
I have 2 combo boxes where you can move the items in combo box 1 to combo box 2. I want to validate that combo box 2 actually has something moved to it. How can I count the items in combo box 2. Combo box 2 will initially have no items in the box on page load. It is up to the user to move the items to combo box 2 and I want to make sure at least 1 item was moved.
View 3 Replies
View Related
Dec 2, 2010
Right now this javascript shopping cart works to 1. charge shipping based on the item, 2. the destination country, 3. it combines shipping for a quantity over 1 of the SAME item.Each item has 2 different possible shipping charges. I am trying to get the javascript to check the shopping cart to see what item in the cart has the highest possible shipping charge, charge that amount to that item, and charge the lowest possible shipping charge on all other items in the cart. If item A is purchased alone shipping is $5.00.If purchased with item B, which costs $10.00 to ship alone, the $10.00 is charged for item B and only $3.00 for item A. Because item B had the higher shipping charge at a quantity of one.
I have tried adding various things like me.items[current], item.shipping, me.shipping, this.shipping, shipping_Cost, and other things next to the second && in the part of the script that shows the country. I have also tried adding && if (me.whatever) and && if (item.whatever) and similar things at the beginning of the script next to if (this.country). I have found the parts of the script that pertain to cart items and to updating the shopping cart.The javascript is in 2 parts. One part goes in the item page, which I will post first. The second part goes in an external javascript file which I will post at the bottom. In between there is the part that shows the shopping cart. It isn't part of the javascript.
<script type="text/javascript" src="simpleCart.js"></script>
<script type="text/javascript">
<!-- [code]......
View 2 Replies
View Related
Aug 3, 2011
I am building a shopping cart in Volusion. I've come really far and can find my way around HTML and CSS.But the template I am using has a zebra function that it uses on the shopping cart screen. The colors it is using are terrible, and I can't figure out how to change them.By zebra, I mean it picks every other row in a table and assigns a different background color. I am noticing in firebug that the div-ids of the items in the cart have div-ids taht are not listed in any of the CSS files in the theme.I figured out that this type of coding is usually done in JavaScripting. I tried editing that file in every logical way, and I can get no response out of it aside from my browser hanging. I even tried commenting out different sections.
I'm not sure if you are at all familiar with Volusion, but they provide absolutely no assistance and try very hard to make things as hard as possible so customers will be desperate for their design services. All support will say is, "we are prohibited from providing any coding information. Would you like me to transfer you to sales?" They routinely remove resources that were once helpful. Nice customer service.
View 3 Replies
View Related
Jan 18, 2007
Could some one help me build a simple quick function to get the selected items in an HTML listbox and add them to a string var? I need to have the values seperated by "~"
View 2 Replies
View Related
Nov 12, 2004
I have a fully working listbox that I'm having troubles with. The idea is to select from the first box and add to the second box. I've done this a variety of ways and wanted to use DOM as it solves some speed issues with the other solutions if the elements in the boxes are in the thousands.
The problem I'm having may be in IE6, note how using the code below that you can move items over to the right hand side using "Add >" and it sorts it the result like a good script. But when you start to move things the other way using "< Rem" the first box is fine, but the 2nd box never bothers to remove the results! From there on, the moving is pretty much broken. I suspect this is an IE bug since if I ALT+TAB and hide the browser then go back the results are as they should be, however, perhaps I'm just doing something dumb in my code? Code:
View 3 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
Mar 3, 2009
Does anyone know the function for adding more items to an already declared JSON object?
Assuming you have something like code...
View 9 Replies
View Related
Mar 17, 2009
I have a dropdown called "style". How can I use javascript to tell me what Item is currently selected? Here is what I currently have
Code:
var xx = document.getElementById('style').selected;
alert(xx);
When I run this, xx = "selected".
View 4 Replies
View Related
Jan 13, 2010
I have a mysql database and I want to put each field's data in a listbox. all I can think about is that I need to have a SQL query to get the data but how??
View 1 Replies
View Related
Jan 26, 2010
I am trying to put the finishing touches on my client's website. The site was built with Wordpress as its CMS. For the site's 'Photos' page, I used the NextGen Gallery plugin to manage and display the image gallery. We (my programmer) made some modifcations to the plugin so that users could upload images from the frontend of the site. That was no problem.
Then I added a jQuery script that toggles each image's description text OFF and ON. It looks good on the 1st page of the gallery, but then if you click to page "2" you get taken to a screen that shows all the descriptions toggled ON. I don't know what's doing it, but something is causing all of these descriptions to show at once, which is NOT what we want.
Here's the jQuery script I am using (it's in no-conflict mode so it plays nicely with the other code libraries in wordpress):
Code:
var $j = jQuery.noConflict();
$j(function(){
$j(document).ready(function( ) {
[code]....
how I can make a 'description text box' disappear/fadeout when another one gets clicked? Right now you actually have to go back and re-click each one before it toggles OFF, which starts looking terrible after you've clicked a few of them.
View 7 Replies
View Related
Mar 15, 2010
I am looking for a way to add multiple items with a single URL to my shopping cart.
View 3 Replies
View Related