Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / JavaScript from another website not showing correctly in my zen-cart

JavaScript from another website not showing correctly in my zen-cart

Locked

Views: 762

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
24 Aug 2009, 4:29 AM
#1
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

JavaScript from another website not showing correctly in my zen-cart

Hello I am trying to get this animal finder on my website provided by Pet Find.com

the website for the module is:
http://www.petfinder.com/widgets-banners/view-widget.cgi?catid=7&id=18

When I try this code on any of my zen-cart websites it doesn't look like it should. the bottom is rearranged. If I make it a html file and upload it to my domain.com/file.html it looks right but I am trying to put it in either a define page or ez page and its not working: the script is:

<script type="text/javascript" language="javascript"  src="http://fpm.petfinder.com/js/quicksearch.js"></script>
<script language="javascript">quickSearchHorizontal(18);</script>

Any ideas?

24 Aug 2009, 8:45 AM
#3
meetwinter avatar

meetwinter

New Zenner

Join Date:
Jun 2008
Posts:
13
Plugin Contributions:
0

Re: JavaScript from another website not showing correctly in my zen-cart

information you gived is too little.

24 Aug 2009, 2:56 PM
#4
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Re: JavaScript from another website not showing correctly in my zen-cart

I have also tried

<script type="text/javascript" language="javascript"  src="http://www.mydomain.com/includes/templates/classic/jscript/quicksearch.js"></script> 
<script language="javascript">quickSearchHorizontal(18);</script>  

(saving the javascript file to my domain in the jscript folder)

still doesn't work properly it shows up find its just the background doesn't show correctly, as its been doing

see attachment

24 Aug 2009, 3:28 PM
#5
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: JavaScript from another website not showing correctly in my zen-cart

And your site is?

25 Aug 2009, 2:09 AM
#6
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Re: JavaScript from another website not showing correctly in my zen-cart

The test page is here:
www .p**_et**_land**_plus.**_com/page.html?id=15

minus the **_ thanks... I have tried it in my other 2 zen-carts also, it doesn't work

25 Aug 2009, 2:34 PM
#7
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Re: JavaScript from another website not showing correctly in my zen-cart

can someone test the java script on their zen-cart and see if it works on zen-cart

25 Aug 2009, 5:29 PM
#8
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: JavaScript from another website not showing correctly in my zen-cart

There code is not that good.

Here is a work around placing there code in a table or div forces the need wraps and a back ground color to see headings.

I tested this and it ran ok.

<table width="300" border="0" bgcolor="#FF00FF">
<tr>
<td>
<script type="text/javascript" language="javascript"  src="http://fpm.petfinder.com/js/quicksearch.js"></script>
<script language="javascript">quickSearchHorizontal(18);</script>
</td>
</tr>
</table>

Skip

25 Aug 2009, 9:57 PM
#9
ryanb4614 avatar

ryanb4614

Totally Zenned

Join Date:
Feb 2008
Posts:
556
Plugin Contributions:
0

Re: JavaScript from another website not showing correctly in my zen-cart

thanks, I didn't even think about doing that. I guess that will have to do, thanks again!