Log In · Register

 
Custom Module Code, But not JS..
protegechris
post Dec 5 2004, 06:32 AM
Post #1


Member
**

Group: Member
Posts: 22
Joined: Nov 2004
Member No: 62,714



I've got a javascript code I would like to put into a custom leftside module, but the JS code doesn't work when placed within another JS code, so is there any alternative to the javascript approach?
 
 
Start new topic
Replies
protegechris
post Dec 5 2004, 10:42 AM
Post #2


Member
**

Group: Member
Posts: 22
Joined: Nov 2004
Member No: 62,714



More description here.

I'm putting this code into a custom module:
CODE
<!-- begin code provided by createblog.com -->
<script type="text/javascript">document.write('ffsrfarein blah blah blah')</script>
<!-- end code provided by createblog.com -->


The module code is:
CODE
<!-- begin code provided by createblog.com -->
<script>
titleContent = 'Affiliations';
moduleContent = ' stuff here ';
sub = subTitle.parentNode.parentNode.parentNode.parentNode.parentNode
sub.insertAdjacentHTML('beforeBegin','<table border="1" cellspacing="0" cellpadding="4" width="100%" class="left"><tr><th valign="top" align="left" class="left">' + titleContent + '</th></tr><tr><td valign="top" class="left">' + moduleContent)
sub.insertAdjacentHTML('beforeBegin','<BR>');
</script>

<!-- end code provided by createblog.com -->


So how would I put the first code into the 2nd? wacko.gif
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: