Custom Module Code, But not JS.. |
Custom Module Code, But not JS.. |
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?
|
|
|
|
![]() |
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? |
|
|
|
protegechris Custom Module Code Dec 5 2004, 06:32 AM
pynk_laday what exactly is the first code that you want to pu... Dec 5 2004, 11:07 AM
protegechris it's encrypted html ;) Dec 5 2004, 11:51 AM
protegechris Someone's got to know how to do this, it's... Dec 5 2004, 06:48 PM
DaToNeViEtBoI916 don't double post. it's against our rules.... Dec 5 2004, 07:17 PM
coyote I wrote that code.
Why do you need the first part... Dec 5 2004, 08:46 PM
protegechris thanks. fixed. Dec 6 2004, 10:21 AM
Sherry_Vu QUOTE(protegechris @ Dec 6 2004, 10:21 AM)tha... Dec 6 2004, 03:22 PM![]() ![]() |