You are here:  » Java in code


Java in code

Submitted by wesse249 on Wed, 2015-10-28 19:44 in

Hello David,

This is a compare tool of my affiliate provider. I made a page on pricetapestry where i want to show it. This is the code:

{code saved}

I'd made the page like this. But the tool isn't showed up:

{code saved}

Can you help me?

Thanks

Submitted by support on Thu, 2015-10-29 09:47

Hello Jan,

A couple of things I noticed from your code - in terms of the includes, there would be no need for:

  require("html/banner.php");
  require("html/atoz.php");

...(although would not have any negative impact on the page), otherwise what I think was preventing the code from being displayed was the call to include jQuery, which is already included on the page. From the code provided by your network, remove the following from the very beginning;

<script type="text/javascript" src="//code.jquery.com/jquery-1.8.3.min.js"></script>

...and that should be all it is...

Cheers,
David.
--
PriceTapestry.com

Submitted by wesse249 on Thu, 2015-10-29 10:44

Hello,

When i remove

<script type="text/javascript" src="//code.jquery.com/jquery-1.8.3.min.js"></script>

nothing shows up

{link saved}

And when i don't remove i see this: {link saved} But the tool doesn't work then.

The has to work like this: {link saved}

Greetz

Submitted by support on Thu, 2015-10-29 12:09

Hello Jan,

I checked the source, and notice that you are using the template from the 15/01A distribution in which the calls to include jQuery and Foundation .js files were in the footer, so in fact jQuery.js is not being included until after your widget.

To correct this, move the following lines from html/footer.php:

    <script src='/html/vendor/jquery.min.js'></script>
    <script src='/html/vendor/foundation.min.js'></script>

...into html/header.php, just before the closing

  </head>

Cheers,
David.
--
PriceTapestry.com