Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Doogie #1
Refresh select from new data entered in pop-up window
This is for a client admin section. I am using CF 4.5 and an Access Database.
I have a form which uses a dynamically created drop-down list. I want to
insert an 'Add' button next to the drop-down list that will open a pop-up
window where the client can add new information, save that new information to
the database, then close the window only to have the information which has just
been entered into the database now available in the drop-down list. I do not
want to refresh the entire form ? just the drop-down list.
Any way to do this. I thought I had seen this done before or am I just
dreaming?
Thanks in advance for your help,
David G. Moore, Jr.
UpstateWeb LLC
Doogie Guest
-
Close Window Refresh
Is there a way to close a pop-up window by use of a button and have the main window refresh. I use to know the code but I forgot. -
Populate select field and textbox dynamically - no refresh
Ive got a db table with the fields Product_Name and Product_Price. I want to display a pulldown containing the product names and display the... -
popup window refresh--Massimo help?
hi, i am using a popup window to show bios for different people. i want it to work so that if someone clicks a list item a window opens with the... -
Refresh a parent window???
I have a frameset. left and main. Inside the main frame I have a IFRAME. I need to refresh the main frame when I post a form inside the IFRAME. I am... -
Refresh Parent window from child window causes problems
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence... -
dempster #2
Re: Refresh select from new data entered in pop-upwindow
This is possible in JavaScript. You can use a prompt to get the item to add,
then add it to the select box. JavaScript can access or modify items in a
select box as an array. Keep in mind that the first item is at position 0. If
you get the length of the array (the number of items in the select box), you
can use that value as the array subscript of an item to add at the end.
Here are the basic JavaScript commands:
var listadd = prompt("Enter the item to add: ");
var newitem = document.myform[selbox].length;
document.myform[selbox].options[newitem].text = newitem;
document.myform[selbox].options[newitem].value = newitem;
"myform" is the name of your form and "selbox" the name of the select box.
-Paul
dempster Guest



Reply With Quote

