Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Re: embedding XML in HTML

Thread Tools

Re: embedding XML in HTML
Posts: n/a
If you don't want to change all your HTML then you can always cheat
using DHTML. Mark a placeholder on your pages such as
<div id="helloworld"></div>

Then use the page onload event to run the transform and some javascript
to change the innerHTML of the div.

<SCRIPT language="javascript">
function doStart()

<body onLoad="javascript:doStart()">

My LoadXML function loads a standard (fixed) XML file and uses the
parameter to define both the package to include and the name of the DIV
to modify.

I've used it on a couple of websites to embed dynamic content on
predefined page content.

Reply With Quote

Thread Tools

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedding an html application into a static html page HTML 5 01-09-2008 04:49 PM
Embedding html inside html (that old chestnut) DartGuru HTML 4 10-23-2007 02:47 PM
Embedding Gifs, animated gifs and other html pages into HTML HTML 1 09-13-2006 11:11 AM
embedding xml in xml as non-xml :) Mark Van Orman XML 5 09-15-2004 05:57 AM
Embedding xml as remote obects into static html Kevin HTML 1 12-17-2003 01:49 PM