Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating 'composite' links using document.write

Status
Not open for further replies.

PaddyWho

Programmer
May 8, 2002
6
GB
I'm using a content managent system and I am trying to serve dynamically generated url links that are made up of the referring url of xml data, surrounded by a particular template reference. The <DYB_PROP> tags in this code are specific to the CM software (Dynabase) and should print the host url. However things are not working and the tag set is not active within this script. Anyone have an idea how to get around this?

Code:
<SCRIPT>var sidenavperson_template = &quot;template=/pat/templates/person_template.html&quot;;
var template = &quot;&quot;;
var text = &quot;&quot;;
template = person_template;
text = &quot;the person&quot;;
document.write(tag(&quot;B&quot;));
document.write(tag(&quot;A TARGET='_top' HREF='&quot; +) <DYB_PROP PROP=&quot;DYB_EVAL(URLPATH())&quot;> (+ &quot;?&quot; + template + &quot;'&quot;));
document.write(text);
document.write(tag(&quot;/A&quot;));
document.write(tag(&quot;/B&quot;));</SCRIPT>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top