Click here to Skip to main content
15,925,661 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Why doesn't this javascript code work in firefox? Pin
DaveAuld3-Sep-10 0:49
professionalDaveAuld3-Sep-10 0:49 
QuestionTwitter.com is not opening properly in iframe(HTML).... Pin
Punit.Khaire27-Aug-10 5:57
Punit.Khaire27-Aug-10 5:57 
AnswerRe: Twitter.com is not opening properly in iframe(HTML).... Pin
JHizzle27-Aug-10 6:07
JHizzle27-Aug-10 6:07 
QuestionChanging HTML value in other part of WPF program Pin
Sonar8724-Aug-10 14:12
Sonar8724-Aug-10 14:12 
QuestionHow would I get it to... replaceWith()? [modified] Pin
thebiostyle21-Aug-10 18:35
thebiostyle21-Aug-10 18:35 
Questionmailto - How to insert a URL hyperlink in the Body with DisplayText Pin
SarahMcM19-Aug-10 19:30
SarahMcM19-Aug-10 19:30 
AnswerRe: mailto - How to insert a URL hyperlink in the Body with DisplayText Pin
Covean19-Aug-10 20:45
Covean19-Aug-10 20:45 
QuestionExcel VSTO exposed via web Pin
El Code Monkey19-Aug-10 10:49
El Code Monkey19-Aug-10 10:49 
QuestionPassing data from a windows service to WCF Pin
gerom7718-Aug-10 21:29
gerom7718-Aug-10 21:29 
Questionie 6/7 div seems to be clearing Pin
nickmaroulis11-Aug-10 18:39
nickmaroulis11-Aug-10 18:39 
AnswerRe: ie 6/7 div seems to be clearing [modified] Pin
Prosanta Kundu online15-Aug-10 21:36
Prosanta Kundu online15-Aug-10 21:36 
GeneralRe: ie 6/7 div seems to be clearing Pin
jahangir_ahmad12-Sep-10 3:41
jahangir_ahmad12-Sep-10 3:41 
AnswerRe: ie 6/7 div seems to be clearing Pin
Gerben Jongerius15-Aug-10 21:56
Gerben Jongerius15-Aug-10 21:56 
GeneralRe: ie 6/7 div seems to be clearing Pin
nickmaroulis16-Aug-10 13:11
nickmaroulis16-Aug-10 13:11 
QuestionHelp authoring tools Pin
goodideadave11-Aug-10 12:38
goodideadave11-Aug-10 12:38 
QuestionXML With javascript Pin
geeeeeeeetha10-Aug-10 1:15
geeeeeeeetha10-Aug-10 1:15 
hi,

While appending a node,whether it will affect original file or not

below is my code

<html>
<body>
<script type="text/javascript">
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","x.xml",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
x=xmlDoc.getElementsByTagName("CD");
for (i=0;i<x[0].childNodes.length;i++)
{
if (x[0].childNodes[i].nodeType==1)
{
document.write(x[0].childNodes[i].nodeName);
document.write(": ");
document.write(x[0].childNodes[i].childNodes[0].nodeValue);
document.write("<br />");
}
}
document.write('<br>-----------------<br>');

for(i=0;i<x.length;i++)
{
newel=xmlDoc.createElement("PUBLICATION");
newtext=xmlDoc.createTextNode("2007");
newel.appendChild(newtext);
x[i].appendChild(newel);
}


for(i=0;i<x.length;i++)
{
for (j=0;j<x[i].childNodes.length;j++)
{
if (x[i].childNodes[j].nodeType==1)
{
document.write(x[i].childNodes[j].nodeName);
document.write(": ");
document.write(x[i].childNodes[j].childNodes[0].nodeValue);
document.write("<br />");
}
}
document.write("<br />");
}
alert
</script>
</body>
</html>




Regards
QuestionPurpose of using branding.css? Pin
swornavidhya_m9-Aug-10 19:42
swornavidhya_m9-Aug-10 19:42 
AnswerRe: Purpose of using branding.css? Pin
Prosanta Kundu online10-Aug-10 22:39
Prosanta Kundu online10-Aug-10 22:39 
QuestionHTTP <--> HTTPS: Getting security warning in IE Pin
dafaust9-Aug-10 8:05
dafaust9-Aug-10 8:05 
AnswerRe: HTTP HTTPS: Getting security warning in IE Pin
Graham Breach9-Aug-10 8:31
Graham Breach9-Aug-10 8:31 
GeneralRe: HTTP HTTPS: Getting security warning in IE Pin
dafaust9-Aug-10 8:49
dafaust9-Aug-10 8:49 
Questionhow to create web org chart application dynamically through mysql database using C#, ASP.net Pin
sr1598-Aug-10 21:34
sr1598-Aug-10 21:34 
AnswerRe: how to create web org chart application dynamically through mysql database using C#, ASP.net Pin
R. Giskard Reventlov8-Aug-10 21:46
R. Giskard Reventlov8-Aug-10 21:46 
QuestionRe: error in creating chart control using C#, ASP.net Pin
sr1598-Aug-10 23:29
sr1598-Aug-10 23:29 
AnswerRe: error in creating chart control using C#, ASP.net Pin
R. Giskard Reventlov8-Aug-10 23:45
R. Giskard Reventlov8-Aug-10 23:45 

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.