Hi there
I need to display the section tree generated by Actinic on a 3rd party (completely unconnected) website
Am I right in thinking that as long as I include
in the head tags of the page together with the drop down box Javascript
and then use
to call the drop down list, this will both display correctly AND link the user back across to the main site (as intended)?
Or do I need to include any other Javascript includes to generate the section tree?
The problem I'm having is that this seems to punt them to the correct site but does NOT place them in the /acatalog directory, simply with the correct filename off the root directory
Thanks
Jos
I need to display the section tree generated by Actinic on a 3rd party (completely unconnected) website
Am I right in thinking that as long as I include
Code:
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.mainsite.com/acatalog/actiniccore.js" TYPE="text/javascript"></SCRIPT> <SCRIPT LANGUAGE="JavaScript" SRC="http://www.mainsite.com/acatalog/actinicextras.js" TYPE="text/javascript"></SCRIPT>
Code:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- function ACT_DropListBox(ar) { var strIDs = '<SELECT SIZE="1" NAME="ACT_droplstbox" CLASS="select_box" onChange="if(options[selectedIndex].value) window.location.href=(options[selectedIndex].value)">'; var sel = " SELECTED" strIDs += '<OPTION ' + sel + ' VALUE="">Select a Section</OPTION>'; for (var i=1;i<=ar.length;i++) { if (ar[i].sURL !=null) { strIDs += '<OPTION VALUE="' + ar[i].sURL + '&ACTINIC_REFERRER=' + escape(location.href) + '">' + ar[i].sName + '</OPTION>'; { if (ar[i].pChild) { for (var j=1;j<=ar[i].pChild.length;j++) { strIDs += '<OPTION VALUE="' + ar[i].pChild[j].sURL + '&ACTINIC_REFERRER=' + escape(location.href) + '">' + '- ' + ar[i].pChild[j].sName + '</OPTION>'; } } } } } strIDs+='</SELECT>' return strIDs } //--> </SCRIPT>
Code:
<script language=Javascript>document.write(ACT_DropListBox(section_tree))</script>
Or do I need to include any other Javascript includes to generate the section tree?
The problem I'm having is that this seems to punt them to the correct site but does NOT place them in the /acatalog directory, simply with the correct filename off the root directory
Thanks
Jos
Comment