Kryptronic Software Support Forum

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.

#1 03-09-2006 21:20:46

GoldStarMall.com
Member
Registered: 12-14-2005
Posts: 2

Java Script?

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


Thanks: Chuck
Gold Star Mall

Offline

 

#2 03-10-2006 03:03:51

ZipSkins
Member
From: United Kingdom
Registered: 01-15-2006
Posts: 822
Website

Re: Java Script?

Can you provide a url so we can review the problem?


| Professional Quality Customisable Skins for your ClickCartPro Powered Site


-----------------------------
Certified Support Partner

Offline

 

#3 03-12-2006 13:56:28

GoldStarMall.com
Member
Registered: 12-14-2005
Posts: 2

Re: Java Script?

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.


Thanks: Chuck
Gold Star Mall

Offline

 

#4 03-12-2006 19:05:10

Ed_H
Member
From: Smashachusetts
Registered: 09-12-2003
Posts: 397
Website

Re: Java Script?

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

 

#5 03-15-2006 10:31:12

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: Java Script?

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

Code:

<script LANGUAGE="JavaScript" type="text/javascript">

.
Also, in the Site Layout template, include the DOCTYPE Declaration specific to your page.

Hope this helps!

Offline

 

Board footer