You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I have affiliates that have catalogs that I am supposed to be able to put into my web site. But they are Java Script. They work in front page but when I try to put them into an item description, or a HTML Pages (User) in ClickCartPro I don’t get anything! Can anyone tell me why or can’t it be done?
Thanks in advance: Chuck
Offline
The Web address is
The Page in question is
The content of that page should look like
When I past the script
<!--KBStore Start-->
<script LANGUAGE="JavaScript"><!--
function gP(sg,pm){var sP=sg.indexOf(pm+"=");if(sP>-1){sP=sP+pm.length+1;var eP=sg.indexOf("&",sP);if(eP==-1){eP=sg.length};return unescape(sg.substring(sP,eP));}return '';}var pd=location.search.substring(1);var se=gP(pd,'se');var so=gP(pd,'so');var p=gP(pd,'p');var r=document.referrer; if(gP(pd,'r')!=''){r=gP(pd,'r')}document.write ('<scr'+'ipt language="javascript" src="http://kbs.kolimbo.com/feed/showstore.asp?s=3687&p='+p+'&so='+so+'&se='+se+'&r='+r+'"></scr'+'ipt>');
//--></SCRIPT>
<!--KBStore End-->
into a html page it works, but when I put it into an item description it don't work.
I have also tried placing it into a user html page and still I get no catalog in the content?
Thanks: Chuck
Gold Star Mall Inc.
Offline
Have you tried calling it externally? Save the contents of the script minus the <script></script> tags as a javascript file, upload it, and place the following in your page:
<script type="text/javascript" src="/the_path_to/the_script_name.js"></script>
Offline
I believe that CCP changes some characters to the ascii format which can affect the javascript. See vars.pl - sub vars_urlencode for the list.
I don't know how to overcome that except like Ed suggests to put the javascript into an external file.
Also, some search engines are getting pickier about proper W3C coding. Using proper W3C enables the search engine to better read your pages. If this concerns you, then you can validate your page/s with one of their tools (HTML Validator at wwwW3C.org). Use
<script LANGUAGE="JavaScript" type="text/javascript">
.
Also, in the Site Layout template, include the DOCTYPE Declaration specific to your page.
Hope this helps!
Offline