Click here to Skip to main content
15,907,913 members
Home / Discussions / Web Development
   

Web Development

 
GeneralAllow user to download file that is located at another web server Pin
fukchai200011-Dec-07 14:54
fukchai200011-Dec-07 14:54 
GeneralActive Document under internet explorer (IOleDocument / IOleDocumentView Pin
Roey C11-Dec-07 11:18
Roey C11-Dec-07 11:18 
GeneralLocal Time Pin
Brendan Vogt11-Dec-07 10:41
Brendan Vogt11-Dec-07 10:41 
GeneralRe: Local Time Pin
pmarfleet11-Dec-07 11:11
pmarfleet11-Dec-07 11:11 
QuestionImplementation Technology Suggestion for exchanging data with a remote server needed. Pin
mtwombley11-Dec-07 8:01
mtwombley11-Dec-07 8:01 
QuestionUrgent: reseizing webparts dynamically Pin
devsam11-Dec-07 3:52
devsam11-Dec-07 3:52 
GeneralRe: Urgent: reseizing webparts dynamically Pin
Paul Conrad23-Dec-07 14:50
professionalPaul Conrad23-Dec-07 14:50 
QuestionStupid problem with innerHTML in Javascript Pin
ieaeitsch11-Dec-07 2:32
ieaeitsch11-Dec-07 2:32 
First I will tell you what I have done:

I have a "<select>" control in my web page.
Now I want to change the content of this control dynamically in javascript.

So I tried for testing purpose the following:

I call the function doit() in the onload event of the body tag.

function doit() {
window.setTimeout("_doit()", 500);
}

function _doit() {

alert (document.getElementById ("PT_multivalue2").outerHTML);

document.getElementById ("PT_multivalue2").innerHTML = "huhuhu <option value='1'>eh</option> <option value='2'>eh2</option>";

alert (document.getElementById ("PT_multivalue2").outerHTML);

document.getElementById ("PT_multivalue2").outerHTML = document.getElementById ("PT_multivalue2").outerHTML.replace ("huhuhu", "");

}

So now for explanation:

My 1st try was to set the option list "<option value='1'>eh</option>" als innerHTML. => result: There was no entry in the select control.

My 2nd try was to add the 2 alert statement to see what javascript is doing. And the result was, that innerHTML was only "eh</option>" => the first option tag was missing.

So, I've done the following: I added "huhuhu" at the beginning of the option list. After setting this as innerHTML I replaced the "huhuhu" with "" in the outerHTML attribute.

Do you have any ideas, why the first part of the string is cutted fom innerHTML while setting this attribut.

Thanks in advance.
Erik
GeneralRe: Stupid problem with innerHTML in Javascript Pin
Michael Sync11-Dec-07 19:24
Michael Sync11-Dec-07 19:24 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
ieaeitsch11-Dec-07 21:52
ieaeitsch11-Dec-07 21:52 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
Michael Sync11-Dec-07 22:28
Michael Sync11-Dec-07 22:28 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
Michael Sync11-Dec-07 22:29
Michael Sync11-Dec-07 22:29 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
ieaeitsch11-Dec-07 22:46
ieaeitsch11-Dec-07 22:46 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
ieaeitsch11-Dec-07 22:53
ieaeitsch11-Dec-07 22:53 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
Michael Sync11-Dec-07 23:55
Michael Sync11-Dec-07 23:55 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
Michael Sync12-Dec-07 0:03
Michael Sync12-Dec-07 0:03 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
WoutL11-Dec-07 22:47
WoutL11-Dec-07 22:47 
GeneralRe: Stupid problem with innerHTML in Javascript Pin
ieaeitsch11-Dec-07 22:54
ieaeitsch11-Dec-07 22:54 
QuestionChoose File Window, how to open? Pin
hifiger200411-Dec-07 1:53
hifiger200411-Dec-07 1:53 
AnswerRe: Choose File Window, how to open? Pin
pmarfleet11-Dec-07 2:40
pmarfleet11-Dec-07 2:40 
QuestionHow to Improve performance of Website(Update Panel) Pin
khansameer11-Dec-07 1:18
khansameer11-Dec-07 1:18 
AnswerRe: How to Improve performance of Website(Update Panel) Pin
Member 647720212-Aug-09 17:55
Member 647720212-Aug-09 17:55 
AnswerRe: How to Improve performance of Website(Update Panel) Pin
maniksan2-Sep-09 21:32
maniksan2-Sep-09 21:32 
GeneralWeb Service in 2005 being called in VB.NET 2003 [modified] Pin
BlueMeanie187810-Dec-07 23:21
BlueMeanie187810-Dec-07 23:21 
GeneralRe: Web Service in 2005 being called in VB.NET 2003 Pin
pmarfleet11-Dec-07 2:42
pmarfleet11-Dec-07 2:42 

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.