Click here to Skip to main content
15,921,837 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: ADO WARNING SECURITY Pin
Guffa22-Oct-05 21:35
Guffa22-Oct-05 21:35 
Questionhtml-webpage Pin
vino222821-Oct-05 18:55
sussvino222821-Oct-05 18:55 
AnswerRe: html-webpage Pin
dwatkins@dirq.net26-Oct-05 10:19
dwatkins@dirq.net26-Oct-05 10:19 
QuestionCreating objects in IIS fails Pin
Chris Maunder21-Oct-05 17:49
cofounderChris Maunder21-Oct-05 17:49 
AnswerRe: Creating objects in IIS fails Pin
Gavin Jeffrey24-Oct-05 3:18
Gavin Jeffrey24-Oct-05 3:18 
QuestionReceiving files through Internet Explorer Pin
orangeflow21-Oct-05 5:53
orangeflow21-Oct-05 5:53 
QuestionPrint a popup using right clic of the mouse Pin
Hajara21-Oct-05 5:51
Hajara21-Oct-05 5:51 
QuestionAdding new option to a dropdownlist box from a ModalDialog window Pin
HarDrive21-Oct-05 5:02
HarDrive21-Oct-05 5:02 
Hello this is my 1rst ? here...so pls be patient...Sigh | :sigh:
-I did search the forums, but couldn't find any answers or help to my question>>>How do I insert a new value/text to a DropDown listbox from a ModalDialog window?
(Note:: I have several alert windows showing the value being returned, but the page does not refresh with the new value IN the drop down list...)
I'm a ASP.NET developer so javascript isn't my foretay...Any assistance would be greatly appreciated...TY in advance.
Below find samples of my client side code~
__________________________________________________

function callAddVendor()
{
var retval="";

//This might not be working wasn't sure so I stopped using it...I believe the format is correct tho~
var Drop=document.getElementById("ddlOne");
len = Drop.options.length;

//test that we are getting a value from the droplist--This works
window.alert(document.getElementById("ddlOne").options[0].value);

//This works a value does comeback from the window I just entered a value into a textbox and sent it back to the parent window
retval=window.showModalDialog('Dialoghost.htm',window);

//This appears to add a value to the dropdown list-but AFTER the script is finish working it DOESN'T populate the list!
document.getElementById("ddlOne").options[1] = new Option(retval,retval);
document.getElementById("ddlOne").options[1].selected = true;

//This a test window to show the value added to the dropdownlist--This works
window.alert(document.getElementById("ddlOne").options[1].value);

//This works!
document.Form1.txtDate.value = document.getElementById("ddlOne").options[1].value;
}





'---The code behind page...Only 1 line of code!!!
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'--This works
btnSubmit.Attributes.Add("OnClick", "callAddVendor();")

End Sub

...time is not on our side Cool | :cool:
QuestionCreating Search Engine Pin
idreesbadshah21-Oct-05 0:02
idreesbadshah21-Oct-05 0:02 
AnswerRe: Creating Search Engine Pin
Anonymous22-Oct-05 14:33
Anonymous22-Oct-05 14:33 
AnswerRe: Creating Search Engine Pin
dwatkins@dirq.net26-Oct-05 10:22
dwatkins@dirq.net26-Oct-05 10:22 
QuestionWindows Authentication not working Pin
Pratik.Patel20-Oct-05 20:32
Pratik.Patel20-Oct-05 20:32 
Questionquestion about front page and visual stuido 2003. Pin
Isobar20-Oct-05 5:04
Isobar20-Oct-05 5:04 
Questionoffset width in netscape 8.0 Pin
K.P.Kannan20-Oct-05 4:36
K.P.Kannan20-Oct-05 4:36 
QuestionReal Time data on the Web Page Pin
Member 229965419-Oct-05 19:18
Member 229965419-Oct-05 19:18 
AnswerRe: Real Time data on the Web Page Pin
Igor Podsekin19-Oct-05 19:37
Igor Podsekin19-Oct-05 19:37 
AnswerRe: Real Time data on the Web Page Pin
Guffa20-Oct-05 1:02
Guffa20-Oct-05 1:02 
Questionhow to print from tomcat server Pin
SEAGames2219-Oct-05 1:06
SEAGames2219-Oct-05 1:06 
QuestionHelp me about javascript Pin
SEAGames2219-Oct-05 1:02
SEAGames2219-Oct-05 1:02 
AnswerRe: Help me about javascript Pin
Guffa19-Oct-05 4:39
Guffa19-Oct-05 4:39 
QuestionRe: Help me about javascript Pin
MoustafaS19-Oct-05 14:42
MoustafaS19-Oct-05 14:42 
QuestionExport to Excel Pin
raj_marthy18-Oct-05 11:40
raj_marthy18-Oct-05 11:40 
AnswerRe: Export to Excel Pin
raj_marthy19-Oct-05 4:02
raj_marthy19-Oct-05 4:02 
AnswerRe: Export to Excel Pin
Member 114619621-Oct-05 4:42
Member 114619621-Oct-05 4:42 
QuestionaxWebBrowser Pin
Peter Liddle17-Oct-05 11:34
Peter Liddle17-Oct-05 11:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.