Affiliate Programs
 
Search affiliate programs for: 
Affiliate Categories
» Affiliate Networks
» Ad Networks
» 2 Tier Programs
» Pay Per Sale
» Pay Per Lead
» Residual Income
» Datafeeds
» Multi Tier Programs
» Business Opps
» Other Programs

Newsletter
Get newly added affiliate programs by email. Enter your email here:
Article Categories
» Affiliate Marketing
» Business
» Ecommerce
» Hosting
» Marketing
» Sales
» Web Designing
» Webmasters
» SEO & Promotion
» Working At Home
» Other Articles
» Affiliate Glossary


Go Back   AffiliateSeeking Forum > Website Creation, Design & Maintenance > Programming > JavaScript

JavaScript Discuss about JavaScript problems you are having or help others with their JavaScript issues.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-07-2009, 06:06 AM
Cuervo Cuervo is offline
Junior Member
 
Join Date: May 2009
Posts: 0
Cuervo is on a distinguished road
Default XHTML DOM usage w/ Javascript

Hi, I'm new to this forum and pretty much all of web design. I have a website that is using XHTML 1.1. I want to have one basic site template and have javascript add xml content into it.
Unfortunately, because of the lack of document.write, I haven't been able to figure out how to load the xml data I want and place it into an xhtml file. I have been trying to change the title, but I haven't had any luck. Same with paragraphs. My browsers is Safari Beta 4, and Firefox 3.

I have tried:
content=document.implementation.createDocument("", "",null);
content.async="false";
content.load("home.xml");

page=document.implementation.createDocument("","", null);
page.async="false";
page.load("site.xhtml");

var title;
title = content.getElementsByTagName("title")[0].childnodes[0].nodeValue ;

and
this one was just a test on adding text
var newtext = document.createTextNode(" Some text added dynamically. ");
var para = document.getElementById("p1");
para.appendChild(newtext);

Any help would be appreciated.
Thanks in advance.
-Cuervo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 01-05-2011, 10:04 AM
deveshraigniit deveshraigniit is offline
Member
 
Join Date: Nov 2010
Location: Delhi
Posts: 97
deveshraigniit is on a distinguished road
Thank you that you shared the your Experience.
__________________
Girls T Shirts|T Shirts
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 06-18-2011, 07:12 AM
Rakkhi Rakkhi is offline
Senior Member
 
Join Date: Jan 2011
Posts: 144
Rakkhi is on a distinguished road
I don't have enough knowledge because I m just starter in JAvaScript. So i m also looking for this.
__________________
online MBA from University18.edu.in
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 07-01-2011, 10:31 AM
rohith rohith is offline
Senior Member
 
Join Date: Jul 2011
Posts: 98
rohith is on a distinguished road
Default java script

Thank you for the informative description..that is very relevant topic..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 01:41 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0
© 2004-2011 AffiliateSeeking. All rights reserved.