View Single Post
  #6  
Old 03-09-2008, 08:57 AM
 
l0st l0st is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 69
 

Default Re: Dynamic Product Search (ajax)

My head.tpl:
Quote:
{if $usertype eq "C"}
{include file="dsearch/dsearch.tpl"}
{/if}

home.tpl

Quote:

<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}" />
<link rel="stylesheet" href="{$SkinDir}/dsearch/dsearch.css">
<script type="text/javascript" src="{$SkinDir}/dsearch/ajax.js"></script>
<script type="text/javascript" src="{$SkinDir}/dsearch/dsearch.js"></script>
{literal}
<script type="text/javascript">
function setCookie(name, value) {
var today = new Date()
var expires = new Date()
expires.setTime(today.getTime() + 1000*60*60*24*30)
document.cookie = name + "=" + escape(value) + "; expires=" + expires.toGMTString() +";path=/"
}
function getCookie(Name) {
var search = Name + "="
if(document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if(offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if(end == -1) end = document.cookie.length
return unescape(document.cookie.substring(offset, end))}
else return ""
}
}
</script>
{/literal}
</head>

I added 'a little before' to show you whats in the code. Everything is in place where it needs to go but it just don't want to work.. any advice/help?
__________________
X-Cart Gold v. 4.1.9
Reply With Quote